mirror of
https://github.com/OMGeeky/advisory-db.git
synced 2025-12-29 07:46:22 +01:00
Bumps [actions/checkout](https://github.com/actions/checkout) from 2 to 3. - [Release notes](https://github.com/actions/checkout/releases) - [Changelog](https://github.com/actions/checkout/blob/main/CHANGELOG.md) - [Commits](https://github.com/actions/checkout/compare/v2...v3) --- updated-dependencies: - dependency-name: actions/checkout dependency-type: direct:production update-type: version-update:semver-major ... Signed-off-by: dependabot[bot] <support@github.com> Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
31 lines
821 B
YAML
31 lines
821 B
YAML
name: Export to OSV format
|
|
|
|
on:
|
|
push:
|
|
branches: main
|
|
|
|
jobs:
|
|
publish-web:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- uses: actions/checkout@v3
|
|
with:
|
|
ref: osv
|
|
- uses: actions/cache@v3
|
|
with:
|
|
path: ~/.cargo/bin
|
|
key: rustsec-admin-v0.7.0
|
|
- run: |
|
|
if [ ! -f $HOME/.cargo/bin/rustsec-admin ]; then
|
|
cargo install rustsec-admin --vers 0.7.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
|