Skip to content

ci: use cargo deny to catch new licenses - v1 - #16693

Open
jasonish wants to merge 2 commits into
OISF:mainfrom
jasonish:cargo-deny/v1
Open

jasonish wants to merge 2 commits into
OISF:mainfrom
jasonish:cargo-deny/v1

Conversation

@jasonish

Copy link
Copy Markdown
Member

Use cargo deny with a license policy to catch new licenses.

New licenses are a hard failure to force review and addition to the allowlist before merge.

@suricata-review-bot suricata-review-bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

AI-generated review.

Verdict: comment

1 finding posted as inline comment:

  • Medium (new) — .github/workflows/rust-checks.yml:85-89 — The cargo-deny install and license-check steps run after cargo audit -D warnings and have no if: condition.

New dependencies

  • cargo-deny (CI tool, unpinned; currently 0.22.0) — MIT OR Apache-2.0

Automated at commit f85d3b521283 using Claude Code with claude-opus-5-5/xhigh. Run: 0e6a32464736eecf.

Comment thread .github/workflows/rust-checks.yml Resolved
@suricata-qa

Copy link
Copy Markdown

Information: QA skipped due to no C or rust code changed detected. Set to force a run.

Pipeline = code

@jasonish
jasonish marked this pull request as ready for review November 22, 2026 11:24
@codecov

codecov Bot commented Nov 22, 2026 •

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 83.94%. Comparing base (ca5de3e) to head (5a1f4b6).

Additional details and impacted files
@@            Coverage Diff             @@
##             main   #16693      +/-   ##
==========================================
- Coverage   83.97%   83.94%   -0.03%     
==========================================
  Files        1008     1008              
  Lines      286489   286489              
==========================================
- Hits       240565   240503      -62     
- Misses      45924    45986      +62     
Flag Coverage Δ
fuzzcorpus 61.62% <ø> (ø)
livemode 25.93% <ø> (-0.04%) ⬇️
netns 26.28% <ø> (-0.03%) ⬇️
pcap 46.12% <ø> (-0.05%) ⬇️
suricata-verify 69.01% <ø> (-0.05%) ⬇️
unittests 59.18% <ø> (-0.01%) ⬇️

Flags with carried forward coverage won't be shown. Click here to find out more.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

Comment thread rust/deny.toml Resolved
@jasonish
jasonish marked this pull request as draft November 23, 2026 01:51
Note that it is a "BSD-3-Clause" so license scanning tools can pick up
the license of our htp crate.
As GPL is not allowed, exclude our own crates from the check.
@suricata-qa

Copy link
Copy Markdown

Information: QA skipped due to no C or rust code changed detected. Set to force a run.

Pipeline = code

@suricata-review-bot suricata-review-bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

AI-generated review.

Verdict: approve

New dependencies

  • cargo-deny (CI tool, unpinned; currently 0.22.1) — MIT OR Apache-2.0

Previous feedback:

  • Addressed — jasonish's comment at rust/deny.toml:5 — GPL-2.0-only was removed from the global allow list, and only the six GPL workspace crates are now allowed it through per-crate exceptions.
  • No longer applicable — suricata-review-bot's comment at .github/workflows/rust-checks.yml:89 — The deny steps still lack an if: condition, but the license check covers the whole dependency graph, so the next green run catches anything skipped while audit failed.

No high- or medium-severity findings.

Automated at commit 5a1f4b62e176 using Claude Code with claude-opus-5-5/xhigh. Run: 04ffdb214baec113.

@jasonish

Copy link
Copy Markdown
Member Author
  • cargo-deny (CI tool, unpinned; currently 0.22.0) — MIT OR Apache-2.0

Important to note that this is only a dependency installed in a CI job, not a Suricata depenency.

@jasonish
jasonish marked this pull request as ready for review November 26, 2026 18:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

3 participants