Skip to content

Commit 66fe40b

Browse files
committed
add sbom to release assests
Signed-off-by: zhzhuang-zju <[email protected]>
1 parent 2271a41 commit 66fe40b

File tree

1 file changed

+20
-0
lines changed

1 file changed

+20
-0
lines changed

.github/workflows/release.yml

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -78,6 +78,26 @@ jobs:
7878
_output/charts/karmada-chart-${{ github.ref_name }}.tgz.sha256
7979
_output/charts/karmada-operator-chart-${{ github.ref_name }}.tgz
8080
_output/charts/karmada-operator-chart-${{ github.ref_name }}.tgz.sha256
81+
sbom-assests:
82+
name: Release sbom
83+
runs-on: ubuntu-22.04
84+
steps:
85+
- uses: actions/checkout@v4
86+
- name: Generate sbom for karmada file system
87+
uses: aquasecurity/[email protected]
88+
with:
89+
scan-type: 'fs'
90+
format: 'spdx'
91+
output: 'sbom-karmada.spdx'
92+
scan-ref: "/github/workspace/"
93+
- name: Tar the sbom files
94+
run: |
95+
tar -zcf sbom.tar.gz *.spdx
96+
- name: Uploading sbom assets...
97+
uses: softprops/action-gh-release@v2
98+
with:
99+
files: |
100+
sbom.tar.gz
81101
update-krew-index:
82102
needs: release-assests
83103
name: Update krew-index

0 commit comments

Comments
 (0)