Skip to content

fix: Utpilla/add cargo audit workflow #6

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 3 commits into
base: main
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
39 changes: 39 additions & 0 deletions .github/workflows/cargo-audit.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
name: Cargo Audit

on:
push:
branches: [ main ]
paths:
- '**.Cargo.toml'
- '**.Cargo.lock'
- '.github/workflows/cargo-audit.yml'
pull_request:
branches: [ main ]
paths:
- '**.Cargo.toml'
- '**.Cargo.lock'
- '.github/workflows/cargo-audit.yml'
schedule:
- cron: '0 0 * * *' # Run daily at midnight UTC

permissions:
contents: read

jobs:
cargo-audit:
runs-on: ubuntu-latest
steps:
- name: Harden Runner
uses: step-security/harden-runner@c6295a65d1254861815972266d5933fd6e532bdf # v2.11.1
with:
egress-policy: audit

- name: Checkout repository
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
with:
submodules: true

- name: Run cargo-audit
uses: rustsec/audit-check@69366f33c96575abad1ee0dba8212993eecbe998 # v2.0.0
with:
token: ${{ secrets.GITHUB_TOKEN }}
Loading