Skip to content

Commit

Permalink
Merge pull request #1179 from gtk-rs/bilelmoussaoui-patch-2
Browse files Browse the repository at this point in the history
CI: add a cargo deny job
  • Loading branch information
sdroege authored Sep 25, 2023
2 parents 5e0be5c + bf9ec94 commit 9652081
Show file tree
Hide file tree
Showing 2 changed files with 49 additions and 0 deletions.
6 changes: 6 additions & 0 deletions .github/workflows/CI.yml
Original file line number Diff line number Diff line change
Expand Up @@ -138,6 +138,12 @@ jobs:
command: fmt
args: --all -- --check

cargo-deny:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: EmbarkStudios/cargo-deny-action@v1

generator:
name: regen check
runs-on: ubuntu-latest
Expand Down
43 changes: 43 additions & 0 deletions deny.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
exclude = [
"gtk-rs-examples",
]

[advisories]
db-path = "~/.cargo/advisory-db"
db-urls = ["https://github.com/rustsec/advisory-db"]
vulnerability = "deny"
unmaintained = "warn"
notice = "warn"
ignore = []

[licenses]
unlicensed = "deny"
allow = [
"MIT",
"Apache-2.0",
]
copyleft = "deny"
allow-osi-fsf-free = "either"
default = "deny"
confidence-threshold = 0.8

[bans]
multiple-versions = "deny"
wildcards = "allow"
highlight = "all"

[sources]
unknown-registry = "deny"
unknown-git = "deny"

# proc-macro-error depends on an old version of syn
# See https://github.com/gtk-rs/gtk-rs-core/issues/1174
[[bans.skip]]
name = "syn"
version = "1.0"

# https://github.com/PistonDevelopers/freetype-rs/pull/254
# https://gitlab.redox-os.org/redox-os/syscall/-/issues/34
[[bans.skip]]
name = "bitflags"
version = "1.0"

0 comments on commit 9652081

Please sign in to comment.