-
Notifications
You must be signed in to change notification settings - Fork 444
31 lines (29 loc) · 872 Bytes
/
export-osv.yml
File metadata and controls
31 lines (29 loc) · 872 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
name: Export to OSV format
on:
push:
branches: main
jobs:
publish-web:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
ref: osv
- uses: actions/cache@v4
with:
path: ~/.cargo/bin
key: rustsec-admin-v0.8.8
- run: |
VERSION="0.8.8"
if ! ( rustsec-admin --version | grep -q "$VERSION" ); then
cargo install rustsec-admin --force --vers "$VERSION"
fi
mkdir -p crates
rustsec-admin osv crates
# FIXME: hack to avoid committing advisories without an ID
rm -f crates/RUSTSEC-0000-0000.json
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