Skip to content

fix: harden GitHub Actions workflows#414

Merged
fzipi merged 1 commit intomainfrom
fix/harden-gha-workflows
Mar 27, 2026
Merged

fix: harden GitHub Actions workflows#414
fzipi merged 1 commit intomainfrom
fix/harden-gha-workflows

Conversation

@fzipi
Copy link
Copy Markdown
Member

@fzipi fzipi commented Mar 16, 2026

what

  • pin docker/bake-action/subaction/matrix to commit SHA instead of mutable v6 tag
  • add explicit minimal permissions blocks to all three workflows

why

  • the docker/bake-action/subaction/matrix@v6 tag is mutable and could be moved to inject arbitrary code — especially dangerous in publish.yml which handles DockerHub and GHCR credentials
  • without explicit permissions, workflows inherit default GITHUB_TOKEN permissions which may be broader than needed

refs

- pin docker/bake-action/subaction/matrix to commit SHA instead of mutable v6 tag
- add explicit minimal permissions blocks to all workflows
@fzipi fzipi requested a review from theseion March 16, 2026 17:42
@fzipi fzipi merged commit 903a762 into main Mar 27, 2026
9 checks passed
@fzipi fzipi deleted the fix/harden-gha-workflows branch March 27, 2026 14:05
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.

2 participants