Skip to content

Commit

Permalink
Merge pull request #400 from flavio/fix-gha-audit
Browse files Browse the repository at this point in the history
automation: fix GHA invoking cargo audit
  • Loading branch information
viccuad authored Oct 7, 2024
2 parents 368055c + fa5d156 commit e536360
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 23 deletions.
20 changes: 0 additions & 20 deletions .github/workflows/security-audit-cron.yml

This file was deleted.

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 }}

0 comments on commit e536360

Please sign in to comment.