-
Notifications
You must be signed in to change notification settings - Fork 0
chore(ci): bump github/codeql-action from 3 to 4 #62
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Open
dependabot
wants to merge
1
commit into
main
Choose a base branch
from
dependabot/github_actions/github/codeql-action-4
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from all commits
Commits
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
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
Oops, something went wrong.
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.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Action reference violates hash-pinning policy.
The static analysis tool flags this line because a blanket policy requires actions to be pinned to commit SHAs, not mutable tags. Using
@v4(a mutable tag) reduces supply-chain security guarantees—if the upstream repository is compromised, the tag can be moved to point to malicious code.This contradicts the comment on line 35 which states the action is pinned "for supply-chain security and reproducible runs."
🔒 Recommended fix: Pin to commit SHA
To find the commit SHA for the v4 release:
Note: This issue also affects the other actions in this workflow (lines 22, 26).
As per static analysis hints: "action is not pinned to a hash (required by blanket policy)".
🧰 Tools
🪛 zizmor (1.25.2)
[error] 36-36: unpinned action reference (unpinned-uses): action is not pinned to a hash (required by blanket policy)
(unpinned-uses)
🤖 Prompt for AI Agents
🧩 Analysis chain
🌐 Web query:
github codeql-action v4 breaking changes upload-sarif💡 Result:
No single, universally applicable “CodeQL Action v4 breaking change” exists specifically named for “upload-sarif”; instead, there are several v4-relevant changes/edge-cases that commonly make an upload-sarif step appear “broken” after upgrading. 1) v4 major version requires the Node.js 24 Actions runtime (and some GHES versions can’t run it) - GitHub states that CodeQL Action v4 (released Oct 7, 2025) runs on the Node.js 24 runtime [1]. - GitHub also states GHES 3.18 and older cannot run actions using the Node.js 24 runtime, so they are unable to run CodeQL Action v4 [1]. Impact: if you’re on an older GHES or a platform without Node.js 24 runtime support,
github/codeql-action/upload-sarif@v4won’t work. 2) Permissions: upload-sarif can fail with “Resource not accessible by integration” unlessactions: readis granted - A CodeQL Action issue documentsupload-sariffailing (before any real upload happens) and identifies the missing permission asactions: read[2]. - The issue author reports that addingpermissions: actions: readat the job level madeupload-sarifwork [2]. Impact: workflows (especially reusable/composite workflows) that don’t explicitly grantpermissions: actions: readmay break. Suggested fix (YAML): permissions: actions: read 3) SARIF post-processing behavior changed for uploads initiated byanalyzeorupload-sarif(primarily impactsanalyze) - The CodeQL Action changelog says that when SARIF files are uploaded byanalyzeorupload-sarif, the action automatically performs post-processing steps to prepare the data for upload. - It further says those post-processing steps previously ran only “before an upload took place”, but are now always performed even when SARIF files are not uploaded; it also says “This does not change anything for the upload-sarif action,” and notes possible impact onanalyzeusers depending on theuploadinput [3]. Impact: if your workflow relies on specific timing/side-effects of post-processing foranalyze, the behavior can change;upload-sarifitself is stated as unchanged for this particular item [3]. 4) Specific upload-sarif bug fix: non-.sariffiles not being uploaded (fixed in the v3.30.4 line) - The changelog notes they fixed “a bug … withupload-sarif… [that] resulted in files without a.sarifextension not getting uploaded” [3]. Impact: if your pipeline uploads files whose names/extensions aren’t standard.sarif, you may see behavior differences depending on which CodeQL Action release your@v4tag resolves to. 5) GHES 3.18 limitation: combining SARIF files from a single upload is removed - The changelog notes: “Remove support for combining SARIF files from a single upload for GHES 3.18” [3]. Impact: if your GHES 3.18-based setup tried to upload multiple SARIFs in a way that relied on that combining behavior, you may see changes. If you paste your workflow step (the exactuses: github/codeql-action/upload-sarif@v4...line), plus the error message you’re seeing, I can pinpoint which of the above is the match and tell you the minimal change needed.Citations:
actions: readgithub/codeql-action#2117🏁 Script executed:
Repository: AIX-Format/PiWorker-OS
Length of output: 282
🏁 Script executed:
Repository: AIX-Format/PiWorker-OS
Length of output: 1847
Pin
github/codeql-action/upload-sarif@v4and address CodeQL v4 requirementsuses: github/codeql-action/upload-sarif@v4isn’t pinned to an immutable ref (contradicts the “Pin action versions…” comments and the hash-pinning policy), so an upstream tag change could alter the action behavior.upload-sarifdepending on the runner/platform and permissions: v4 requires the Node.js 24 runtime (GHES < 3.18 may fail), andupload-sarifcan error unlesspermissions: actions: readis granted. This workflow currently only setscontents: readandsecurity-events: write.permissions: actions: readand (2) pin the CodeQLupload-sarifaction to a specific commit SHA (and pin other actions too if your policy is blanket).🧰 Tools
🪛 zizmor (1.25.2)
[error] 36-36: unpinned action reference (unpinned-uses): action is not pinned to a hash (required by blanket policy)
(unpinned-uses)
🤖 Prompt for AI Agents