Skip to content

Commit

Permalink
feature/143-aii-eft-delivery Pin SBOM version to 1.4
Browse files Browse the repository at this point in the history
  • Loading branch information
MasterEvarior committed Oct 25, 2024
1 parent 784625e commit b897c71
Showing 1 changed file with 12 additions and 4 deletions.
16 changes: 12 additions & 4 deletions .github/workflows/release-docker-image.yml
Original file line number Diff line number Diff line change
Expand Up @@ -111,16 +111,16 @@ jobs:
uses: anchore/sbom-action@v0
with:
image: ghcr.io/puzzle/unilu-pruefungsabfrage:${{ needs.create-release.outputs.imageVersion }}
output-file: application-sbom.xml
format: cyclonedx
output-file: application-sbom.spdx
format: spdx
upload-artifact: false

- name: Generate SBOM for Shibboleth SP Docker image
uses: anchore/sbom-action@v0
with:
image: ghcr.io/puzzle/unilu-pruefungsabfrage-shibboleth-sp:${{ needs.create-release.outputs.imageVersion }}
output-file: shibboleth-sp-sbom.xml
format: cyclonedx
output-file: shibboleth-sp-sbom.spdx
format: spdx
upload-artifact: false

- name: Install cyclonedx-cli
Expand All @@ -130,9 +130,17 @@ jobs:
name: 'cyclonedx-cli'
version: '0.27.1'

- name: Convert SBOMs to [email protected]
run: |
cyclonedx-cli convert --input-file application-sbom.spdx --output-file application-sbom.xml --output-format xml
cyclonedx-cli convert --input-file shibboleth-sp-sbom.spdx --output-file shibboleth-sp-sbom.xml --output-format xml
- name: Merge SBOMs
run: cyclonedx-cli merge --input-files application-sbom.xml shibboleth-sp-sbom.xml target/bom.xml --output-file sbom.xml

- name: Debug
run: cyclonedx-cli analyze sbom.xml

- name: Get semver version from pom and store major and minor version as deptrack version
run: echo "DEPTRACK_PROJECT_VERSION=$(mvn org.apache.maven.plugins:maven-help-plugin:3.2.0:evaluate -Dexpression=project.version -q -DforceStdout | cut -d '-' -f 1 | cut -d '.' -f 1-2).x" >> $GITHUB_ENV

Expand Down

0 comments on commit b897c71

Please sign in to comment.