Skip to content

ci: fix audit failing by generating cargo lock file before running it #90

ci: fix audit failing by generating cargo lock file before running it

ci: fix audit failing by generating cargo lock file before running it #90

Workflow file for this run

# yaml-language-server: $schema=https://raw.githubusercontent.com/softprops/github-actions-schemas/master/workflow.json
name: Security audit
on:
push:
paths:
- '**/Cargo.toml'
- '**/Cargo.lock'
jobs:
security_audit:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Generate Cargo.lock # https://github.com/rustsec/audit-check/issues/27
run: cargo generate-lockfile
- name: Audit Check
- uses: rustsec/[email protected]
with:
token: ${{ secrets.GITHUB_TOKEN }}