Skip to content

chore(main): release 2.1.1 #484

chore(main): release 2.1.1

chore(main): release 2.1.1 #484

name: zizmor GitHub Actions static analysis
on:
push:
pull_request:
types:
- edited
- opened
- ready_for_review
- synchronize
- reopened
merge_group:
types: [checks_requested]
jobs:
zizmor-check:
name: Check whether there are things to scan
permissions:
contents: read
runs-on: ${{ (!github.event.repository.private || github.repository_owner != 'grafana') && 'ubuntu-latest' || 'ubuntu-any-minus' }} # grafana private repos use self-hosted runners (any arch, medium or smaller); other orgs use ubuntu-latest
outputs:
found-files: ${{ steps.zizmor-check.outputs.found-files }}
steps:
- name: Checkout
uses: actions/checkout@df4cb1c069e1874edd31b4311f1884172cec0e10 # v6
- 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
permissions:
actions: read
contents: write
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@829aef098ea86ba0e61e74f895c00c9a8cc1fba9
with:
runs-on: ${{ (!github.event.repository.private || github.repository_owner != 'grafana') && 'ubuntu-latest' || 'ubuntu-any-minus' }} # grafana private repos use self-hosted runners (any arch, medium or smaller); other orgs use ubuntu-latest
fail-severity: high
min-severity: high
min-confidence: low
extra-args: --offline
# Reusable workflow gates bench job on org + non-fork PR (OIDC/Vault not available on fork PRs); pass true to opt in.
send-bench-metrics: true
auto-delete-dangerous-branches: true
auto-delete-slack-channel-id: C0B7DLH818A
secrets: inherit