Skip to content

Commit 9a7d773

Browse files
committed
Use cargo-deny for auditing
1 parent d66d3ed commit 9a7d773

File tree

2 files changed

+18
-5
lines changed

2 files changed

+18
-5
lines changed

.github/workflows/audit.yml

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
name: Security audit
1+
name: cargo deny
22
permissions:
33
contents: read
44
on:
@@ -14,9 +14,7 @@ jobs:
1414
audit:
1515
runs-on: ubuntu-latest
1616
steps:
17-
- uses: actions/checkout@v2
17+
- uses: actions/checkout@v3
1818
with:
1919
persist-credentials: false
20-
- uses: actions-rs/audit-check@v1
21-
with:
22-
token: ${{ secrets.GITHUB_TOKEN }}
20+
- uses: EmbarkStudios/cargo-deny-action@v1

deny.toml

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
[advisories]
2+
unsound = "deny"
3+
yanked = "deny"
4+
unmaintained = "deny"
5+
6+
[licenses]
7+
allow-osi-fsf-free = "either"
8+
copyleft = "warn"
9+
allow = ["MPL-2.0"]
10+
exceptions = [{ allow = ["ISC", "MIT", "OpenSSL"], name = "ring" }]
11+
12+
[[licenses.clarify]]
13+
name = "ring"
14+
expression = "ISC AND MIT AND OpenSSL"
15+
license-files = [{ path = "LICENSE", hash = 0xbd0eed23 }]

0 commit comments

Comments
 (0)