-
Notifications
You must be signed in to change notification settings - Fork 14
38 lines (32 loc) · 1.02 KB
/
upload-sbom.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
# based on https://securitylab.github.com/research/github-actions-preventing-pwn-requests/
name: Upload SBOM to EdgeBit
on:
workflow_run:
workflows: ["Generate an SBOM from source code"]
types:
- completed
jobs:
upload:
runs-on: ubuntu-latest
if: github.event.workflow_run.conclusion == 'success'
steps:
- name: Download metadata
id: metadata
uses: dawidd6/[email protected]
with:
run_id: ${{ github.event.workflow_run.id }}
name: metadata.json
- name: Download SBOM
id: sbom
uses: dawidd6/[email protected]
with:
run_id: ${{ github.event.workflow_run.id }}
name: sbom.spdx.json
- name: Upload SBOM to EdgeBit
uses: edgebitio/edgebit-build@v1
with:
edgebit-url: "https://edgebit.edgebit.io"
token: ${{ secrets.EDGEBIT_TOKEN }}
component: "enclaver"
sbom-file: ./sbom.spdx.json
args-file: ./metadata.json