Skip to content

Commit

Permalink
Merge pull request #5117 from zhzhuang-zju/automated-cherry-pick-of-#…
Browse files Browse the repository at this point in the history
…5110-upstream-release-1.10

Automated cherry pick of #5110: add sbom to release assests
  • Loading branch information
karmada-bot committed Jul 2, 2024
2 parents ace2399 + 7904b89 commit 8d9ab95
Showing 1 changed file with 20 additions and 0 deletions.
20 changes: 20 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -78,6 +78,26 @@ jobs:
_output/charts/karmada-chart-${{ github.ref_name }}.tgz.sha256
_output/charts/karmada-operator-chart-${{ github.ref_name }}.tgz
_output/charts/karmada-operator-chart-${{ github.ref_name }}.tgz.sha256
sbom-assests:
name: Release sbom
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v4
- name: Generate sbom for karmada file system
uses: aquasecurity/trivy-action@0.23.0
with:
scan-type: 'fs'
format: 'spdx'
output: 'sbom-karmada.spdx'
scan-ref: "/github/workspace/"
- name: Tar the sbom files
run: |
tar -zcf sbom.tar.gz *.spdx
- name: Uploading sbom assets...
uses: softprops/action-gh-release@v2
with:
files: |
sbom.tar.gz
update-krew-index:
needs: release-assests
name: Update krew-index
Expand Down

0 comments on commit 8d9ab95

Please sign in to comment.