Skip to content

Conversation

@adamreynolds-io
Copy link

@adamreynolds-io adamreynolds-io commented Feb 9, 2026

Test AI-generated PR — closed, no longer needed.

- Replace execSync with execFileSync for git clone to prevent shell
  injection via malicious branch names (CWE-78)
- Add branch name validation against safe character pattern
- Pin GitHub Actions to immutable commit SHAs (checkout v6.0.2,
  setup-node v6.2.0) to prevent tag-hijacking supply chain attacks
- Add top-level permissions: contents: read to restrict GITHUB_TOKEN
  scope in both CI and publish workflows

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@adamreynolds-io adamreynolds-io added the ai-assisted PR created or modified with AI assistance label Feb 10, 2026
@adamreynolds-io adamreynolds-io deleted the fix/command-injection-and-workflow-hardening branch February 11, 2026 04:25
@adamreynolds-io adamreynolds-io changed the title fix: prevent command injection in git-cloner and harden workflows test: AI-generated PR (closed) Feb 11, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

ai-assisted PR created or modified with AI assistance

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant