mirror of
https://github.com/rustsec/advisory-db.git
synced 2026-11-30 10:24:32 -06:00
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>
24 lines
448 B
YAML
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
|