Skip to content

Pin GitHub Actions to specific commit SHAs for security#3294

Open
Herklos wants to merge 3 commits intodevfrom
claude/fix-actions-fork-security-92Sen
Open

Pin GitHub Actions to specific commit SHAs for security#3294
Herklos wants to merge 3 commits intodevfrom
claude/fix-actions-fork-security-92Sen

Conversation

@Herklos
Copy link
Member

@Herklos Herklos commented Mar 5, 2026

No description provided.

- Add top-level `permissions: read-all` to restrict GITHUB_TOKEN to read-only by default
- Add per-job permissions for docker (packages: write) and release (contents: write) jobs
- Pin all third-party actions to full commit SHAs instead of mutable tags
- Replace dangerous `docker/build-push-action@master` with stable v6 pinned to SHA
- Pin internal reusable workflow to commit SHA

https://claude.ai/code/session_01LWawuSwikT1qRjtryfbtRF
@Herklos Herklos requested a review from GuillaumeDSM as a code owner March 5, 2026 08:02
claude added 2 commits March 5, 2026 08:04
Revert commit SHA pinning per user request. Keep:
- Top-level `permissions: read-all` to restrict GITHUB_TOKEN by default
- Per-job permissions for docker and release jobs
- Replace `docker/build-push-action@master` with `@v6`
- Fix non-existent action version tags (v6→v4, v7→v4)

https://claude.ai/code/session_01LWawuSwikT1qRjtryfbtRF
Restore original action version tags (v6, v7, etc.) as requested.
Only security changes retained:
- permissions: read-all at workflow level
- Per-job permissions for docker and release jobs
- docker/build-push-action@master replaced with @v6

https://claude.ai/code/session_01LWawuSwikT1qRjtryfbtRF
@Herklos Herklos enabled auto-merge (rebase) March 5, 2026 08:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants