ci(codeql): grant actions: read in the reusable CodeQL workflow - #69
Merged
Conversation
codeql-action/analyze fingerprints SARIF via GET /actions/runs/{id},
which requires actions: read. Public-repo callers stay green without it
(the read falls back to public visibility), but any private-repo caller
403s at the fingerprint step and the job ends "configuration error" —
observed on forkwright/arche run 33689539168 and forkwright/hestia run
33640480803 with standalone copies of this shape. Granting it here makes
the template correct for private repos the day Advanced Security is
purchased, and removes a silent reliance on public-data fallback for the
public ones.
Refs kanon#3644.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Add
actions: readto both job permission blocks in the reusable CodeQL workflow (workflow_call).Why
codeql-action/analyzepost-processes SARIF by adding fingerprints, which callsGET /repos/{owner}/{repo}/actions/runs/{run_id}. That endpoint requiresactions: read; the jobs currently grant onlysecurity-events: write+contents: read, so the token'sactionspermission isnone.Resource not accessible by integration) and the job endsCodeQL job status was configuration error— observed 2026-09-02 on forkwright/arche (run 33689539168) and forkwright/hestia (run 33640480803), which carried standalone copies of this workflow.Private repos additionally need GitHub Advanced Security for the SARIF upload itself (currently unpurchased — 422 on enablement), so this grant alone doesn't make private-repo CodeQL viable; it makes the template correct for the day GHAS exists, and stops the public-repo path from silently depending on public-data fallback.
Refs kanon#3644 (template freshness).
Merge status
Left unmerged per orchestrator instruction — another agent is working in this repo concurrently; review/merge at the operator's discretion.