Skip to content

Commit 7a0fe2b

Browse files
spenserblacko2sh
andauthored
Make audit scheduled and manually runnable (#430)
* Make audit scheduled and manually runnable Moves the security audit into a separate workflow so that it can be run on a schedule, and also dispatched manually. * Limit audit trigger to dependency changes Co-authored-by: Ossama Hjaji <[email protected]> * Execute audit every Sunday Co-authored-by: Ossama Hjaji <[email protected]> Co-authored-by: Ossama Hjaji <[email protected]>
1 parent f841197 commit 7a0fe2b

File tree

2 files changed

+25
-9
lines changed

2 files changed

+25
-9
lines changed

Diff for: .github/workflows/audit.yml

+25
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
name: Security Audit
2+
on:
3+
push:
4+
branches: [ master ]
5+
paths:
6+
- '**/Cargo.toml'
7+
- '**/Cargo.lock'
8+
pull_request:
9+
branches: [ master ]
10+
paths:
11+
- '**/Cargo.toml'
12+
- '**/Cargo.lock'
13+
schedule:
14+
- cron: '0 0 * * 0'
15+
workflow_dispatch:
16+
17+
jobs:
18+
sec:
19+
name: Security audit
20+
runs-on: ubuntu-latest
21+
steps:
22+
- uses: actions/checkout@v2
23+
- uses: actions-rs/audit-check@v1
24+
with:
25+
token: ${{ secrets.GITHUB_TOKEN }}

Diff for: .github/workflows/ci.yml

-9
Original file line numberDiff line numberDiff line change
@@ -55,12 +55,3 @@ jobs:
5555
toolchain: stable
5656
components: rustfmt
5757
- run: cargo fmt -- --check
58-
59-
sec:
60-
name: Security audit
61-
runs-on: ubuntu-latest
62-
steps:
63-
- uses: actions/checkout@v2
64-
- uses: actions-rs/audit-check@v1
65-
with:
66-
token: ${{ secrets.GITHUB_TOKEN }}

0 commit comments

Comments
 (0)