Skip to content

Commit 20e6908

Browse files
authored
ci: pin auto-approve caller to permissions: {} (#12)
Parity with the other repos — the caller job needs no GITHUB_TOKEN of its own (the reusable workflow mints its own App token). Fixes CodeQL 'Workflow does not contain permissions'.
1 parent bea4c6c commit 20e6908

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

.github/workflows/auto-approve.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,10 @@ on:
66
pull_request_target:
77
types: [opened, reopened, ready_for_review, synchronize]
88

9+
# This caller job needs no token of its own — the reusable workflow mints its
10+
# own App token and uses the org PAT. Pin to none for least privilege.
11+
permissions: {}
12+
913
concurrency:
1014
group: auto-approve-${{ github.event.pull_request.number }}
1115
cancel-in-progress: true

0 commit comments

Comments
 (0)