Security Audit #2818
This file contains 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: Cargo.lock | |
push: | |
branches: master | |
paths: 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.12.0 | |
- uses: actions-rs/audit-check@v1 | |
with: | |
token: ${{ secrets.GITHUB_TOKEN }} |