File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 77 paths :
88 - " .github/**"
99jobs :
10+ zizmor-check :
11+ name : Check whether there are things to scan
12+ permissions :
13+ contents : read
14+ runs-on : ${{ !github.event.repository.private && 'ubuntu-latest' || 'ubuntu-arm64-small' }}
15+ outputs :
16+ found-files : ${{ steps.zizmor-check.outputs.found-files }}
17+ steps :
18+ - name : Checkout
19+ uses : actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4
20+ - name : Run zizmor
21+ id : zizmor-check
22+ shell : bash
23+ run : |
24+ FOUND_FILES=false
25+ if [ -e .github/workflows/*.{yml,yaml} ]; then
26+ FOUND_FILES=true
27+ fi
28+ if [ -e **/.github/workflows/*.{yml,yaml} ]; then
29+ FOUND_FILES=true
30+ fi
31+ if [ -e **/action.{yml,yaml} ]; then
32+ FOUND_FILES=true
33+ fi
34+ echo "found-files=${FOUND_FILES}" >> $GITHUB_OUTPUT
1035 zizmor :
1136 name : Run zizmor from current branch (self test)
1237
1742 pull-requests : write
1843 security-events : write
1944
45+ needs :
46+ - zizmor-check
47+ if : ${{ needs.zizmor-check.outputs.found-files == 'true' }}
48+
2049 uses : grafana/shared-workflows/.github/workflows/reusable-zizmor.yml@b502a15952bab7f72daa1f8ce115491a6d97be59
2150 with :
2251 runs-on : ${{ !github.event.repository.private && 'ubuntu-latest' || 'ubuntu-arm64-small' }}
You can’t perform that action at this time.
0 commit comments