Skip to content

Commit

Permalink
Merge pull request #52 from berquist/zizmor
Browse files Browse the repository at this point in the history
pre-commit: add zizmor
  • Loading branch information
berquist authored Feb 11, 2025
2 parents 328e56c + 83b0be8 commit d755f10
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 1 deletion.
6 changes: 5 additions & 1 deletion .github/workflows/docker.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,8 @@ concurrency:
group: docker-${{github.ref}}-${{github.event.pull_request.number || github.run_number}}
cancel-in-progress: true

permissions: {}

jobs:
docker:
runs-on: ubuntu-latest
Expand All @@ -18,6 +20,8 @@ jobs:
steps:
- name: Checkout
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4
with:
persist-credentials: false
- name: Gather metadata
id: meta
uses: docker/metadata-action@369eb591f429131d6889c46b94e711f089e6ca96 # v5
Expand Down Expand Up @@ -67,7 +71,7 @@ jobs:
cache-source: cargo
cache-target: /code/boys/target
- name: Build
uses: docker/build-push-action@48aba3b46d1b1fec4febb7c5d0c644b249a11355 # v6
uses: docker/build-push-action@48aba3b46d1b1fec4febb7c5d0c644b249a11355 # v6 # zizmor: ignore[cache-poisoning]
with:
file: Dockerfile
push: true
Expand Down
4 changes: 4 additions & 0 deletions .github/workflows/nix.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,8 @@ concurrency:
group: nix-${{github.ref}}-${{github.event.pull_request.number || github.run_number}}
cancel-in-progress: true

permissions: {}

jobs:
nix-build:
runs-on: ubuntu-latest
Expand All @@ -24,6 +26,8 @@ jobs:
name: nix-qchem
# Checkout of the current head in the working dir
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4
with:
persist-credentials: false
# Build the nix package
- name: Build nix package
run: nix flake check -L
5 changes: 5 additions & 0 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -19,3 +19,8 @@ repos:
rev: "v1.7.4.20"
hooks:
- id: actionlint
- repo: https://github.com/woodruffw/zizmor-pre-commit
rev: v1.3.1
hooks:
- id: zizmor
args: [--persona=pedantic]

0 comments on commit d755f10

Please sign in to comment.