-
Notifications
You must be signed in to change notification settings - Fork 1
ci(deny): add cargo-deny dependency audit workflow #61
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from all commits
Commits
Show all changes
6 commits
Select commit
Hold shift + click to select a range
e6fd2cf
ci(deny): add cargo-deny dependency audit workflow
panos-xyz b76396a
Merge branch 'main' into panos/ci-improvements
panos-xyz f99909a
ci(deny): also trigger on deny.toml changes
panos-xyz af7085f
fix(deny): add LicenseRef-ring to allowed licenses
panos-xyz 31418c6
Merge branch 'main' into panos/ci-improvements
panos-xyz 28b0128
Merge branch 'main' into panos/ci-improvements
panos-xyz File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or 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,24 @@ | ||
| name: Deny | ||
|
|
||
| on: | ||
| push: | ||
| branches: [main] | ||
| paths: [Cargo.lock, deny.toml] | ||
| pull_request: | ||
| paths: [Cargo.lock, deny.toml] | ||
|
|
||
| permissions: | ||
| contents: read | ||
|
|
||
| jobs: | ||
| deny: | ||
| name: cargo-deny | ||
| runs-on: ubuntu-latest | ||
| steps: | ||
| - name: Checkout repository | ||
| uses: actions/checkout@v4 | ||
|
|
||
| - name: Run cargo-deny | ||
| uses: EmbarkStudios/cargo-deny-action@v2 | ||
| with: | ||
| command: check all | ||
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains hidden or 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,83 @@ | ||
| # This section is considered when running `cargo deny check advisories` | ||
| # More documentation for the advisories section can be found here: | ||
| # https://embarkstudios.github.io/cargo-deny/checks/advisories/cfg.html | ||
| [advisories] | ||
| yanked = "warn" | ||
| ignore = [ | ||
| # https://rustsec.org/advisories/RUSTSEC-2024-0436 paste! is unmaintained | ||
| "RUSTSEC-2024-0436", | ||
| # https://rustsec.org/advisories/RUSTSEC-2025-0141 bincode is unmaintained | ||
| "RUSTSEC-2025-0141", | ||
| # https://rustsec.org/advisories/RUSTSEC-2026-0002 lru 0.12.x unsound IterMut | ||
| # pinned by reth fork at 0.12.5, fix requires 0.16.3 (semver-incompatible) | ||
| "RUSTSEC-2026-0002", | ||
| ] | ||
|
|
||
| # This section is considered when running `cargo deny check bans`. | ||
| # More documentation about the 'bans' section can be found here: | ||
| # https://embarkstudios.github.io/cargo-deny/checks/bans/cfg.html | ||
| [bans] | ||
| # Lint level for when multiple versions of the same crate are detected | ||
| multiple-versions = "warn" | ||
| # Lint level for when a crate version requirement is `*` | ||
| wildcards = "allow" | ||
| highlight = "all" | ||
| deny = [] | ||
| skip = [] | ||
| skip-tree = [] | ||
|
|
||
| [licenses] | ||
| version = 2 | ||
| confidence-threshold = 0.8 | ||
| # Ignore private workspace members entirely | ||
| private = { ignore = true } | ||
|
|
||
| # List of explicitly allowed licenses | ||
| # See https://spdx.org/licenses/ for list of possible licenses | ||
| # [possible values: any SPDX 3.7 short identifier (+ optional exception)]. | ||
| allow = [ | ||
| "MIT", | ||
| "MIT-0", | ||
| "Apache-2.0", | ||
| "Apache-2.0 WITH LLVM-exception", | ||
| "BSD-2-Clause", | ||
| "BSD-3-Clause", | ||
| "BSL-1.0", | ||
| "0BSD", | ||
| "CC0-1.0", | ||
| "ISC", | ||
| "Unlicense", | ||
| "Unicode-3.0", | ||
| "Zlib", | ||
| # https://github.com/rustls/webpki/blob/main/LICENSE ISC Style | ||
| "LicenseRef-rustls-webpki", | ||
| # https://github.com/briansmith/ring/blob/main/LICENSE ISC + OpenSSL + SSLeay | ||
| "LicenseRef-ring", | ||
| "CDLA-Permissive-2.0", | ||
| "MPL-2.0", | ||
| ] | ||
|
|
||
| exceptions = [ | ||
| { allow = ["MPL-2.0"], name = "option-ext" }, | ||
| ] | ||
|
|
||
| [[licenses.clarify]] | ||
| name = "ring" | ||
| expression = "LicenseRef-ring" | ||
| license-files = [{ path = "LICENSE", hash = 0xbd0eed23 }] | ||
coderabbitai[bot] marked this conversation as resolved.
Show resolved
Hide resolved
|
||
|
|
||
| [[licenses.clarify]] | ||
| name = "rustls-webpki" | ||
| expression = "LicenseRef-rustls-webpki" | ||
| license-files = [{ path = "LICENSE", hash = 0x001c7e6c }] | ||
|
|
||
| # This section is considered when running `cargo deny check sources`. | ||
| # More documentation about the 'sources' section can be found here: | ||
| # https://embarkstudios.github.io/cargo-deny/checks/sources/cfg.html | ||
| [sources] | ||
| unknown-registry = "warn" | ||
| unknown-git = "deny" | ||
| allow-git = [ | ||
| "https://github.com/morph-l2/reth", | ||
| "https://github.com/rustyhorde/vergen", | ||
| ] | ||
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🧩 Analysis chain
🏁 Script executed:
Repository: morph-l2/morph-reth
Length of output: 151
Pin GitHub Actions to immutable commit SHAs.
Lines 19 and 22 pin actions to mutable tags (
@v4,@v2). This weakens supply-chain security; pin to full 40-character commit SHAs instead.Suggested patch
🤖 Prompt for AI Agents