Harden GitHub Actions workflows#30
Conversation
📝 WalkthroughWalkthroughThis PR hardens four GitHub Actions workflows by pinning all third-party action references to specific commit SHAs instead of floating version tags. The changes add workflow-level permissions scoped to ChangesGitHub Actions Hardening
Estimated code review effort🎯 3 (Moderate) | ⏱️ ~20 minutes Poem
🚥 Pre-merge checks | ✅ 4✅ Passed checks (4 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing Touches🧪 Generate unit tests (beta)
Comment |
There was a problem hiding this comment.
Actionable comments posted: 1
Caution
Some comments are outside the diff and can’t be posted inline due to platform limitations.
⚠️ Outside diff range comments (1)
.github/workflows/release.yml (1)
31-33:⚠️ Potential issue | 🟠 Major | ⚡ Quick winFix invalid GitHub-hosted ARM64 runner label in release matrix
.github/workflows/release.ymlusesos: ubuntu-22.04-arm64-4core, which is not a supported GitHub-hosted Ubuntu ARM64 label. Useubuntu-22.04-arminstead to avoid matrix jobs failing to schedule.Suggested fix
- - target: aarch64-unknown-linux-gnu - os: ubuntu-22.04-arm64-4core + - target: aarch64-unknown-linux-gnu + os: ubuntu-22.04-arm name: linux-aarch64🤖 Prompt for AI Agents
Verify each finding against current code. Fix only still-valid issues, skip the rest with a brief reason, keep changes minimal, and validate. In @.github/workflows/release.yml around lines 31 - 33, Replace the invalid GitHub-hosted runner label used in the release matrix: locate the matrix entry containing "target: aarch64-unknown-linux-gnu" and currently set "os: ubuntu-22.04-arm64-4core" (with "name: linux-aarch64") and change the os value to the supported label "ubuntu-22.04-arm" so the ARM64 job can be scheduled correctly.
🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.
Inline comments:
In @.github/workflows/docker-publish.yml:
- Around line 30-31: The ARM64 runner label is invalid and causes scheduling
failures; update the ARM64 matrix.runner entries for both jobs named build-pr
and build-and-push by replacing the unsupported label "ubuntu-22.04-arm64-4core"
with the supported "ubuntu-22.04-arm" (leave the corresponding matrix.platform
value "linux/arm64" unchanged) so the matrix.runner values match GitHub-hosted
ARM64 runner names.
---
Outside diff comments:
In @.github/workflows/release.yml:
- Around line 31-33: Replace the invalid GitHub-hosted runner label used in the
release matrix: locate the matrix entry containing "target:
aarch64-unknown-linux-gnu" and currently set "os: ubuntu-22.04-arm64-4core"
(with "name: linux-aarch64") and change the os value to the supported label
"ubuntu-22.04-arm" so the ARM64 job can be scheduled correctly.
🪄 Autofix (Beta)
Fix all unresolved CodeRabbit comments on this PR:
- Push a commit to this branch (recommended)
- Create a new PR with the fixes
ℹ️ Review info
⚙️ Run configuration
Configuration used: Organization UI
Review profile: CHILL
Plan: Pro
Run ID: 261f3eb6-d1df-4dee-8bb7-443375e13b93
📒 Files selected for processing (4)
.github/workflows/ci.yml.github/workflows/docker-publish.yml.github/workflows/release.yml.github/workflows/security.yml
Summary
Verification
Summary by CodeRabbit
Release Notes