-
-
Notifications
You must be signed in to change notification settings - Fork 0
fix(ci): reconcile the workflows with actions.lock (gh-actions-lock) #101
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
Merged
Merged
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
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
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
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
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
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
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
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
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
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
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
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.
🎯 Functional Correctness | 🟡 Minor | ⚡ Quick win
🔎 Supported by static analysis
🤖 get_repo_knowledge executed:
get_repo_knowledge hyperpolymath/natsci-studio /tmp/coderabbit-repo-knowledge/hyperpolymath-natsci-studio-7ccc5364Length of output: 1362
🏁 Script executed:
Repository: hyperpolymath/natsci-studio
Length of output: 50383
🏁 Script executed:
Repository: hyperpolymath/natsci-studio
Length of output: 8343
🏁 Script executed:
Repository: hyperpolymath/natsci-studio
Length of output: 8248
🏁 Script executed:
Repository: hyperpolymath/natsci-studio
Length of output: 28950
🏁 Script executed:
Repository: hyperpolymath/natsci-studio
Length of output: 10492
🌐 Web query:
zizmor 1.30.0 unpinned-uses actions.lock lockfile support documentation💡 Result:
<search_synthesis>
As of zizmor version 1.30.0, there is no native support for using a.github/workflows/actions.lock file to suppress findings in the unpinned-uses audit [1][2][3]. The unpinned-uses audit in zizmor is designed to ensure that GitHub Actions are pinned to a specific commit SHA (hash-pinning) [3][4]. While other security tools, such as CodeQL, have implemented support for recognizing lockfile-pinned references to suppress warnings [5], zizmor&
#39;s unpinned-uses audit operates based on its own configurable policies [1][3]. Users can manage how zizmor evaluates pinning requirements through the following mechanisms: 1. Configurable Policies: You can define custom policies in your zizmor.yml configuration file to specify which actions or namespaces require hash-pinning versus ref-pinning [1][3]. This allows you to relax requirements for trusted internal actions or specific repositories [1][3]. 2. Ignore Comments: zizmor supports ignore comments within the workflow file to suppress findings for specific steps [2]. 3. Audit Configuration: The unpinned-uses audit allows you to set policies such as ref-pin or hash-pin for different patterns (e.g., actions/, github/) [1][6]. If you require suppression for actions that are managed via a lockfile, you must currently use zizmor's native configuration or ignore mechanisms rather than relying on an external lockfile integration [1][3].</search_synthesis>
<source_evidence>
Citations:
Resolve the
zizmorpinning conflict before merging.actions.lockrecords the resolved commits, butzizmor1.30.0 does not use this file forunpinned-uses. These tag references can therefore fail a requiredzizmorcheck. Use a narrowly scopedzizmorpolicy for the intended references, or replace them with full commit-SHA references and regenerateactions.lock. Do not add a blanket suppression.🧰 Tools
🪛 zizmor (1.30.0)
[warning] 38-39: credential persistence through GitHub Actions artifacts (artipacked): does not set persist-credentials: false
(artipacked)
[error] 39-39: unpinned action reference (unpinned-uses): action is not pinned to a hash (required by blanket policy)
(unpinned-uses)
📍 Affects 8 files
.github/workflows/codeql.yml#L39-L39(this comment).github/workflows/codeql.yml#L42-L42.github/workflows/codeql.yml#L47-L47.github/workflows/boj-build.yml#L25-L25.github/workflows/dependabot-automerge.yml#L58-L58.github/workflows/dogfood-gate.yml#L26-L26.github/workflows/dogfood-gate.yml#L64-L64.github/workflows/dogfood-gate.yml#L107-L107.github/workflows/dogfood-gate.yml#L169-L169.github/workflows/dogfood-gate.yml#L227-L227.github/workflows/instant-sync.yml#L24-L24.github/workflows/openssf-compliance.yml#L24-L24.github/workflows/repository-validation.yml#L17-L17.github/workflows/rhodibot.yml#L37-L37🤖 Prompt for AI Agents
Source: Linters/SAST tools