diff --git a/.cargo/audit.toml b/.cargo/audit.toml index c67661d57..b6dd47060 100644 --- a/.cargo/audit.toml +++ b/.cargo/audit.toml @@ -6,4 +6,6 @@ ignore = [ "RUSTSEC-2020-0095", # proc-macro-error is unmaintained "RUSTSEC-2024-0370", + # time crate can't be updated in the repo because of MSRV, users are unaffected + "RUSTSEC-2026-0009", ] diff --git a/.github/workflows/audit.yml b/.github/workflows/audit.yml index 3702e4b0d..d840272be 100644 --- a/.github/workflows/audit.yml +++ b/.github/workflows/audit.yml @@ -8,6 +8,13 @@ on: workflow_dispatch: schedule: - cron: '0 0 * * *' + pull_request: + paths: + - '.github/workflows/audit.yml' + - '**/Cargo.lock' + - '**/Cargo.toml' + - '**/package.json' + - '**/pnpm-lock.yaml' push: paths: - '.github/workflows/audit.yml' @@ -26,7 +33,7 @@ jobs: steps: - uses: actions/checkout@v4 - name: rust audit - uses: rustsec/audit-check@v1 + uses: rustsec/audit-check@v2 with: token: ${{ secrets.GITHUB_TOKEN }}