Skip to content

ci: add zizmor as a prek hook (for github actions security), and address warnings #12

ci: add zizmor as a prek hook (for github actions security), and address warnings

ci: add zizmor as a prek hook (for github actions security), and address warnings #12

Workflow file for this run

name: Prek (linting and formatting)
on:
push:
branches: [main]
tags: ["*"]
pull_request:
branches: [main]
workflow_dispatch:
permissions:
contents: read
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
jobs:
test:
runs-on: ubuntu-24.04
steps:
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6
with:
persist-credentials: false
- uses: j178/prek-action@b0ae0c600be6176aa296014b4eab1974096ebd69 # v2
ci-gate:
name: Prek CI Gate
needs: [test]
if: github.event_name == 'pull_request' && !cancelled()
runs-on: ubuntu-slim
steps:
- run: |
if [[ "${{ contains(needs.*.result, 'failure') }}" == "true" ]]; then
exit 1
fi