Install rustsec from git (#2299)

This commit is contained in:
Dirkjan Ochtman
2025-05-01 16:40:54 +02:00
committed by GitHub
parent dde35430a1
commit f91c52b97d
5 changed files with 28 additions and 28 deletions

View File

@@ -12,17 +12,15 @@ jobs:
- uses: actions/checkout@v4
- name: Cache cargo bin
id: admin-cache
uses: actions/cache@v4
with:
path: ~/.cargo/bin
key: rustsec-admin-v0.8.8
key: rustsec-admin-b7c69254bda9b8f4c94bc5eaef47e5bb3a97d8cd
- name: Install rustsec-admin
run: |
VERSION="0.8.8"
if ! ( rustsec-admin --version | grep -q "$VERSION" ); then
cargo install rustsec-admin --force --vers "$VERSION"
fi
if: steps.admin-cache.outputs.cache-hit != 'true'
run: cargo install --git https://github.com/rustsec/rustsec rustsec-admin --rev b7c69254bda9b8f4c94bc5eaef47e5bb3a97d8cd
- name: Assign IDs
id: assign

View File

@@ -11,15 +11,18 @@ jobs:
- uses: actions/checkout@v4
with:
ref: osv
- uses: actions/cache@v4
id: admin-cache
with:
path: ~/.cargo/bin
key: rustsec-admin-v0.8.8
key: rustsec-admin-b7c69254bda9b8f4c94bc5eaef47e5bb3a97d8cd
- name: Install rustsec-admin
if: steps.admin-cache.outputs.cache-hit != 'true'
run: cargo install --git https://github.com/rustsec/rustsec rustsec-admin --rev b7c69254bda9b8f4c94bc5eaef47e5bb3a97d8cd
- 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

View File

@@ -11,15 +11,18 @@ jobs:
- uses: actions/checkout@v4
with:
ref: gh-pages
- uses: actions/cache@v4
id: admin-cache
with:
path: ~/.cargo/bin
key: rustsec-admin-v0.8.8
key: rustsec-admin-b7c69254bda9b8f4c94bc5eaef47e5bb3a97d8cd
- name: Install rustsec-admin
if: steps.admin-cache.outputs.cache-hit != 'true'
run: cargo install --git https://github.com/rustsec/rustsec rustsec-admin --rev b7c69254bda9b8f4c94bc5eaef47e5bb3a97d8cd
- run: |
VERSION="0.8.8"
if ! ( rustsec-admin --version | grep -q "$VERSION" ); then
cargo install rustsec-admin --force --vers "$VERSION"
fi
rustsec-admin web .
git config user.name github-actions
git config user.email github-actions@github.com

View File

@@ -14,17 +14,15 @@ jobs:
- uses: actions/checkout@v4
- name: Cache cargo bin
id: admin-cache
uses: actions/cache@v4
with:
path: ~/.cargo/bin
key: rustsec-admin-v0.8.9
key: rustsec-admin-b7c69254bda9b8f4c94bc5eaef47e5bb3a97d8cd
- name: Install rustsec-admin
run: |
VERSION="0.8.9"
if ! ( rustsec-admin --version | grep -q "$VERSION" ); then
cargo install rustsec-admin --force --vers "$VERSION"
fi
if: steps.admin-cache.outputs.cache-hit != 'true'
run: cargo install --git https://github.com/rustsec/rustsec rustsec-admin --rev b7c69254bda9b8f4c94bc5eaef47e5bb3a97d8cd
- name: Synchronize IDs
id: sync_ids

View File

@@ -13,17 +13,15 @@ jobs:
- uses: actions/checkout@v4
- name: Cache cargo bin
id: admin-cache
uses: actions/cache@v4
with:
path: ~/.cargo/bin
key: rustsec-admin-v0.8.8
key: rustsec-admin-b7c69254bda9b8f4c94bc5eaef47e5bb3a97d8cd
- name: Install rustsec-admin
run: |
VERSION="0.8.8"
if ! ( rustsec-admin --version | grep -q "$VERSION" ); then
cargo install rustsec-admin --force --vers "$VERSION"
fi
if: steps.admin-cache.outputs.cache-hit != 'true'
run: cargo install --git https://github.com/rustsec/rustsec rustsec-admin --rev b7c69254bda9b8f4c94bc5eaef47e5bb3a97d8cd
- name: Lint advisories
run: rustsec-admin lint --skip-namecheck rustdecimal,vec-const