Skip to content

Commit

Permalink
github action: upload SBOMs to release
Browse files Browse the repository at this point in the history
  • Loading branch information
mtwardawski committed Feb 2, 2024
1 parent ffcc785 commit b912d9c
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 4 deletions.
9 changes: 7 additions & 2 deletions .github/workflows/job-publish-release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,11 +14,16 @@ jobs:
permissions:
contents: write
steps:
- name: Download Artifacts
- name: Download Application Artifacts
uses: actions/download-artifact@6b208ae046db98c579e8a3aa621ab581ff575935
with:
pattern: "*-${{ github.sha }}.tar.gz"

- name: Download SBOM Files
uses: actions/download-artifact@6b208ae046db98c579e8a3aa621ab581ff575935
with:
pattern: "opendut-sbom"

- uses: ncipollo/release-action@6c75be85e571768fa31b40abf38de58ba0397db5
with:
artifacts: "*-${{ github.sha }}.tar.gz/*"
artifacts: "*-${{ github.sha }}.tar.gz/*,opendut-sbom/*"
2 changes: 1 addition & 1 deletion .github/workflows/job-sbom.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -28,4 +28,4 @@ jobs:
name: opendut-sbom
path: ./target/ci/sbom/
if-no-files-found: error
retention-days: 30
retention-days: 1
2 changes: 1 addition & 1 deletion .github/workflows/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ jobs:
runs-on: "${{ vars.OPENDUT_GH_RUNNER_LARGE }}"

publish-release:
needs: [ bundle-carl, bundle-cleo, bundle-edgar ]
needs: [ bundle-carl, bundle-cleo, bundle-edgar, generate-sbom ]
uses: ./.github/workflows/job-publish-release.yaml
permissions:
contents: write
Expand Down

0 comments on commit b912d9c

Please sign in to comment.