mirror of
https://github.com/OMGeeky/advisory-db.git
synced 2026-01-04 02:25:24 +01:00
Add OSV export CI job (#947)
This commit is contained in:
committed by
GitHub
parent
d5a60f2737
commit
9f3eb562a2
28
.github/workflows/export-osv.yml
vendored
Normal file
28
.github/workflows/export-osv.yml
vendored
Normal file
@@ -0,0 +1,28 @@
|
||||
name: Export OSV
|
||||
|
||||
on:
|
||||
push:
|
||||
branches: main
|
||||
|
||||
jobs:
|
||||
publish-web:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v2
|
||||
with:
|
||||
ref: osv-experimental-v0.7
|
||||
- uses: actions/cache@v1
|
||||
with:
|
||||
path: ~/.cargo/bin
|
||||
key: rustsec-admin-v0.5.0
|
||||
- run: |
|
||||
if [ ! -f $HOME/.cargo/bin/rustsec-admin ]; then
|
||||
cargo install rustsec-admin --vers 0.5.0
|
||||
fi
|
||||
mkdir -p crates
|
||||
rustsec-admin osv crates
|
||||
git config user.name github-actions
|
||||
git config user.email github-actions@github.com
|
||||
git add .
|
||||
git commit -m "Update OSV exported data" || true
|
||||
git push || true
|
||||
Reference in New Issue
Block a user