Skip to content

Commit

Permalink
Replace audit check on PR push with periodical job
Browse files Browse the repository at this point in the history
  • Loading branch information
faern committed Mar 24, 2022
1 parent a2591f7 commit 77323d0
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 15 deletions.
12 changes: 12 additions & 0 deletions .github/workflows/audit.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
name: Security audit
on:
schedule:
- cron: '0 0 * * *'
jobs:
audit:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1
- uses: actions-rs/audit-check@v1
with:
token: ${{ secrets.GITHUB_TOKEN }}
18 changes: 3 additions & 15 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -38,25 +38,13 @@ jobs:
with:
token: ${{ secrets.GITHUB_TOKEN }}

audit:
security_audit:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2

- uses: actions-rs/toolchain@v1
with:
profile: minimal
toolchain: stable
default: true
- name: Install cargo-audit
uses: actions-rs/[email protected]
- uses: actions-rs/audit-check@v1
with:
crate: cargo-audit
version: latest
use-tool-cache: true
- name: Audit
run: cargo audit --deny warnings

token: ${{ secrets.GITHUB_TOKEN }}

build-and-test:
strategy:
Expand Down

0 comments on commit 77323d0

Please sign in to comment.