17
17
18
18
jobs :
19
19
matrix :
20
+ permissions :
21
+ issues : " write"
22
+ pull-requests : " write"
23
+ packages : " write"
24
+ contents : " write"
25
+ id-token : " write"
20
26
name : " matrix"
21
27
runs-on :
22
28
- " lab"
23
29
outputs :
24
30
matrix : " ${{ steps.matrix.outputs.matrix }}"
25
31
steps :
32
+ - name : " SCIENCE"
33
+ uses : " actions/github-script@v7"
34
+ with :
35
+ github-token : " ${{ secrets.GITHUB_TOKEN }}"
36
+ script : |
37
+ let fs = require('fs');
38
+ github.rest.issues.createComment({
39
+ issue_number: context.issue.number,
40
+ owner: context.repo.owner,
41
+ repo: context.repo.repo,
42
+ body: "# science is a verb now"
43
+ });
26
44
- uses : " actions/checkout@v4"
27
45
- uses : " dtolnay/rust-toolchain@stable"
28
46
- uses : " cargo-bins/cargo-binstall@main"
@@ -105,6 +123,8 @@ jobs:
105
123
max-parallel : 3
106
124
matrix : ${{ fromJSON(needs.matrix.outputs.matrix) }}
107
125
permissions :
126
+ issues : " write"
127
+ pull-requests : " write"
108
128
packages : " write"
109
129
contents : " write"
110
130
id-token : " write"
@@ -149,21 +169,24 @@ jobs:
149
169
- name : " step summary"
150
170
continue-on-error : true # might fail due to $GITHUB_STEP_SUMMARY size limit of 1MB
151
171
run : |
152
- echo "# Outdated packages:" >> "$GITHUB_STEP_SUMMARY"
153
- echo "" >> "$GITHUB_STEP_SUMMARY"
154
- cat /tmp/dpdk-sys/builds/env.sysroot.gnu64.outdated.md >> $GITHUB_STEP_SUMMARY
155
-
156
- echo "" >> "$GITHUB_STEP_SUMMARY"
157
- echo "# Vuln scan (gnu64):" >> "$GITHUB_STEP_SUMMARY"
158
- echo "" >> "$GITHUB_STEP_SUMMARY"
159
- cat /tmp/dpdk-sys/builds/env.sysroot.gnu64.vulns.triage.md >> $GITHUB_STEP_SUMMARY
160
-
161
- echo "" >> "$GITHUB_STEP_SUMMARY"
162
- echo "# Runtime SBOM (gnu64):" >> "$GITHUB_STEP_SUMMARY"
163
- echo "" >> "$GITHUB_STEP_SUMMARY"
164
- cat /tmp/dpdk-sys/builds/env.sysroot.gnu64.sbom.md >> $GITHUB_STEP_SUMMARY
165
-
166
- echo "" >> "$GITHUB_STEP_SUMMARY"
172
+ {
173
+ echo "# Outdated packages (gnu64):";
174
+ echo "";
175
+ cat /tmp/dpdk-sys/builds/env.sysroot.gnu64.outdated.md;
176
+ echo "";
177
+ echo "# Outdated packages (musl64):";
178
+ echo "";
179
+ cat /tmp/dpdk-sys/builds/env.sysroot.musl64.outdated.md;
180
+ echo "";
181
+ echo "# Vuln scan (gnu64):";
182
+ echo "";
183
+ cat /tmp/dpdk-sys/builds/env.sysroot.gnu64.vulns.triage.md;
184
+ echo "";
185
+ echo "# Vuln scan (musl64):";
186
+ echo "";
187
+ cat /tmp/dpdk-sys/builds/env.sysroot.musl64.vulns.triage.md;
188
+ echo "";
189
+ } >> $GITHUB_STEP_SUMMARY
167
190
- name : " remove links from /tmp/dpdk-sys/builds"
168
191
run : |
169
192
for f in /tmp/dpdk-sys/builds/*; do
@@ -179,6 +202,68 @@ jobs:
179
202
timeout-minutes : 60
180
203
with :
181
204
limit-access-to-actor : true
205
+ - name : " outdated packages (gnu64)"
206
+ uses : " actions/github-script@v7"
207
+ with :
208
+ github-token : " ${{ secrets.GITHUB_TOKEN }}"
209
+ script : |
210
+ let fs = require('fs');
211
+ let body = "# Outdated packages (gnu64):\n";
212
+ body += fs.readFileSync('/tmp/dpdk-sys/builds/env.sysroot.gnu64.outdated.md');
213
+ github.rest.issues.createComment({
214
+ issue_number: context.issue.number,
215
+ owner: context.repo.owner,
216
+ repo: context.repo.repo,
217
+ body: body
218
+ });
219
+
220
+ - name : " outdated packages (musl64)"
221
+ uses : " actions/github-script@v7"
222
+ if : ${{ github.event_name == 'pull_request' }}
223
+ with :
224
+ github-token : " ${{ secrets.GITHUB_TOKEN }}"
225
+ script : |
226
+ let fs = require('fs');
227
+ let body = "# Outdated packages (musl64):\n";
228
+ body += fs.readFileSync('/tmp/dpdk-sys/builds/env.sysroot.musl64.outdated.md');
229
+ github.rest.issues.createComment({
230
+ issue_number: context.issue.number,
231
+ owner: context.repo.owner,
232
+ repo: context.repo.repo,
233
+ body: body
234
+ });
235
+
236
+ - name : " Vulnerable packages (gnu64)"
237
+ uses : " actions/github-script@v7"
238
+ if : ${{ github.event_name == 'pull_request' }}
239
+ with :
240
+ github-token : " ${{ secrets.GITHUB_TOKEN }}"
241
+ script : |
242
+ let fs = require('fs');
243
+ let body = "# Vulnerable packages (gnu64):\n";
244
+ body += fs.readFileSync('/tmp/dpdk-sys/builds/env.sysroot.gnu64.vulns.triage.md');
245
+ github.rest.issues.createComment({
246
+ issue_number: context.issue.number,
247
+ owner: context.repo.owner,
248
+ repo: context.repo.repo,
249
+ body: body
250
+ });
251
+
252
+ - name : " Vulnerable packages (musl64)"
253
+ uses : " actions/github-script@v7"
254
+ if : ${{ github.event_name == 'pull_request' }}
255
+ with :
256
+ github-token : " ${{ secrets.GITHUB_TOKEN }}"
257
+ script : |
258
+ let fs = require('fs');
259
+ let body = "# Vulnerable packages (musl64):\n";
260
+ body += fs.readFileSync('/tmp/dpdk-sys/builds/env.sysroot.musl64.vulns.triage.md');
261
+ github.rest.issues.createComment({
262
+ issue_number: context.issue.number,
263
+ owner: context.repo.owner,
264
+ repo: context.repo.repo,
265
+ body: body
266
+ });
182
267
183
268
summary :
184
269
name : " summary"
0 commit comments