Pin GitHub Actions to commit SHAs#87
Conversation
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Organization UI Review profile: CHILL Plan: Pro Run ID: 📒 Files selected for processing (2)
🚧 Files skipped from review as they are similar to previous changes (2)
WalkthroughTwo GitHub Actions workflow files are updated to pin action references to exact commit SHAs instead of version tags. In .github/workflows/build.yml, Estimated code review effort🎯 1 (Trivial) | ⏱️ ~3 minutes 🚥 Pre-merge checks | ✅ 3✅ Passed checks (3 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing Touches🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
There was a problem hiding this comment.
Actionable comments posted: 2
🤖 Prompt for all review comments with AI agents
Verify each finding against the current code and only fix it if needed.
Inline comments:
In @.github/workflows/build.yml:
- Around line 18-19: The workflow still uses tag-based action references for
actions/attest-build-provenance@v3 and softprops/action-gh-release@v2; replace
those tag references with their corresponding commit SHAs (pin to exact commits)
to fully harden the supply chain—locate the occurrences of
actions/attest-build-provenance and softprops/action-gh-release in the workflow
YAML and update each uses: line to the full commit SHA for the current v3/v2
releases (verify the SHA on GitHub for the exact tag before updating) so the
workflow is consistently pinned like the existing actions/checkout and
actions/setup-java entries.
In @.github/workflows/codeql-analysis.yml:
- Around line 19-22: Replace the workflow steps that reference
github/codeql-action by tag (github/codeql-action/init@v4 and
github/codeql-action/analyze@v4) with their corresponding immutable commit SHAs
so the CodeQL workflow is fully pinned; locate the init and analyze steps in the
.github/workflows/codeql-analysis.yml file and update the uses entries to the
exact commit SHA for each action (matching the repo's vetted version) while
keeping any existing with: inputs unchanged.
ℹ️ Review info
⚙️ Run configuration
Configuration used: Organization UI
Review profile: CHILL
Plan: Pro
Run ID: 87ff6597-92bb-4d63-ba22-7fca90014cba
📒 Files selected for processing (2)
.github/workflows/build.yml.github/workflows/codeql-analysis.yml
Pin all GitHub Actions and reusable workflows to immutable commit SHAs instead of version tags.