-
Notifications
You must be signed in to change notification settings - Fork 0
46 lines (39 loc) · 1.08 KB
/
aggregate-audits.yml
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
33
34
35
36
37
38
39
40
41
42
43
44
45
46
name: cargo-vet audits
on:
push:
branches:
- 'main'
paths:
- '.github/workflows/aggregate-audits.yml'
- 'supply-chain/sources.txt'
repository_dispatch:
workflow_dispatch:
permissions:
contents: write
jobs:
aggregate:
name: Aggregate
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
ref: ${{ github.head_ref }}
- uses: actions-rs/toolchain@v1
with:
toolchain: stable
override: true
- name: Install cargo-vet
uses: actions-rs/cargo@v1
with:
command: install
args: --git https://github.com/mozilla/cargo-vet.git cargo-vet
- name: Aggregate audits
uses: actions-rs/cargo@v1
with:
command: vet
args: aggregate --output-file supply-chain/audits.toml supply-chain/sources.txt
- name: Commit and push aggregated audits
uses: stefanzweifel/git-auto-commit-action@v4
with:
commit_message: Update aggregated cargo-vet audits
file_pattern: 'supply-chain/audits.toml'