Skip to content

Pin nested action dependencies to full SHAs - #40

Open
noqt wants to merge 1 commit into
PyCQA:mainfrom
noqt:fix/pin-action-dependencies
Open

Pin nested action dependencies to full SHAs#40
noqt wants to merge 1 commit into
PyCQA:mainfrom
noqt:fix/pin-action-dependencies

Conversation

@noqt

@noqt noqt commented Aug 28, 2026

Copy link
Copy Markdown

Full-SHA policies inspect nested action references too, so pinning PyCQA/bandit-action itself isn't enough. This patch replaces the three mutable tags in action.yml with the exact commits currently behind them:

  • actions/setup-python@v75fda3b95a4ea91299a34e894583c3862153e4b97
  • actions/checkout@v73d3c42e5aac5ba805825da76410c181273ba90b1
  • github/codeql-action/upload-sarif@v4.37.8db488ddef3bf6cb639b32c2e9a7c0a7ea8271d28

The version comments stay beside each SHA, so the file remains readable and dependency updates remain straightforward. No action version or runtime behaviour is intentionally changed; the current versions are simply made immutable.

I verified the tag mappings against each official GitHub repository, parsed action.yml, checked that every nested uses: reference is a 40-character SHA, and ran git diff --check.

I'm contributing this from NOQT as a focused upstream security-hardening fix. Addresses #28.

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