-
Notifications
You must be signed in to change notification settings - Fork 0
Replace cargo audit with cargo deny for CLI dependency policy #96
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
Open
juangaitanv
wants to merge
8
commits into
main
Choose a base branch
from
deps/cargo-deny
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
+2,169
−938
Open
Changes from all commits
Commits
Show all changes
8 commits
Select commit
Hold shift + click to select a range
d60d334
Add ./harness quality contract and route CI through it
juangaitanv 915dce2
Apply cargo fmt and clippy fixes; cover utils/api.rs auth helpers
juangaitanv 3839d3f
Address PR review: tighten pre-commit gate, make 299 deprecation test…
juangaitanv 04262bf
Merge origin/main into chunk1/harness
juangaitanv 670472f
Migrate stderr prints to leveled logging via log + env_logger
juangaitanv a39dbcd
Test logging migration (log + env_logger)
juangaitanv 556cfb4
Replace cargo audit with cargo deny for CLI dependency policy
juangaitanv 692eaac
Tighten cargo deny policy after review
juangaitanv 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
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 |
|---|---|---|
|
|
@@ -3,5 +3,9 @@ | |
| .DS_Store | ||
| .dccache | ||
| *.zip | ||
| *.profraw | ||
| node_modules/ | ||
| /packages/*/vendor/ | ||
|
|
||
| .claude/ | ||
| CLAUDE.md | ||
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 @@ | ||
| # AGENTS.md | ||
|
|
||
| This subproject is the Corgea developer CLI (Rust → npm + pip via maturin). | ||
|
|
||
| ## Commands | ||
|
|
||
| - After edits: `./harness check` — clippy fix, format, tests, suppression report | ||
| - Pre-commit: `./harness pre-commit` — staged Rust files only (auto via git hook) | ||
| - CI: `./harness ci` — strict clippy (`-D warnings`), format check, dep policy (`cargo deny`: advisories + licenses + sources + bans), tests + coverage gate (min 13%) | ||
| - Deny: `./harness deny` — `cargo deny --locked check` (vulns, licenses, sources, bans) per `deny.toml` | ||
| - Coverage: `./harness coverage [--min=N]` — cargo-llvm-cov; HTML report under `target/llvm-cov/`; fails if line coverage < N (default 13) | ||
| - Lint: `./harness lint` — clippy + format check, no fixes | ||
| - Test: `./harness test` — `cargo test` | ||
| - Fix: `./harness fix` — clippy fix + format | ||
| - Setup: `./harness setup-hooks` — install `.git/hooks/pre-commit` | ||
| - Auto-format: `./harness post-edit` — runs `cargo fmt` on changed Rust files (wire into your editor/agent's post-edit hook) | ||
|
|
||
| Add `--verbose` to stream raw command output instead of the quiet summary. | ||
|
|
||
| Coverage needs LLVM's `llvm-cov`/`llvm-profdata`. On a rustup toolchain, run | ||
| `rustup component add llvm-tools-preview`. On a non-rustup toolchain (e.g. | ||
| Homebrew Rust) those are missing, so point cargo-llvm-cov at a system LLVM: | ||
| `LLVM_COV="$(brew --prefix llvm)/bin/llvm-cov" LLVM_PROFDATA="$(brew --prefix llvm)/bin/llvm-profdata" ./harness coverage`. | ||
| CI uses its own toolchain and is unaffected. |
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
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,43 @@ | ||
| # cargo-deny policy for the corgea CLI. | ||
| # Run: ./harness deny (CI runs it strict via ./harness ci) | ||
|
|
||
| [advisories] | ||
| version = 2 | ||
| # RustSec DB: fail on vulnerable/unmaintained/unsound/yanked crates. | ||
| yanked = "deny" | ||
| # ignore = [] # add "RUSTSEC-YYYY-NNNN" with a justification comment if ever needed | ||
|
|
||
| [licenses] | ||
| version = 2 | ||
| # SPDX ids allowed to ship in the distributed binary. All permissive. | ||
| # Copyleft exceptions must stay crate-scoped below. | ||
| allow = [ | ||
| "MIT", | ||
| "Apache-2.0", | ||
| "Apache-2.0 WITH LLVM-exception", | ||
| "BSD-3-Clause", | ||
| "Unicode-3.0", | ||
| "Unlicense", | ||
| "0BSD", | ||
| "CC0-1.0", | ||
| "MIT-0", | ||
| "Zlib", | ||
| "BSL-1.0", | ||
| ] | ||
| # option-ext is file-level MPL-2.0 and comes transitively via `dirs`. | ||
| exceptions = [{ crate = "option-ext", allow = ["MPL-2.0"] }] | ||
| # The `corgea` crate's own LICENSE file is LGPL-2.1; it ships only as a binary | ||
| # (never `cargo publish`ed) so it's marked `publish = false` in Cargo.toml, | ||
| # which makes it "private" and exempt from these dep-license rules. | ||
| private = { ignore = true } | ||
| confidence-threshold = 0.9 | ||
|
|
||
| [bans] | ||
| # Duplicate versions are common & low-risk in a 310-crate tree → warn, don't fail. | ||
| multiple-versions = "warn" | ||
| wildcards = "warn" | ||
|
|
||
| [sources] | ||
| # Lock the supply chain to crates.io. Any git / alt-registry dep fails the gate. | ||
| unknown-registry = "deny" | ||
| unknown-git = "deny" | ||
Oops, something went wrong.
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.
Uh oh!
There was an error while loading. Please reload this page.