From 9f3eb562a25ff0c9684959721167078a5a6d6bc1 Mon Sep 17 00:00:00 2001 From: "Sergey \"Shnatsel\" Davidoff" Date: Fri, 2 Jul 2021 17:22:13 +0200 Subject: [PATCH] Add OSV export CI job (#947) --- .github/workflows/export-osv.yml | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) create mode 100644 .github/workflows/export-osv.yml diff --git a/.github/workflows/export-osv.yml b/.github/workflows/export-osv.yml new file mode 100644 index 0000000..a438933 --- /dev/null +++ b/.github/workflows/export-osv.yml @@ -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