File tree 5 files changed +28
-28
lines changed
5 files changed +28
-28
lines changed Original file line number Diff line number Diff line change @@ -12,17 +12,15 @@ jobs:
12
12
- uses : actions/checkout@v4
13
13
14
14
- name : Cache cargo bin
15
+ id : admin-cache
15
16
uses : actions/cache@v4
16
17
with :
17
18
path : ~/.cargo/bin
18
- key : rustsec-admin-v0.8.8
19
+ key : rustsec-admin-b7c69254bda9b8f4c94bc5eaef47e5bb3a97d8cd
19
20
20
21
- name : Install rustsec-admin
21
- run : |
22
- VERSION="0.8.8"
23
- if ! ( rustsec-admin --version | grep -q "$VERSION" ); then
24
- cargo install rustsec-admin --force --vers "$VERSION"
25
- fi
22
+ if : steps.admin-cache.outputs.cache-hit != 'true'
23
+ run : cargo install --git https://github.com/rustsec/rustsec rustsec-admin --rev b7c69254bda9b8f4c94bc5eaef47e5bb3a97d8cd
26
24
27
25
- name : Assign IDs
28
26
id : assign
Original file line number Diff line number Diff line change @@ -11,15 +11,18 @@ jobs:
11
11
- uses : actions/checkout@v4
12
12
with :
13
13
ref : osv
14
+
14
15
- uses : actions/cache@v4
16
+ id : admin-cache
15
17
with :
16
18
path : ~/.cargo/bin
17
- key : rustsec-admin-v0.8.8
19
+ key : rustsec-admin-b7c69254bda9b8f4c94bc5eaef47e5bb3a97d8cd
20
+
21
+ - name : Install rustsec-admin
22
+ if : steps.admin-cache.outputs.cache-hit != 'true'
23
+ run : cargo install --git https://github.com/rustsec/rustsec rustsec-admin --rev b7c69254bda9b8f4c94bc5eaef47e5bb3a97d8cd
24
+
18
25
- run : |
19
- VERSION="0.8.8"
20
- if ! ( rustsec-admin --version | grep -q "$VERSION" ); then
21
- cargo install rustsec-admin --force --vers "$VERSION"
22
- fi
23
26
mkdir -p crates
24
27
rustsec-admin osv crates
25
28
# FIXME: hack to avoid committing advisories without an ID
Original file line number Diff line number Diff line change @@ -11,15 +11,18 @@ jobs:
11
11
- uses : actions/checkout@v4
12
12
with :
13
13
ref : gh-pages
14
+
14
15
- uses : actions/cache@v4
16
+ id : admin-cache
15
17
with :
16
18
path : ~/.cargo/bin
17
- key : rustsec-admin-v0.8.8
19
+ key : rustsec-admin-b7c69254bda9b8f4c94bc5eaef47e5bb3a97d8cd
20
+
21
+ - name : Install rustsec-admin
22
+ if : steps.admin-cache.outputs.cache-hit != 'true'
23
+ run : cargo install --git https://github.com/rustsec/rustsec rustsec-admin --rev b7c69254bda9b8f4c94bc5eaef47e5bb3a97d8cd
24
+
18
25
- run : |
19
- VERSION="0.8.8"
20
- if ! ( rustsec-admin --version | grep -q "$VERSION" ); then
21
- cargo install rustsec-admin --force --vers "$VERSION"
22
- fi
23
26
rustsec-admin web .
24
27
git config user.name github-actions
25
28
git config user.email github-actions@github.com
Original file line number Diff line number Diff line change @@ -14,17 +14,15 @@ jobs:
14
14
- uses : actions/checkout@v4
15
15
16
16
- name : Cache cargo bin
17
+ id : admin-cache
17
18
uses : actions/cache@v4
18
19
with :
19
20
path : ~/.cargo/bin
20
- key : rustsec-admin-v0.8.9
21
+ key : rustsec-admin-b7c69254bda9b8f4c94bc5eaef47e5bb3a97d8cd
21
22
22
23
- name : Install rustsec-admin
23
- run : |
24
- VERSION="0.8.9"
25
- if ! ( rustsec-admin --version | grep -q "$VERSION" ); then
26
- cargo install rustsec-admin --force --vers "$VERSION"
27
- fi
24
+ if : steps.admin-cache.outputs.cache-hit != 'true'
25
+ run : cargo install --git https://github.com/rustsec/rustsec rustsec-admin --rev b7c69254bda9b8f4c94bc5eaef47e5bb3a97d8cd
28
26
29
27
- name : Synchronize IDs
30
28
id : sync_ids
Original file line number Diff line number Diff line change @@ -13,17 +13,15 @@ jobs:
13
13
- uses : actions/checkout@v4
14
14
15
15
- name : Cache cargo bin
16
+ id : admin-cache
16
17
uses : actions/cache@v4
17
18
with :
18
19
path : ~/.cargo/bin
19
- key : rustsec-admin-v0.8.8
20
+ key : rustsec-admin-b7c69254bda9b8f4c94bc5eaef47e5bb3a97d8cd
20
21
21
22
- name : Install rustsec-admin
22
- run : |
23
- VERSION="0.8.8"
24
- if ! ( rustsec-admin --version | grep -q "$VERSION" ); then
25
- cargo install rustsec-admin --force --vers "$VERSION"
26
- fi
23
+ if : steps.admin-cache.outputs.cache-hit != 'true'
24
+ run : cargo install --git https://github.com/rustsec/rustsec rustsec-admin --rev b7c69254bda9b8f4c94bc5eaef47e5bb3a97d8cd
27
25
28
26
- name : Lint advisories
29
27
run : rustsec-admin lint --skip-namecheck rustdecimal,vec-const
You can’t perform that action at this time.
0 commit comments