diff --git a/.github/workflows/zizmor.yml b/.github/workflows/zizmor.yml new file mode 100644 index 0000000..426508c --- /dev/null +++ b/.github/workflows/zizmor.yml @@ -0,0 +1,36 @@ +name: GitHub Actions Security Analysis with zizmor + +permissions: {} + +on: + push: + branches: + - main + - master + pull_request: + branches: + - main + - master + +jobs: + zizmor: + runs-on: ubuntu-latest + permissions: + security-events: write + contents: read + actions: read + steps: + - name: Checkout repository + uses: actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 # v7 + with: + persist-credentials: false + + - name: Run zizmor (upload to Security tab) + uses: zizmorcore/zizmor-action@192e21d79ab29983730a13d1382995c2307fbcaa + + - name: Run zizmor (fail on high severity) + run: | + pip install zizmor + zizmor --min-severity=high . + env: + GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}