Skip to content

ci: pin actions to commit SHAs and restrict permissions#553

Merged
bfabio merged 1 commit intoitalia:mainfrom
creed-bratton:pin-actions
Apr 14, 2026
Merged

ci: pin actions to commit SHAs and restrict permissions#553
bfabio merged 1 commit intoitalia:mainfrom
creed-bratton:pin-actions

Conversation

@creed-bratton
Copy link
Copy Markdown
Contributor

Actions pinned to mutable tags are vulnerable to tag-moving supply chain attacks.

  • Pin all actions to their current commit SHA (tag kept as comment)
  • Add permissions: {} at workflow level and grant minimum scopes per job
    • crawl: contents: read
    • lint: contents: read
    • release-chart: packages: write
    • release: contents: write
    • test_and_publish_docker_image: contents: read for test, packages: write for build/push

@bfabio bfabio merged commit 6f88563 into italia:main Apr 14, 2026
4 checks passed
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