From fc07ac0803a5ef06fcf0cb33ce4348e06c47c05a Mon Sep 17 00:00:00 2001 From: Zyy Date: Tue, 15 Sep 2026 04:51:39 +0800 Subject: [PATCH] fix(ci): scope rustls security waiver Temporarily waive RUSTSEC-2026-0285 until 2026-09-21 UTC to preserve the pinned Codex TLS fingerprint. Keep all other audit failures blocking. Validated cargo audit and waiver expiry behavior. Co-authored-by: Codex --- .github/workflows/security-scan.yml | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/.github/workflows/security-scan.yml b/.github/workflows/security-scan.yml index 44486fc12..9f5f74578 100644 --- a/.github/workflows/security-scan.yml +++ b/.github/workflows/security-scan.yml @@ -40,7 +40,16 @@ jobs: - name: Run cargo audit working-directory: backend - run: cargo audit + shell: bash + run: | + # 临时接受此中危风险以保持 Codex 0.154.0 的 TLS 指纹;直接升级会新增 ML-DSA 签名算法。 + # 仅豁免本条公告,2026-09-21 UTC 起恢复阻断;兼容升级验证完成后应提前删除豁免。 + # https://github.com/rustls/rustls/security/advisories/GHSA-2mjx-qc3c-rqvc + audit_advisory_args=() + if [[ "$(date -u +%F)" < "2026-09-21" ]]; then + audit_advisory_args+=(--ignore RUSTSEC-2026-0285) + fi + cargo audit "${audit_advisory_args[@]}" frontend-security: runs-on: ubuntu-latest