diff --git a/.github/workflows/security-audit.yml b/.github/workflows/security-audit.yml new file mode 100644 index 00000000..e1a31aa7 --- /dev/null +++ b/.github/workflows/security-audit.yml @@ -0,0 +1,26 @@ +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: Run security audit + uses: rustsec/audit-check@v2 + with: + token: ${{ secrets.GITHUB_TOKEN }} + + - name: Run security audit (coreaudio-sys-utils) + uses: rustsec/audit-check@v2 + with: + token: ${{ secrets.GITHUB_TOKEN }} + working-directory: coreaudio-sys-utils