Skip to content

Commit

Permalink
Merge pull request #364 from flavio/update-cargo-audit-gh-action
Browse files Browse the repository at this point in the history
chore(deps): change provider of cargo-audit GH action
  • Loading branch information
flavio committed May 24, 2024
2 parents 2ab9118 + 2090807 commit ccbc5ae
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 5 deletions.
12 changes: 10 additions & 2 deletions .github/workflows/security-audit-cron.yml
Original file line number Diff line number Diff line change
@@ -1,12 +1,20 @@
name: Security audit cron job
on:
schedule:
- cron: '0 0 * * *'
- cron: "0 0 * * *"

permissions:
contents: read

jobs:
audit:
permissions:
checks: write # for rustsec/audit-check to create check
contents: read # for actions/checkout to fetch code
issues: write # for rustsec/audit-check to create issues
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@a5ac7e51b41094c92402da3b24376905380afc29 # v4.1.6
- uses: actions-rs/audit-check@35b7b53b1e25b55642157ac01b4adceb5b9ebef3 # v1.2.0
- uses: rustsec/audit-check@dd51754d4e59da7395a4cd9b593f0ff2d61a9b95 # v1.4.1
with:
token: ${{ secrets.GITHUB_TOKEN }}
14 changes: 11 additions & 3 deletions .github/workflows/security-audit-reactive.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,21 @@ name: Security audit
on:
push:
paths:
- '**/Cargo.toml'
- '**/Cargo.lock'
- "**/Cargo.toml"
- "**/Cargo.lock"

permissions:
contents: read

jobs:
security_audit:
permissions:
checks: write # for rustsec/audit-check to create check
contents: read # for actions/checkout to fetch code
issues: write # for rustsec/audit-check to create issues
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@a5ac7e51b41094c92402da3b24376905380afc29 # v4.1.6
- uses: actions-rs/audit-check@35b7b53b1e25b55642157ac01b4adceb5b9ebef3 # v1.2.0
- uses: rustsec/audit-check@dd51754d4e59da7395a4cd9b593f0ff2d61a9b95 # v1.4.1
with:
token: ${{ secrets.GITHUB_TOKEN }}

0 comments on commit ccbc5ae

Please sign in to comment.