Add cargo-deny to CI (#3185)

This commit is contained in:
Erich Gubler 2022-11-30 14:46:58 -07:00 committed by GitHub
parent 9c6a60d97c
commit 9bb2d28ce2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
6 changed files with 69 additions and 2 deletions

37
.deny.toml Normal file
View File

@ -0,0 +1,37 @@
[bans]
multiple-versions = "deny"
skip-tree = [
{ name = "cts_runner" },
{ name = "dummy" },
{ name = "player" },
{ name = "run-wasm" },
{ name = "wgpu-info" },
]
wildcards = "deny"
[licenses]
allow = [
"Apache-2.0",
"Apache-2.0 WITH LLVM-exception",
"BSD-2-Clause",
"BSD-3-Clause",
"CC0-1.0",
"ISC",
"MIT",
"MPL-2.0",
"Unicode-DFS-2016",
"Zlib",
]
[sources]
allow-git = [
"https://github.com/grovesNL/glow",
]
unknown-registry = "deny"
unknown-git = "deny"
required-git-spec = "rev"
[sources.allow-org]
github = [
"gfx-rs"
]

View File

@ -356,3 +356,31 @@ jobs:
- name: build Deno
run: |
cargo clippy --manifest-path cts_runner/Cargo.toml
cargo-deny-check-advisories:
name: "Run `cargo deny check advisories`"
runs-on: ubuntu-latest
steps:
- name: checkout repo
uses: actions/checkout@v3
- name: Run `cargo deny check`
uses: EmbarkStudios/cargo-deny-action@v1
with:
command: check advisories
arguments: --all-features --workspace
rust-version: ${{ env.RUST_VERSION }}
cargo-deny-check-rest:
name: "Run `cargo deny check`"
runs-on: ubuntu-latest
steps:
- name: checkout repo
uses: actions/checkout@v3
- name: Run `cargo deny check`
uses: EmbarkStudios/cargo-deny-action@v1
with:
command: check bans licenses sources
arguments: --all-features --workspace
rust-version: ${{ env.RUST_VERSION }}

2
Cargo.lock generated
View File

@ -1003,7 +1003,7 @@ checksum = "518faa5064866338b013ff9b2350dc318e14cc4fcd6cb8206d7e7c9886c98815"
[[package]]
name = "glow"
version = "0.11.2"
source = "git+https://github.com/grovesNL/glow/?rev=c8a011fcd57a5c68cc917ed394baa484bdefc909#c8a011fcd57a5c68cc917ed394baa484bdefc909"
source = "git+https://github.com/grovesNL/glow?rev=c8a011fcd57a5c68cc917ed394baa484bdefc909#c8a011fcd57a5c68cc917ed394baa484bdefc909"
dependencies = [
"js-sys",
"slotmap",

View File

@ -103,7 +103,7 @@ winapi = "0.3"
egl = { package = "khronos-egl", version = "4.1" }
# glow = { version = "0.11.2", optional = true }
# TODO: New glow release
glow = { git = "https://github.com/grovesNL/glow/", rev = "c8a011fcd57a5c68cc917ed394baa484bdefc909" }
glow = { git = "https://github.com/grovesNL/glow", rev = "c8a011fcd57a5c68cc917ed394baa484bdefc909" }
glutin = "0.29.1"
# wasm32 dependencies

View File

@ -3,6 +3,7 @@ name = "run-wasm"
version.workspace = true
authors.workspace = true
edition.workspace = true
license.workspace = true
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html

View File

@ -8,6 +8,7 @@ homepage.workspace = true
repository.workspace = true
keywords.workspace = true
license.workspace = true
publish = false
[dependencies]
env_logger.workspace = true