Skip to content

Commit

Permalink
Add deny.toml and cargo deny action
Browse files Browse the repository at this point in the history
  • Loading branch information
hatchan committed Apr 24, 2024
1 parent 1e50cc1 commit 3bb64b4
Show file tree
Hide file tree
Showing 2 changed files with 64 additions and 0 deletions.
18 changes: 18 additions & 0 deletions .github/workflows/audit_rust.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
name: Rust crate audit

on:
push:
branches: ["**"]
paths:
- "**/Cargo.toml"
- "**/Cargo.lock"
schedule:
- cron: "43 1 * * *"
workflow_dispatch:

jobs:
security_audit:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: EmbarkStudios/cargo-deny-action@v1
46 changes: 46 additions & 0 deletions deny.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
[advisories]
ignore = []
yanked = "warn"

[licenses]
allow = [
"MIT",
"Apache-2.0",
"Apache-2.0 WITH LLVM-exception",
"BSD-3-Clause",
"MPL-2.0",
"ISC",
"BSD-2-Clause",
"Unicode-DFS-2016",
"Zlib",
"CC0-1.0",
"0BSD",
"Unlicense",
"OpenSSL",
]
confidence-threshold = 0.8
exceptions = []

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

[licenses.private]
ignore = true

[bans]
multiple-versions = "allow"
wildcards = "allow"
highlight = "all"
workspace-default-features = "allow"
external-default-features = "allow"

deny = []

[sources]
unknown-registry = "deny"
unknown-git = "deny"
allow-registry = ["https://github.com/rust-lang/crates.io-index"]
allow-git = []

0 comments on commit 3bb64b4

Please sign in to comment.