chore(security): optimize cargo-audit workflow

This commit is contained in:
Orhun Parmaksız 2021-11-07 16:16:46 +03:00
parent a2de1c3334
commit d927fb0b97
No known key found for this signature in database
GPG key ID: F83424824B3E4B90

View file

@ -1,12 +1,23 @@
name: Security Audit name: Security Audit
on: on:
schedule: schedule:
- cron: '0 0 * * 0' - cron: "0 0 * * 0"
jobs: jobs:
audit: audit:
runs-on: ubuntu-latest name: Audit
runs-on: ubuntu-20.04
steps: steps:
- uses: actions/checkout@v1 - name: Checkout the repository
- uses: actions-rs/audit-check@v1 uses: actions/checkout@master
- name: Install Rust
uses: actions-rs/toolchain@v1
with:
toolchain: stable
profile: minimal
override: true
- name: Run cargo-audit
uses: actions-rs/audit-check@v1
with: with:
token: ${{ secrets.GITHUB_TOKEN }} token: ${{ secrets.GITHUB_TOKEN }}