Skip to content

Commit 1a2ef21

Browse files
felickzCopilot
andcommitted
fix(workflows): add packages: read permission to update-codeql-version.yml
Fixes a live failure hit during the first real end-to-end test of this workflow (dispatched with codeql_version: 2.21.4): the 'Upgrade every pack's dependencies' step failed resolving codeql/namebinding ('not found in the registry') while running codeql pack upgrade on ruby/src. The job's default GITHUB_TOKEN lacked packages: read, matching what ci.yml already grants for the same kind of pack resolution. Tracked in issue #162. Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
1 parent dd2357d commit 1a2ef21

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

‎.github/workflows/update-codeql-version.yml‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@ jobs:
2323
runs-on: ubuntu-latest
2424
permissions:
2525
contents: read # PR creation uses a scoped GitHub App token (SECLABS_APP_ID/SECLABS_APP_KEY), not GITHUB_TOKEN
26+
packages: read # `codeql pack upgrade` resolves codeql/* library deps from GHCR (see ci.yml)
2627

2728
steps:
2829
- name: Checkout

0 commit comments

Comments
 (0)