Skip to content

Bump actions/setup-go from 5.4.0 to 5.5.0 in the all-github-action-dependencies group #3

Bump actions/setup-go from 5.4.0 to 5.5.0 in the all-github-action-dependencies group

Bump actions/setup-go from 5.4.0 to 5.5.0 in the all-github-action-dependencies group #3

name: zizmor GitHub Actions static analysis
on:
push:
paths:
- ".github/**"
pull_request:
paths:
- ".github/**"
jobs:
zizmor-check:
name: Check whether there are things to scan
permissions:
contents: read
runs-on: ${{ !github.event.repository.private && 'ubuntu-latest' || 'ubuntu-arm64-small' }}
outputs:
found-files: ${{ steps.zizmor-check.outputs.found-files }}
steps:
- name: Checkout
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4
- name: Run zizmor
id: zizmor-check
shell: bash
run: |
FOUND_FILES=false
SEARCH=$(find . -path "**/.github/workflows/*.yml" -o -path "**/.github/workflows/*.yaml" -o -path "**/action.yml" -o -path "**/action.yaml")
if [ -n "$SEARCH" ]; then
FOUND_FILES=true
fi
echo "found-files=${FOUND_FILES}" >> $GITHUB_OUTPUT
zizmor:
name: Run zizmor from current branch (self test)
permissions:
actions: read
contents: read
id-token: write
pull-requests: write
security-events: write
needs:
- zizmor-check
if: ${{ needs.zizmor-check.outputs.found-files == 'true' }}
uses: grafana/shared-workflows/.github/workflows/reusable-zizmor.yml@6b7528b5d783ea798a1f9f20906c4a0da69be914
with:
runs-on: ${{ !github.event.repository.private && 'ubuntu-latest' || 'ubuntu-arm64-small' }}
fail-severity: never
min-severity: high
min-confidence: low
extra-args: --offline