fix(ci): bump rustsec/audit-check to v2 and ignore time audit (#15030)

* fix(ci): bump rustsec/audit-check to v2

* Run on pull requests

* Add to ignore list
This commit is contained in:
Tony
2026-03-04 18:11:01 +08:00
committed by GitHub
parent d86827980d
commit 9b17a7aeae
2 changed files with 10 additions and 1 deletions

View File

@@ -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 }}