Skip to content

chore: pin CI actions to commit SHA, add Python gitignore entries#1325

Open
iknowkungfubar wants to merge 1 commit into
danielmiessler:mainfrom
iknowkungfubar:chore/pin-actions-and-gitignore
Open

chore: pin CI actions to commit SHA, add Python gitignore entries#1325
iknowkungfubar wants to merge 1 commit into
danielmiessler:mainfrom
iknowkungfubar:chore/pin-actions-and-gitignore

Conversation

@iknowkungfubar
Copy link
Copy Markdown

Two small housekeeping items:

CI supply chain hardening
Both workflows (claude.yml, claude-code-review.yml) used floating version tags for actions/checkout (@v4) and anthropics/claude-code-action (@v1). Pinning to the specific commit SHA these tags currently resolve to prevents a tag-move supply chain attack.

  • actions/checkout@v434e114876b0b11c390a56381ad16ebd13914f8d5 (v4.3.1, verified against the repo tag)
  • anthropics/claude-code-action@v170a6e5256e9e2366a1ed5c041904a982ba3a328f (v1.0.135, verified against the repo tag)

Comments show the semantic version for human reference, but the action resolves by SHA.

.gitignore + .gitattributes
The repo contains Python files across PACKs and tooling. Added __pycache__, .coverage, .venv, *.pyc, and related build/cache patterns to .gitignore, plus Thumbs.db. Added *.py text eol=lf to .gitattributes.

- Pin actions/checkout@v4 to v4.3.1 (34e11487) and
  anthropics/claude-code-action@v1 to v1.0.135 (70a6e525)
  in both claude.yml and claude-code-review.yml workflows.
  Pinning by SHA prevents supply-chain hijack via tag movement.
- Add Python build artifacts, cache, and virtual environment
  entries to .gitignore (__pycache__, .coverage, .venv, etc.)
  and Windows Thumbs.db.
- Add Python *.py text=auto eol=lf to .gitattributes.
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