@@ -314,3 +314,57 @@ jobs:
314314 labels : failed-release
315315 title : Publishing v${{ steps.extract-version.outputs.VERSION }} to GitHub Releases failed
316316 body : See https://github.com/${{ github.repository }}/actions/runs/${{ github.run_id }}
317+ - name : Generate PURL and SBOM
318+ run : |
319+ ./scripts/compliance/gen-purls.sh
320+ ./scripts/compliance/gen-sbom.sh
321+ env :
322+ SILKBOMB_IMG : ${{ vars.SILKBOMB_IMG }}
323+ - name : Upload SBOM to Kondukto
324+ run : ./scripts/compliance/upload-sbom.sh
325+ env :
326+ KONDUKTO_TOKEN : ${{ secrets.KONDUKTO_TOKEN }}
327+ SILKBOMB_IMG : ${{ vars.SILKBOMB_IMG }}
328+ KONDUKTO_REPO : ${{ vars.KONDUKTO_REPO }}
329+ KONDUKTO_BRANCH_PREFIX : ${{ vars.KONDUKTO_BRANCH_PREFIX }}
330+ - uses : actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683
331+ - name : Generate SSDLC report
332+ run : |
333+ AUTHOR="${{ github.actor }}"
334+ export AUTHOR
335+ VERSION="${{ steps.extract-version.outputs.VERSION }}"
336+ export VERSION
337+ ./scripts/compliance/gen-ssdlc-report.sh
338+ env :
339+ KONDUKTO_TOKEN : ${{ secrets.KONDUKTO_TOKEN }}
340+ SILKBOMB_IMG : ${{ vars.SILKBOMB_IMG }}
341+ KONDUKTO_REPO : ${{ vars.KONDUKTO_REPO }}
342+ KONDUKTO_BRANCH_PREFIX : ${{ vars.KONDUKTO_BRANCH_PREFIX }}
343+ - name : Import GPG key
344+ uses : crazy-max/ghaction-import-gpg@e89d40939c28e39f97cf32126055eeae86ba74ec
345+ with :
346+ gpg_private_key : ${{ secrets.APIX_BOT_GPG_PRIVATE_KEY }}
347+ passphrase : ${{ secrets.APIX_BOT_PASSPHRASE }}
348+ git_user_signingkey : true
349+ git_commit_gpgsign : true
350+ - name : Commit changes
351+ shell : bash
352+ run : |
353+ if [[ $(git status --porcelain) ]]; then
354+ git pull
355+ git config --local user.email [email protected] 356+ git config --local user.name svc-apix-bot
357+ git remote set-url origin https://svc-apix-bot:${{ secrets.APIX_BOT_PAT }}@github.com/${{ github.repository }}
358+ git add compliance/v*/*
359+ git commit -m "chore: Update SSDLC report for ${{ steps.extract-version.outputs.VERSION }}"
360+ git push origin
361+ else
362+ echo "No changes to commit."
363+ fi
364+ - name : Upload SBOM as release artifact
365+ uses : softprops/action-gh-release@da05d552573ad5aba039eaac05058a918a7bf631
366+ with :
367+ files : compliance/sbom.json
368+ tag_name : ${{ steps.extract-version.outputs.VERSION }}
369+ env :
370+ GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
0 commit comments