forked from helixml/helix
-
Notifications
You must be signed in to change notification settings - Fork 0
45 lines (41 loc) · 1.12 KB
/
sbom.yml
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
39
40
41
42
43
44
45
---
name: Generate SBOMs
on:
release:
types:
- published
jobs:
sbom:
runs-on: ubuntu-latest
permissions:
contents: read
id-token: write
attestations: write
steps:
- uses: actions/checkout@v4
- name: Build Golang SBOM
uses: sbomify/github-action@master
env:
TOKEN: ${{ secrets.SBOMIFY_TOKEN }}
COMPONENT_ID: 'LCJffn8vKX'
LOCK_FILE: 'go.mod'
OVERRIDE_NAME: true
SBOM_VERSION: ${{ github.ref_name }}
AUGMENT: true
ENRICH: true
OUTPUT_FILE: 'helix-golang.cdx.json'
- name: Build JavaScript SBOM
uses: sbomify/github-action@master
env:
TOKEN: ${{ secrets.SBOMIFY_TOKEN }}
COMPONENT_ID: 'Z_wMfn8vWv'
LOCK_FILE: 'frontend/yarn.lock'
OVERRIDE_NAME: true
SBOM_VERSION: ${{ github.ref_name }}
AUGMENT: true
ENRICH: true
OUTPUT_FILE: 'helix-js.cdx.json'
- name: Attest
uses: actions/attest-build-provenance@v1
with:
subject-path: '${{ github.workspace }}/*.cdx.json'