mirror of
https://github.com/rustfs/rustfs.git
synced 2026-08-30 16:59:52 +00:00
ci(audit): wire cargo deny supply-chain gate (#3377)
This commit is contained in:
@@ -20,12 +20,14 @@ on:
|
|||||||
paths:
|
paths:
|
||||||
- '**/Cargo.toml'
|
- '**/Cargo.toml'
|
||||||
- '**/Cargo.lock'
|
- '**/Cargo.lock'
|
||||||
|
- 'deny.toml'
|
||||||
- '.github/workflows/audit.yml'
|
- '.github/workflows/audit.yml'
|
||||||
pull_request:
|
pull_request:
|
||||||
branches: [ main ]
|
branches: [ main ]
|
||||||
paths:
|
paths:
|
||||||
- '**/Cargo.toml'
|
- '**/Cargo.toml'
|
||||||
- '**/Cargo.lock'
|
- '**/Cargo.lock'
|
||||||
|
- 'deny.toml'
|
||||||
- '.github/workflows/audit.yml'
|
- '.github/workflows/audit.yml'
|
||||||
schedule:
|
schedule:
|
||||||
- cron: '0 0 * * 0' # Weekly on Sunday at midnight UTC
|
- cron: '0 0 * * 0' # Weekly on Sunday at midnight UTC
|
||||||
@@ -63,6 +65,27 @@ jobs:
|
|||||||
path: audit-results.json
|
path: audit-results.json
|
||||||
retention-days: 30
|
retention-days: 30
|
||||||
|
|
||||||
|
cargo-deny:
|
||||||
|
name: Cargo Deny
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
timeout-minutes: 20
|
||||||
|
steps:
|
||||||
|
- name: Checkout repository
|
||||||
|
uses: actions/checkout@v6
|
||||||
|
|
||||||
|
- name: Setup Rust environment
|
||||||
|
uses: ./.github/actions/setup
|
||||||
|
with:
|
||||||
|
cache-shared-key: rustfs-cargo-deny
|
||||||
|
|
||||||
|
- name: Install cargo-deny
|
||||||
|
uses: taiki-e/install-action@v2
|
||||||
|
with:
|
||||||
|
tool: cargo-deny
|
||||||
|
|
||||||
|
- name: Run cargo-deny
|
||||||
|
run: cargo deny check --hide-inclusion-graph advisories sources bans licenses
|
||||||
|
|
||||||
dependency-review:
|
dependency-review:
|
||||||
name: Dependency Review
|
name: Dependency Review
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
|
|||||||
@@ -33,6 +33,10 @@ ignore = [
|
|||||||
# in-process RSA decryption oracles are removed.
|
# in-process RSA decryption oracles are removed.
|
||||||
# owner: rustfs-maintainers review: 2026-07
|
# owner: rustfs-maintainers review: 2026-07
|
||||||
{ id = "RUSTSEC-2023-0071", reason = "rsa Marvin timing sidechannel; no fixed upstream version; tracked separately" },
|
{ id = "RUSTSEC-2023-0071", reason = "rsa Marvin timing sidechannel; no fixed upstream version; tracked separately" },
|
||||||
|
# `proc-macro-error2 2.0.1` — unmaintained. No direct dependency; pulled
|
||||||
|
# transitively through `mysql_async` via `mysql-common-derive`.
|
||||||
|
# owner: rustfs-maintainers review: 2026-07
|
||||||
|
{ id = "RUSTSEC-2026-0173", reason = "proc-macro-error2 unmaintained; transitive only via mysql_async; tracked for dependency refresh" },
|
||||||
]
|
]
|
||||||
|
|
||||||
[sources]
|
[sources]
|
||||||
@@ -43,12 +47,6 @@ allow-git = [
|
|||||||
# Custom S3 server library with minio compatibility patches not yet upstreamed.
|
# Custom S3 server library with minio compatibility patches not yet upstreamed.
|
||||||
# Pinned to a specific commit in workspace Cargo.toml.
|
# Pinned to a specific commit in workspace Cargo.toml.
|
||||||
"https://github.com/rustfs/s3s",
|
"https://github.com/rustfs/s3s",
|
||||||
# Temporary git source for russh until required upstream fixes are released.
|
|
||||||
# owner: rustfs-maintainers review: 2026-05
|
|
||||||
"https://github.com/Eugeny/russh",
|
|
||||||
# Temporary git source for mysql_async until required upstream fixes are released.
|
|
||||||
# owner: rustfs-maintainers review: 2026-05
|
|
||||||
"https://github.com/blackbeam/mysql_async",
|
|
||||||
]
|
]
|
||||||
|
|
||||||
[bans]
|
[bans]
|
||||||
|
|||||||
Reference in New Issue
Block a user