Skip to content

fix: harden homebrew-release workflow security#392

Merged
Data-Wise merged 4 commits intodevfrom
feature/homebrew-workflow-hardening
Feb 16, 2026
Merged

fix: harden homebrew-release workflow security#392
Data-Wise merged 4 commits intodevfrom
feature/homebrew-workflow-hardening

Conversation

@Data-Wise
Copy link
Owner

Summary

  • Fix script injection: Move ${{ }} expressions to env: block instead of inline shell interpolation (prevents code injection via crafted tag names)
  • Harden SHA256 calculation: Add --retry 3, validate hash length (64 chars), use sha256sum for Linux runner compatibility
  • Sync CLAUDE.md: Update stale file counts (lib 69→74, tests 181→186) and add 4 missing teach subcommands

Test plan

  • Trigger homebrew-release.yml via manual dispatch to verify version/SHA flow
  • Verify SHA256 validation catches empty/invalid hashes
  • Confirm env: block properly passes event context to shell

🤖 Generated with Claude Code

Data-Wise and others added 4 commits February 14, 2026 23:04
chore: sync dev — semantic-release fix session
chore: clean up project permissions
- Use env indirection for github context to prevent script injection
- Replace shasum with sha256sum (standard on Ubuntu runners)
- Add --retry 3 with delay on tarball download
- Add empty SHA256 validation guard (64-char hex check)

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Update stale counts (lib 69→74, tests 181→186) and add 4 missing
teach subcommands (cache, profiles, migrate, validate).

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@Data-Wise Data-Wise merged commit 9d56e84 into dev Feb 16, 2026
1 check passed
@Data-Wise Data-Wise deleted the feature/homebrew-workflow-hardening branch February 16, 2026 05:02
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