Files
advisory-db/.github/workflows/validate.yml
Alex GaynorandClaude Fable 5 21901853aa Extract repeated rustsec-admin install/cache into a reusable action (#3078)
All five workflows duplicated the same cache + cargo install steps for
rustsec-admin, each hardcoding the pinned revision twice. Move them into
a composite action at .github/actions/install-rustsec-admin, so version
bumps are a one-line change.

publish-web and export-osv check out the gh-pages/osv branches, where
the action file doesn't exist; they now check out main first, install
the tool, then check out the deploy branch as before (the second
checkout cleans and fully replaces the workspace).

Co-authored-by: Claude Fable 5 <noreply@anthropic.com>
2026-07-27 11:59:43 -04:00

24 lines
448 B
YAML

name: Validate
on:
pull_request: {}
push:
branches: main
permissions: {}
jobs:
lint:
name: Lint advisories
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
with:
persist-credentials: false
- name: Install rustsec-admin
uses: ./.github/actions/install-rustsec-admin
- name: Lint advisories
run: rustsec-admin lint