chore: pin CI actions to commit SHA, add Python gitignore entries#1325
Open
iknowkungfubar wants to merge 1 commit into
Open
chore: pin CI actions to commit SHA, add Python gitignore entries#1325iknowkungfubar wants to merge 1 commit into
iknowkungfubar wants to merge 1 commit into
Conversation
- 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.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Two small housekeeping items:
CI supply chain hardening
Both workflows (
claude.yml,claude-code-review.yml) used floating version tags foractions/checkout(@v4) andanthropics/claude-code-action(@v1). Pinning to the specific commit SHA these tags currently resolve to prevents a tag-move supply chain attack.actions/checkout@v4→34e114876b0b11c390a56381ad16ebd13914f8d5(v4.3.1, verified against the repo tag)anthropics/claude-code-action@v1→70a6e5256e9e2366a1ed5c041904a982ba3a328f(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, plusThumbs.db. Added*.py text eol=lfto.gitattributes.