diff --git a/.github/workflows/cargo-audit.yml b/.github/workflows/cargo-audit.yml new file mode 100644 index 00000000000..fd07d49b690 --- /dev/null +++ b/.github/workflows/cargo-audit.yml @@ -0,0 +1,20 @@ +name: cargo audit +on: + schedule: + - cron: '0 0 * * *' + push: + paths: + - '**/Cargo.toml' + - '**/Cargo.lock' + pull_request: + paths: + - '**/Cargo.toml' + - '**/Cargo.lock' +jobs: + audit: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v2.4.0 + - uses: actions-rs/audit-check@v1 + with: + token: ${{ secrets.GITHUB_TOKEN }}