name: Export to OSV format on: push: branches: main jobs: publish-web: runs-on: ubuntu-latest steps: - uses: actions/checkout@v2 with: ref: osv - uses: actions/cache@v1 with: path: ~/.cargo/bin key: rustsec-admin-v0.6.0 - run: | if [ ! -f $HOME/.cargo/bin/rustsec-admin ]; then cargo install rustsec-admin --vers 0.6.0 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