Skip to content
Merged
Changes from all commits
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
19 changes: 15 additions & 4 deletions .github/workflows/security-audit.yml
Original file line number Diff line number Diff line change
@@ -1,24 +1,35 @@
name: Security Audit
on:
pull_request:
paths: Cargo.lock
paths:
- .github/workflows/security-audit.yml
- Cargo.lock
push:
branches: master
paths: Cargo.lock
paths:
- .github/workflows/security-audit.yml
- Cargo.lock
schedule:
- cron: "0 0 * * *"

permissions: # added using https://github.com/step-security/secure-repo
contents: read

jobs:
security_audit:
name: Security Audit
runs-on: ubuntu-latest
permissions:
checks: write
contents: read
issues: write
steps:
- uses: actions/checkout@v4
- name: Cache cargo bin
uses: actions/cache@v4
with:
path: ~/.cargo/bin
key: ${{ runner.os }}-cargo-audit-v0.12.0
- uses: actions-rs/audit-check@v1
key: ${{ runner.os }}-cargo-audit-v0.22.0
- uses: rustsec/audit-check@v2
with:
token: ${{ secrets.GITHUB_TOKEN }}
Loading