Skip to content

Commit 1948286

Browse files
authored
Merge pull request #1 from xtrusia/codex/use-rustsec-audit-check
ci: use rustsec audit-check action
2 parents 944db09 + 09dce0b commit 1948286

1 file changed

Lines changed: 7 additions & 3 deletions

File tree

.github/workflows/ci.yml

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,9 @@
11
name: CI
22

3+
permissions:
4+
contents: read
5+
checks: write
6+
37
on:
48
push:
59
branches: [main]
@@ -17,10 +21,10 @@ jobs:
1721
- uses: Swatinem/rust-cache@v2
1822
- name: Format
1923
run: cargo fmt --all --check
20-
- name: Install cargo-audit
21-
run: cargo install cargo-audit --version 0.22.2 --locked
2224
- name: Audit dependencies
23-
run: cargo audit
25+
uses: rustsec/audit-check@69366f33c96575abad1ee0dba8212993eecbe998 # v2.0.0
26+
with:
27+
token: ${{ secrets.GITHUB_TOKEN }}
2428
- name: Clippy
2529
run: cargo clippy --all-targets -- -D warnings
2630
- name: Build

0 commit comments

Comments
 (0)