Repository navigation
SHA Sentry v2.0.0
π‘οΈ SHA Sentry v2.0.0
A GitHub Action that automatically scans and reports unpinned GitHub Actions in workflow files for enhanced security.
π Changes in this release
BREAKING CHANGES
- π Complete architectural transformation: Changed from file modification to reporting-only mode
- π Permissions simplified: Now only requires
contents: readinstead of write permissions - π No more Pull Requests: Removed PR creation functionality to focus on security auditing
- β‘ Manual implementation: Users now manually implement recommended SHA pins based on reports
Added
- π‘οΈ Security audit mode: Comprehensive scanning and reporting of unpinned actions
- π Detailed reporting: Rich console output and GitHub Actions summary with recommendations
- π― SHA resolution: Resolves action tags and branches to specific commit SHAs via GitHub API
- π« Smart filtering: Skips local actions, Docker actions, and GitHub Actions expressions
- π File discovery: Automatic discovery of all workflow files in
.github/workflows/ - βοΈ Configurable exclusions: Support for exclude patterns to skip specific files
- π Comprehensive outputs: Provides actionable metrics via GitHub Actions outputs
- β Full test coverage: 12 comprehensive tests with 92%+ code coverage
- π Async processing: Proper async/await handling for reliable SHA resolution
Changed
- Core functionality: From modification to reporting and recommendations
- Permission model: Reduced from write to read-only permissions
- User workflow: From automated changes to manual implementation with guidance
- Documentation: Complete rewrite focusing on security auditing capabilities
Removed
- β Pull request creation: No longer creates PRs to avoid permission complexity
- β File modification: No longer directly modifies workflow files
- β Write permissions: No longer requires
contents: writeor PR permissions
Security
- π‘οΈ Enhanced security model: Read-only approach prevents potential misuse
- π No elevated permissions: Works with minimal GitHub token permissions
- π Audit trail: Provides clear reporting without making unauthorized changes
- β‘ Supply chain protection: Identifies unpinned actions for manual remediation
π Quick Start
- name: Run SHA Sentry Security Scan
uses: Tatsinnit/sha-sentry@v2.0.0
with:
github_token: \ghs_o4YeKRC6423A50CBl5PCJCQ9wfshTz2b7iunπ Security Benefits
- π‘οΈ Supply Chain Protection: Identifies unpinned actions that could be compromised
- π Security Auditing: Provides detailed reports of all action references
- π Compliance Reporting: Helps maintain security best practices
- π Zero Permissions: Only requires read access to scan repositories
π Documentation
Full Changelog: v1.0.0...v2.0.0