-
Notifications
You must be signed in to change notification settings - Fork 52
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #400 from flavio/fix-gha-audit
automation: fix GHA invoking cargo audit
- Loading branch information
Showing
2 changed files
with
7 additions
and
23 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
10 changes: 7 additions & 3 deletions
10
...hub/workflows/security-audit-reactive.yml → .github/workflows/security-audit.yml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,22 +1,26 @@ | ||
name: Security audit | ||
on: | ||
schedule: | ||
- cron: "0 0 * * *" | ||
push: | ||
paths: | ||
- "**/Cargo.toml" | ||
- "**/Cargo.lock" | ||
|
||
permissions: | ||
contents: read | ||
# Declare default permissions as read only. | ||
permissions: read-all | ||
|
||
jobs: | ||
security_audit: | ||
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@d632683dd7b4114ad314bca15554477dd762a938 # v4.2.0 | ||
- name: Generate lockfile | ||
run: cargo generate-lockfile | ||
- uses: rustsec/audit-check@69366f33c96575abad1ee0dba8212993eecbe998 # v2.0.0 | ||
with: | ||
token: ${{ secrets.GITHUB_TOKEN }} |