aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLibravatar Dirkjan Ochtman <dirkjan@ochtman.nl>2023-09-29 14:00:42 +0200
committerLibravatar Dirkjan Ochtman <dirkjan@ochtman.nl>2023-09-29 16:13:24 +0200
commite527f5f065bc384515929ccec497d66ad85830d1 (patch)
treee5a0b9fa9a48edf3e5b1014f8c1c1e8697627263
parentdcece252a2a5b98bbb69ff6d3509d0673c8ca64c (diff)
downloadaskama-e527f5f065bc384515929ccec497d66ad85830d1.tar.gz
askama-e527f5f065bc384515929ccec497d66ad85830d1.tar.bz2
askama-e527f5f065bc384515929ccec497d66ad85830d1.zip
Add audit job in CI workflow
-rw-r--r--.github/workflows/rust.yml6
-rw-r--r--deny.toml10
2 files changed, 16 insertions, 0 deletions
diff --git a/.github/workflows/rust.yml b/.github/workflows/rust.yml
index aca9e9f..77eb07d 100644
--- a/.github/workflows/rust.yml
+++ b/.github/workflows/rust.yml
@@ -53,3 +53,9 @@ jobs:
- uses: Swatinem/rust-cache@v2
- run: cargo fmt --all -- --check
- run: cargo clippy --all-targets -- -D warnings
+
+ Audit:
+ runs-on: ubuntu-22.04
+ steps:
+ - uses: actions/checkout@v4
+ - uses: EmbarkStudios/cargo-deny-action@v1
diff --git a/deny.toml b/deny.toml
new file mode 100644
index 0000000..c5d2843
--- /dev/null
+++ b/deny.toml
@@ -0,0 +1,10 @@
+[licenses]
+allow-osi-fsf-free = "either"
+copyleft = "warn"
+exceptions = [{ allow = ["ISC", "MIT", "OpenSSL"], name = "ring" }]
+private = { ignore = true }
+
+[[licenses.clarify]]
+name = "ring"
+expression = "ISC AND MIT AND OpenSSL"
+license-files = [{ path = "LICENSE", hash = 0xbd0eed23 }]