Skip to content

Commit

Permalink
sbom for archives and packages.
Browse files Browse the repository at this point in the history
  • Loading branch information
schmidtw committed Mar 31, 2024
1 parent b4b3ceb commit 271fa37
Showing 1 changed file with 16 additions and 3 deletions.
19 changes: 16 additions & 3 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -654,8 +654,21 @@ jobs:
gecho " - title: Other Work"
gecho " order: 9999"
gecho ""
- name: Generate sbom rules to the .goreleaser.yml file
if: |
inputs.release-custom-file == false &&
inputs.release-type == 'program'
working-directory: ${{ inputs.working-directory }}
shell: bash
run: |
gecho() { echo "$1" >> .goreleaser.yml ; }
gecho "sboms:"
gecho " - artifacts: any"
gecho " - artifacts: archive"
if [[ "${{ inputs.release-rpms }}" == "true" ]]; then
gecho " - artifacts: package"
if
gecho ""
- name: Generate the library .goreleaser.yml file
Expand Down Expand Up @@ -805,7 +818,7 @@ jobs:
fi
if [[ "${{ inputs.release-skip-publish }}" == "--skip-publish" ]]; then
gecho " skip_push: true"
gecho " skip_push: true"
fi
gecho " dockerfile: '${{ inputs.release-docker-file }}'"
Expand Down Expand Up @@ -992,7 +1005,7 @@ jobs:
${{ inputs.release-skip-publish }} == "--skip-publish"
shell: bash
run: |
echo "SKIP_PUBLISH=--skip-publish" >> $GITHUB_ENV
echo "SKIP_PUBLISH=--skip=publish" >> $GITHUB_ENV
- name: Generate the Release
if: success() && startsWith(github.ref, 'refs/tags/')
Expand Down

0 comments on commit 271fa37

Please sign in to comment.