Skip to content

Commit

Permalink
Use cargo-deny for auditing
Browse files Browse the repository at this point in the history
  • Loading branch information
djc committed Sep 1, 2023
1 parent d66d3ed commit 9a7d773
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 5 deletions.
8 changes: 3 additions & 5 deletions .github/workflows/audit.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Security audit
name: cargo deny
permissions:
contents: read
on:
Expand All @@ -14,9 +14,7 @@ jobs:
audit:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v3
with:
persist-credentials: false
- uses: actions-rs/audit-check@v1
with:
token: ${{ secrets.GITHUB_TOKEN }}
- uses: EmbarkStudios/cargo-deny-action@v1
15 changes: 15 additions & 0 deletions deny.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
[advisories]
unsound = "deny"
yanked = "deny"
unmaintained = "deny"

[licenses]
allow-osi-fsf-free = "either"
copyleft = "warn"
allow = ["MPL-2.0"]
exceptions = [{ allow = ["ISC", "MIT", "OpenSSL"], name = "ring" }]

[[licenses.clarify]]
name = "ring"
expression = "ISC AND MIT AND OpenSSL"
license-files = [{ path = "LICENSE", hash = 0xbd0eed23 }]

0 comments on commit 9a7d773

Please sign in to comment.