Skip to content

harden ci

harden ci #5

name: Verify Action Pins
on:
pull_request:
paths:
- '.github/workflows/**'
jobs:
verify:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683
- name: Check SHA pins
run: |
if grep -E -r "uses: .*/.*@(v[0-9]+|main|master)" .github/workflows/; then
echo "::error::Actions should use SHA pins, not tags or branch names"
exit 1
fi