summaryrefslogtreecommitdiff
path: root/.github/workflows/audit.yaml
blob: 677ea1425d68a9a5c5a064d94f8f0538ba52712e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
name: audit crates
# this checks our dependencies for
# security advisories every saturday

on:
  schedule:
    - cron: "0 0 * * 6"
  push:
    paths:
      - "Cargo.lock"
  pull_request:
    paths:
      - "Cargo.lock"
  workflow_dispatch:

jobs:
  audit:
    runs-on: ubuntu-latest

    steps:
      - uses: actions/checkout@v3

      - name: setup nix & cachix
        uses: ./.github/actions/setup-nix
        with:
          cachix-token: ${{ secrets.CACHIX_AUTH_TOKEN }}

      - name: run audit
        run: |
          nix build -L .#checks.x86_64-linux.audit