ci: validate action pins on push to main #2000
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
| name: Validate Action SHA Pins | |
| on: | |
| # A PR only re-checks the pins it edits, so a stale major merges green and reddens every later workflow PR. | |
| push: | |
| branches: | |
| - main | |
| paths: | |
| - '.github/workflows/**' | |
| - '.github/actions/**' | |
| - '.pinact.yaml' | |
| pull_request: | |
| paths: | |
| - '.github/workflows/**' | |
| - '.github/actions/**' | |
| - '.pinact.yaml' | |
| permissions: | |
| contents: read | |
| jobs: | |
| validate-pins: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v7 | |
| - uses: suzuki-shunsuke/pinact-action@3d49c6412901042473ffa78becddab1aea46bbea # v1.3.1 | |
| with: | |
| skip_push: 'true' |