Skip to content

feat: support Cursor 3.14 and harden spec monitoring #2636

feat: support Cursor 3.14 and harden spec monitoring

feat: support Cursor 3.14 and harden spec monitoring #2636

Workflow file for this run

name: Security
on:
push:
branches: [main]
pull_request:
branches: [main]
schedule:
# Run weekly on Mondays at 00:00 UTC
- cron: "0 0 * * 1"
permissions:
contents: read
security-events: write
defaults:
run:
shell: bash
jobs:
codeql:
name: CodeQL Analysis
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 # v7.0.0
- name: Initialize CodeQL
uses: github/codeql-action/init@c54b30b7df092240050e69945842bc67aee0f0f4 # v4.37.3
with:
languages: rust
queries: security-extended
- name: Build
run: cargo build --release --workspace
- name: Perform CodeQL Analysis
uses: github/codeql-action/analyze@c54b30b7df092240050e69945842bc67aee0f0f4 # v4.37.3
with:
category: "/language:rust"
audit:
name: Security Audit
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 # v7.0.0
- uses: dtolnay/rust-toolchain@4be9e76fd7c4901c61fb841f559994984270fce7 # stable
- uses: Swatinem/rust-cache@c19371144df3bb44fab255c43d04cbc2ab54d1c4 # v2
with:
save-if: ${{ github.ref == 'refs/heads/main' }}
- name: Install cargo-audit
uses: taiki-e/install-action@7572810d7dd469b651bb7793945692cf78da5dd7 # v2.85.0
with:
tool: cargo-audit@0.22.1
- name: Run security audit
# Current ignores must stay in sync with deny.toml and
# docs/RUSTSEC-ADVISORIES.md. Both active ignores are dev-only via
# iai-callgrind and have no safe upstream upgrade yet.
run: cargo audit --deny warnings --ignore RUSTSEC-2025-0141 --ignore RUSTSEC-2026-0173
# Additional supply chain security with cargo-deny
deny:
name: Dependency Check
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 # v7.0.0
- uses: EmbarkStudios/cargo-deny-action@3c6349835b2b7b196a839186cb8b78e02f7b5f25 # v2.1.1
with:
command: check all