From 118b8b972aaf1a06285c171aa5e1f8f0d6a49cd9 Mon Sep 17 00:00:00 2001 From: Evgeny Safronov Date: Tue, 20 Jan 2026 13:42:32 +0300 Subject: [PATCH 1/2] fix: ci --- .github/workflows/ci.yml | 3 +++ deny.toml | 2 -- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 7bb364d..39714c1 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -67,6 +67,9 @@ jobs: audit: name: Security Audit runs-on: ubuntu-latest + permissions: + checks: write + contents: read steps: - uses: actions/checkout@v4 - uses: rustsec/audit-check@v2 diff --git a/deny.toml b/deny.toml index 277ae74..f82674e 100644 --- a/deny.toml +++ b/deny.toml @@ -12,7 +12,6 @@ db-urls = ["https://github.com/rustsec/advisory-db"] ignore = [] [licenses] -unlicensed = "deny" allow = [ "MIT", "Apache-2.0", @@ -25,7 +24,6 @@ allow = [ "Unicode-3.0", "Unicode-DFS-2016", ] -copyleft = "warn" confidence-threshold = 0.8 [bans] From 705c2b8f178dfb6d399662146ccf2a70bf67b576 Mon Sep 17 00:00:00 2001 From: Evgeny Safronov Date: Tue, 20 Jan 2026 13:49:15 +0300 Subject: [PATCH 2/2] refactor: no cargo deny, no cargo audit --- .github/workflows/ci.yml | 20 -------------------- deny.toml | 41 ---------------------------------------- 2 files changed, 61 deletions(-) delete mode 100644 deny.toml diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 39714c1..46eaf78 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -63,26 +63,6 @@ jobs: - name: Check MSRV run: cargo check -p dwd - # Security and license checks. - audit: - name: Security Audit - runs-on: ubuntu-latest - permissions: - checks: write - contents: read - steps: - - uses: actions/checkout@v4 - - uses: rustsec/audit-check@v2 - with: - token: ${{ secrets.GITHUB_TOKEN }} - - deny: - name: Cargo Deny - runs-on: ubuntu-latest - steps: - - uses: actions/checkout@v4 - - uses: EmbarkStudios/cargo-deny-action@v2 - # Tests - run after format/clippy/check pass. test: name: Test diff --git a/deny.toml b/deny.toml deleted file mode 100644 index f82674e..0000000 --- a/deny.toml +++ /dev/null @@ -1,41 +0,0 @@ -# cargo-deny configuration file -# https://embarkstudios.github.io/cargo-deny/ - -[graph] -targets = [ - "x86_64-unknown-linux-gnu", -] - -[advisories] -db-path = "~/.cargo/advisory-db" -db-urls = ["https://github.com/rustsec/advisory-db"] -ignore = [] - -[licenses] -allow = [ - "MIT", - "Apache-2.0", - "Apache-2.0 WITH LLVM-exception", - "BSD-2-Clause", - "BSD-3-Clause", - "ISC", - "Zlib", - "MPL-2.0", - "Unicode-3.0", - "Unicode-DFS-2016", -] -confidence-threshold = 0.8 - -[bans] -multiple-versions = "warn" -wildcards = "allow" -highlight = "all" -skip = [] -skip-tree = [] - -[sources] -unknown-registry = "deny" -unknown-git = "deny" -allow-registry = ["https://github.com/rust-lang/crates.io-index"] -allow-git = [] -