Update actions/cache action to v5 #149
Workflow file for this run
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: Verify Action Pins | |
| on: | |
| pull_request: | |
| paths: | |
| - '.github/workflows/**' | |
| jobs: | |
| verify_action_pins: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v6.0.1 | |
| - name: Check SHA pins | |
| run: | | |
| if grep -E -r "uses: .*/.*@(v[0-9]+|main|master)($|[[:space:]]|$)" --include="*.yml" --include="*.yaml" .github/workflows/ | grep -v "#"; then | |
| echo "::error::Actions should use SHA pins, not tags or branch names" | |
| exit 1 | |
| fi |