diff --git a/.cargo/audit.toml b/.cargo/audit.toml index a67d99db..5e1596fc 100644 --- a/.cargo/audit.toml +++ b/.cargo/audit.toml @@ -2,3 +2,7 @@ [advisories] ignore = ["RUSTSEC-2019-0031", "RUSTSEC-2020-0016", "RUSTSEC-2020-0031", "RUSTSEC-2020-0036"] # advisory IDs to ignore e.g. ["RUSTSEC-2019-0001", ...] + +# Output Configuration +[output] +deny = ["warnings"] # exit on error if warnings are found \ No newline at end of file diff --git a/.github/workflows/security_audit.yml b/.github/workflows/security_audit.yml index 390ff507..1f68970a 100644 --- a/.github/workflows/security_audit.yml +++ b/.github/workflows/security_audit.yml @@ -19,12 +19,6 @@ jobs: with: path: ~/.cargo/bin key: ${{ runner.os }}-cargo-audit-v0.12.1 - - uses: actions-rs/toolchain@v1 + - uses: actions-rs/audit-check@v1 with: - toolchain: stable - override: true - - name: Install cargo audit - run: cargo install cargo-audit - - name: Run cargo audit - run: cargo audit --deny-warnings - \ No newline at end of file + token: ${{ secrets.GITHUB_TOKEN }}