forked from rust-bitcoin/corepc
-
Notifications
You must be signed in to change notification settings - Fork 0
32 lines (30 loc) · 792 Bytes
/
Copy pathaudit.yml
File metadata and controls
32 lines (30 loc) · 792 Bytes
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
31
32
on:
push:
branches:
- master
pull_request:
schedule:
- cron: '0 0 * * *'
name: Audit
jobs:
audit:
name: Security audit - ${{ matrix.lockfile }}
runs-on: ubuntu-latest
permissions:
issues: write
checks: write
strategy:
fail-fast: false
matrix:
lockfile: [Cargo.lock, Cargo-minimal.lock, Cargo-recent.lock]
steps:
- uses: actions/checkout@v4
- name: Generate fresh Cargo.lock
if: ${{ matrix.lockfile == 'Cargo.lock' }}
run: cargo generate-lockfile
- name: Use ${{ matrix.lockfile }}
if: ${{ matrix.lockfile != 'Cargo.lock' }}
run: cp ${{ matrix.lockfile }} Cargo.lock
- uses: rustsec/audit-check@v2.0.0
with:
token: ${{ secrets.GITHUB_TOKEN }}