Skip to content
Open
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
27 changes: 27 additions & 0 deletions .github/workflows/security-audit.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
name: Security Audit

on:
schedule:
- cron: '0 0 * * 0' # Weekly on Sunday at midnight UTC
push:
branches: [trailblazer]
pull_request: # Run on ALL PRs to enforce security compliance
workflow_dispatch: # Allow manual trigger

jobs:
audit:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4

- name: Install Rust
run: rustup toolchain install stable --profile minimal

- name: Install cargo-audit
run: cargo install cargo-audit

- name: Run security audit
run: cargo audit

- name: Run security audit (coreaudio-sys-utils)
run: cargo audit --file coreaudio-sys-utils/Cargo.lock
Copy link

Copilot AI Feb 3, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Installing cargo-audit on every workflow run is inefficient and slow. Consider caching the installation or using a pre-built action like rustsec/audit-check@v2 which includes cargo-audit and is optimized for CI environments.

Suggested change
- name: Install cargo-audit
run: cargo install cargo-audit
- name: Run security audit
run: cargo audit
- name: Run security audit (coreaudio-sys-utils)
run: cargo audit --file coreaudio-sys-utils/Cargo.lock
- name: Run security audit
uses: rustsec/audit-check@v2
- name: Run security audit (coreaudio-sys-utils)
uses: rustsec/audit-check@v2
with:
crate-dir: coreaudio-sys-utils

Copilot uses AI. Check for mistakes.
Loading