Files
qingjian/.github/workflows/audit.yml
T
yenharvey 806ba6b078 ci(deps): audit 先忽略 zip 8.6 的三条公告
RUSTSEC-2026-0367/0368/0369 都在 zip 的解压接口上,9.0 才修;zip 是 candle-core 带进来的,我们只用它读模型文件、不解压压缩包。audit.toml 变了也触发 audit。
2026-10-19 16:06:14 +08:00

29 lines
869 B
YAML
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
# 依赖已知漏洞(RustSec):每周一跑一次,Cargo.lock 变了也跑。
name: audit
on:
schedule:
- cron: '0 2 * * 1'
push:
paths: ['Cargo.lock', '.cargo/audit.toml', '.github/workflows/audit.yml']
pull_request:
paths: ['Cargo.lock', '.cargo/audit.toml']
# audit-check 要往提交上写 check run(checks: write)、发现漏洞时开 issue(issues: write);少了 checks 会在 push 事件上报 "Resource not accessible by integration"
permissions:
contents: read
checks: write
issues: write
jobs:
audit:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
with:
persist-credentials: false
- uses: rustsec/audit-check@69366f33c96575abad1ee0dba8212993eecbe998 # v2.0.0
with:
token: ${{ secrets.GITHUB_TOKEN }}