Security Audit #3040
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Security Audit | |
on: | |
pull_request: | |
paths: | |
- .github/workflows/security-audit.yml | |
- Cargo.lock | |
push: | |
branches: master | |
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: | |
permissions: | |
checks: write # for actions-rs/audit-check to create check | |
contents: read # for actions/checkout to fetch code | |
issues: write # for actions-rs/audit-check to create issues | |
name: Security Audit | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Cache cargo bin | |
uses: actions/cache@v4 | |
with: | |
path: ~/.cargo/bin | |
key: ${{ runner.os }}-cargo-audit-v0.21.1 | |
- uses: rustsec/audit-check@v2 | |
with: | |
token: ${{ secrets.GITHUB_TOKEN }} |