Skip to content

Commit b499086

Browse files
committed
security: remove untrusted checkout from labeler workflow
Fixes code scanning alert #13: checkout of untrusted code in trusted context. The labeler action doesn't need to checkout code - it reads changed files via API.
1 parent 958e8f2 commit b499086

File tree

1 file changed

+0
-6
lines changed

1 file changed

+0
-6
lines changed

.github/workflows/labeler.yml

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -21,12 +21,6 @@ jobs:
2121
pull-requests: write
2222

2323
steps:
24-
- name: Checkout repository
25-
uses: actions/checkout@v6
26-
with:
27-
# For pull_request_target, we need to check out the PR head
28-
ref: ${{ github.event.pull_request.head.sha }}
29-
3024
- name: Auto-label based on changed files
3125
uses: actions/labeler@v5
3226
with:

0 commit comments

Comments
 (0)