Skip to content

Commit 137024f

Browse files
committed
ci: migrate security audit to reusable workflow
1 parent f074338 commit 137024f

1 file changed

Lines changed: 4 additions & 23 deletions

File tree

.github/workflows/security.yml

Lines changed: 4 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -1,30 +1,11 @@
1-
name: Security audit
1+
name: Security Audit
22

33
on:
44
push:
5-
paths: ['**/Cargo.toml', '**/Cargo.lock']
5+
paths: ["**/Cargo.toml", "**/Cargo.lock"]
66
schedule:
7-
# Run every Monday at 08:00 UTC
8-
- cron: '0 8 * * 1'
9-
10-
permissions:
11-
contents: read
12-
13-
env:
14-
CARGO_TERM_COLOR: always
7+
- cron: "0 8 * * 1"
158

169
jobs:
1710
audit:
18-
name: cargo-audit
19-
runs-on: ubuntu-latest
20-
steps:
21-
- uses: actions/checkout@v6
22-
23-
- name: Install Rust (stable)
24-
uses: dtolnay/rust-toolchain@stable
25-
26-
- name: Install cargo-audit
27-
run: cargo install cargo-audit --locked
28-
29-
- name: Run audit
30-
run: cargo audit --ignore RUSTSEC-2023-0071
11+
uses: oxidized-mc/ci/.github/workflows/security-audit.yml@main

0 commit comments

Comments
 (0)