-
Notifications
You must be signed in to change notification settings - Fork 18
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Refactor cargo-check action to cargo-deny
- Loading branch information
Showing
7 changed files
with
80 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
--- | ||
name: Audit Rust code | ||
|
||
on: | ||
push: | ||
branches: ["**"] | ||
paths: | ||
- "**/Cargo.toml" | ||
- "**/Cargo.lock" | ||
- "**/deny.toml" | ||
schedule: | ||
- cron: "43 1 * * *" | ||
workflow_dispatch: | ||
|
||
jobs: | ||
rust_audit: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v4 | ||
with: | ||
fetch-depth: 0 | ||
submodules: recursive | ||
|
||
- uses: EmbarkStudios/cargo-deny-action@v1 | ||
with: | ||
credentials: https://fiberplanebot:${{ secrets.PRIVATE_GITHUB_TOKEN }}@github.com/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,49 @@ | ||
[advisories] | ||
ignore = [] | ||
yanked = "deny" | ||
|
||
[licenses] | ||
allow = [ | ||
"0BSD", | ||
"Apache-2.0 WITH LLVM-exception", | ||
"Apache-2.0", | ||
"BSD-2-Clause", | ||
"BSD-3-Clause", | ||
"CC0-1.0", | ||
"ISC", | ||
"MIT", | ||
"MPL-2.0", | ||
"OpenSSL", | ||
"Unicode-DFS-2016", | ||
"Unlicense", | ||
"WTFPL", | ||
"Zlib", | ||
] | ||
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 = [] | ||
|
||
[sources.allow-org] | ||
github = ["fiberplane", "autometrics-dev"] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,6 +3,7 @@ authors = ["Fiberplane <[email protected]>"] | |
edition = "2018" | ||
name = "example-plugin" | ||
version = "0.1.0" | ||
publish = false | ||
|
||
[lib] | ||
crate-type = ["cdylib"] | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,6 +3,7 @@ authors = ["Fiberplane <[email protected]>"] | |
edition = "2018" | ||
name = "example-protocol" | ||
version = "0.1.0" | ||
publish = false | ||
|
||
[dependencies] | ||
bytes = { version = "1", features = ["serde"] } | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,6 +3,7 @@ authors = ["Fiberplane <[email protected]>"] | |
edition = "2018" | ||
name = "redux-example" | ||
version = "0.1.0" | ||
publish = false | ||
|
||
[dependencies] | ||
fp-bindgen = {path = "../../fp-bindgen"} | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters