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 4a06d90
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 15 deletions.
13 changes: 13 additions & 0 deletions .github/workflows/audit.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
name: Security audit
on:
schedule:
# Run at 06:00 UTC every morning
- cron: '0 6 * * *'
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 4a06d90

Please sign in to comment.