Skip to content

Pin GitHub Actions to commit SHAs - #9

Merged
bensynapse merged 1 commit into
mainfrom
ci/harden-actions
Nov 9, 2026
Merged

bensynapse merged 1 commit into
mainfrom
ci/harden-actions

Conversation

@bensynapse

Copy link
Copy Markdown
Member

Pins every mutable uses: reference in ci.yml, publish.yml to a full 40-character commit SHA.
The release tag stays in a trailing comment, so Dependabot keeps the pins current.

Pins:

  • actions/checkout v7 to v7.0.1
  • actions/setup-python v7 to v7.1.0
  • actions/upload-artifact v7 to v7.0.2
  • actions/download-artifact v8 to v8.0.2
  • pypa/gh-action-pypi-publish release/v1 to v1.14.3

publish.yml runs only on tags or releases. The pins there stay unverified until the next release.

Triggers, jobs, steps and commands stay as they were.

Every action reference now points at a full commit SHA, with the release tag in a trailing comment. Dependabot reads that comment, so the pins keep getting updates. Triggers, jobs and steps stay as they were.
@bensynapse
bensynapse merged commit ea9528c into main Nov 9, 2026
13 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.

1 participant