Skip to content

Commit

Permalink
Update audit.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
hernangonzalez authored Oct 14, 2024
1 parent 29193e2 commit fca5d5e
Showing 1 changed file with 17 additions and 18 deletions.
35 changes: 17 additions & 18 deletions .github/workflows/audit.yml
Original file line number Diff line number Diff line change
@@ -1,27 +1,26 @@
name: Audit project
name: "Audit Dependencies"
on:
workflow_dispatch:
push:
paths:
# Run on changed dependencies
- '**/Cargo.toml'
- '**/Cargo.lock'
# Rerun periodicly to pick up new advisories
schedule:
- cron: '30 5 * * 1,3'
- cron: '0 0 * * *'
# Run manually
workflow_dispatch:

jobs:
audit:
runs-on: ubuntu-latest
permissions:
contents: write
pull-requests: write

contents: read
issues: write
steps:
- name: Run cargo audit fix
uses: simonhyll/cargo-audit@v1

- name: Create Pull Request
uses: peter-evans/create-pull-request@v7
- uses: actions/checkout@v4
- uses: actions-rust-lang/audit@v1
name: Audit Rust Dependencies
with:
token: ${{ secrets.GITHUB_TOKEN }}
branch: bot/cargo-audit
title: "[Bot] Audit fixes"
commit-message: Cargo audit fixes
body: >
Updates to Cargo.toml and/or Cargo.lock with security fixes.
labels: automated pr
# Comma separated list of issues to ignore
ignore: RUSTSEC-2020-0036

0 comments on commit fca5d5e

Please sign in to comment.