clap/.github/workflows/audit.yml

27 lines
594 B
YAML
Raw Normal View History

2021-11-17 21:12:40 +00:00
name: Security audit
on:
pull_request:
paths:
- '**/Cargo.toml'
- '**/Cargo.lock'
push:
paths:
- '**/Cargo.toml'
- '**/Cargo.lock'
schedule:
- cron: '3 3 3 * *'
2022-09-18 17:55:47 +00:00
permissions:
contents: read
2021-11-17 21:12:40 +00:00
jobs:
security_audit:
2022-08-27 22:32:00 +00:00
permissions:
2022-09-17 12:16:00 +00:00
issues: write # to create issues (actions-rs/audit-check)
checks: write # to create check (actions-rs/audit-check)
2021-11-17 21:12:40 +00:00
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v3
2021-11-17 21:12:40 +00:00
- uses: actions-rs/audit-check@v1
with:
token: ${{ secrets.GITHUB_TOKEN }}