Skip to content

Zizmor

Zizmor #2194

Workflow file for this run

name: Formatting
on: [push, pull_request]
permissions:
contents: read
jobs:
Format:
runs-on: ubuntu-26.04
steps:
- name: "Checkout repo"
uses: actions/checkout@d23441a48e516b6c34aea4fa41551a30e30af803 # v6.1.0
with:
persist-credentials: false # unneeded: no git auth beyond checkout
- name: Set up nix
uses: $/.github/actions/setup-nix
- name: Run treefmt
run: |
set -eo pipefail
nix fmt -- --ci || {
echo "❌ Code is not formatted. Showing diff:"
git --no-pager diff
exit 1
}