Repository navigation
SHA Sentry v4.0.0
π‘οΈ SHA Sentry v4.0.0
A GitHub Action that automatically scans and reports unpinned GitHub Actions in workflow files for enhanced security.
π Changes in this release
Added
- π Discover nested workflow files under
.github/workflows/**/*.ymland.github/workflows/**/*.yaml(previously only flat directory patterns were searched). - π§© Detect composite actions by indexing
action.ymlfiles under.github/actions/**/action.yml. - π― Support glob-style exclude patterns (via minimatch) for more precise file exclusions (supports patterns like
docs/**,**/*.yml,experimental/**, etc.). - π Report excluded files and the matching exclude pattern in the GitHub Actions summary so auditing decisions are explicit and auditable.
- βοΈ Case-insensitive matching for YAML file extensions to avoid false-negatives on case-sensitive runners (e.g.
.YML,.Yaml). - β Added unit tests specifically covering composite-action discovery and glob-style excludes to prevent regressions.
Changed
- β»οΈ Broadened workflow discovery to include nested workflows and composite action manifests.
- π οΈ Replace simple substring excludes with glob-style matching (minimatch) while keeping a safe substring fallback.
- π§Ύ Enrich generated reports to include excluded files and matched patterns so reviewers can quickly identify why files were skipped.
- π Internal improvements to parsing logic and matching to reduce false-negatives when scanning repository-triggered runs.
Fixed
- β Correctly detect unpinned actions in workflows that are present in nested directories or use different file-extension casing.
- π Avoid false negatives for composite actions and repository-run workflows that weren't previously being scanned.
Security
- π‘οΈ Increased audit coverage by discovering more workflow/action files; improves supply-chain visibility and reduces attack surface.
π Quick Start
- name: Run SHA Sentry Security Scan
uses: Tatsinnit/sha-sentry@v4.0.0
with:
github_token: \ghs_OY8Zj17P1t0GfASdfkuhyddTezyFC01HFEzYπ 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...v4.0.0