Skip to content

ci(deps): fix red cargo-deny gate — run natively, drop stale license allow - #2

Merged
h4x0r merged 1 commit into
mainfrom
ci/fix-deny-gate-native
Jul 26, 2026
Merged

ci(deps): fix red cargo-deny gate — run natively, drop stale license allow#2
h4x0r merged 1 commit into
mainfrom
ci/fix-deny-gate-native

Conversation

@h4x0r

@h4x0r h4x0r commented Jul 26, 2026

Copy link
Copy Markdown
Contributor

Problem

The deny CI job was RED. The failure is not a cargo-deny finding — it is a Docker Hub pull timeout inside the Docker-based EmbarkStudios/cargo-deny-action:

ERROR: failed to build: ... rust:1.85.0-alpine3.20@sha256:... 
Head "https://registry-1.docker.io/...": dial tcp ...:443: i/o timeout
##[error]Docker build failed with exit code 1

Docker Hub pulls are rate-limited/flaky from GitHub Actions runners. Locally cargo deny check is clean (advisories ok, bans ok, licenses ok, sources ok).

Root-cause fix (not a suppression)

  • Remove the runtime Docker dependency: install cargo-deny via taiki-e/install-action and run cargo deny check directly, mirroring the sibling vet job. No Docker Hub pull ⇒ gate no longer depends on external registry availability.
  • Drop the stale Unicode-DFS-2016 license allowance (unicode-ident now ships under Unicode-3.0, already allowed) that emitted an unmatched-allowance warning.

Verified locally

  • cargo deny check → warning-free: advisories ok, bans ok, licenses ok, sources ok
  • cargo fmt --check clean · cargo clippy --all-targets --all-features clean · cargo test → 79 passed

🤖 Generated with Claude Code

…allow

The `deny` job used the Docker-based EmbarkStudios/cargo-deny-action, which
builds a container from a Docker Hub base image at runtime. Docker Hub pulls
are rate-limited/flaky from GitHub Actions runners and the gate went red on a
transient `registry-1.docker.io` i/o timeout, not on any cargo-deny finding.

Root cause is the runtime Docker dependency, so remove it: install cargo-deny
via taiki-e/install-action and run `cargo deny check` directly, mirroring the
sibling `vet` job. Also drop the stale `Unicode-DFS-2016` license allowance
(unicode-ident now ships under Unicode-3.0, already allowed) which was emitting
an unmatched-allowance warning. `cargo deny check` is now warning-free.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
@h4x0r
h4x0r merged commit cecb526 into main Jul 26, 2026
12 checks passed
@h4x0r
h4x0r deleted the ci/fix-deny-gate-native branch August 9, 2026 15:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant