WARNING: THIS SITE IS A MIRROR OF GITHUB.COM / IT CANNOT LOGIN OR REGISTER ACCOUNTS / THE CONTENTS ARE PROVIDED AS-IS / THIS SITE ASSUMES NO RESPONSIBILITY FOR ANY DISPLAYED CONTENT OR LINKS / IF YOU FOUND SOMETHING MAY NOT GOOD FOR EVERYONE, CONTACT ADMIN AT ilovescratch@foxmail.com
Skip to content

Commit 9bf215e

Browse files
authored
CI: security audit fixups (#1700)
- Pin to `ubuntu-24.04` until upgrade is complete at the end of October - Re-unify security audit since workspace has been re-unified - Use `rustsec/audit-check@v2` since `actions-rs` is unmaintained
1 parent 4571d7c commit 9bf215e

File tree

1 file changed

+4
-72
lines changed

1 file changed

+4
-72
lines changed

.github/workflows/security-audit.yml

Lines changed: 4 additions & 72 deletions
Original file line numberDiff line numberDiff line change
@@ -11,84 +11,16 @@ on:
1111
- cron: "0 0 * * *"
1212

1313
jobs:
14-
security_audit_workspace:
14+
security_audit:
1515
name: Security Audit Workspace
16-
runs-on: ubuntu-latest
16+
runs-on: ubuntu-24.04
1717
steps:
1818
- uses: actions/checkout@v4
1919
- name: Cache cargo bin
2020
uses: actions/cache@v4
2121
with:
2222
path: ~/.cargo/bin
23-
key: ${{ runner.os }}-cargo-audit-v0.20
24-
- uses: actions-rs/audit-check@v1
25-
with:
26-
token: ${{ secrets.GITHUB_TOKEN }}
27-
28-
security_audit_crypto:
29-
name: Security Audit crypto
30-
runs-on: ubuntu-latest
31-
defaults:
32-
run:
33-
working-directory: crypto
34-
steps:
35-
- uses: actions/checkout@v4
36-
- name: Cache cargo bin
37-
uses: actions/cache@v4
38-
with:
39-
path: ~/.cargo/bin
40-
key: ${{ runner.os }}-cargo-audit-v0.20
41-
- uses: actions-rs/audit-check@v1
42-
with:
43-
token: ${{ secrets.GITHUB_TOKEN }}
44-
45-
security_audit_elliptic-curve:
46-
name: Security Audit elliptic-curve
47-
runs-on: ubuntu-latest
48-
defaults:
49-
run:
50-
working-directory: elliptic-curve
51-
steps:
52-
- uses: actions/checkout@v4
53-
- name: Cache cargo bin
54-
uses: actions/cache@v4
55-
with:
56-
path: ~/.cargo/bin
57-
key: ${{ runner.os }}-cargo-audit-v0.20
58-
- uses: actions-rs/audit-check@v1
59-
with:
60-
token: ${{ secrets.GITHUB_TOKEN }}
61-
62-
security_audit_kem:
63-
name: Security Audit kem
64-
runs-on: ubuntu-latest
65-
defaults:
66-
run:
67-
working-directory: kem
68-
steps:
69-
- uses: actions/checkout@v4
70-
- name: Cache cargo bin
71-
uses: actions/cache@v4
72-
with:
73-
path: ~/.cargo/bin
74-
key: ${{ runner.os }}-cargo-audit-v0.20
75-
- uses: actions-rs/audit-check@v1
76-
with:
77-
token: ${{ secrets.GITHUB_TOKEN }}
78-
79-
security_audit_password-hash:
80-
name: Security Audit password-hash
81-
runs-on: ubuntu-latest
82-
defaults:
83-
run:
84-
working-directory: password-hash
85-
steps:
86-
- uses: actions/checkout@v4
87-
- name: Cache cargo bin
88-
uses: actions/cache@v4
89-
with:
90-
path: ~/.cargo/bin
91-
key: ${{ runner.os }}-cargo-audit-v0.20
92-
- uses: actions-rs/audit-check@v1
23+
key: ${{ runner.os }}-cargo-audit-v0.20-ubuntu-v24.04
24+
- uses: rustsec/audit-check@v1
9325
with:
9426
token: ${{ secrets.GITHUB_TOKEN }}

0 commit comments

Comments
 (0)