diff --git a/.github/workflows/release_jreleaser.yml b/.github/workflows/release_jreleaser.yml index c9c6878ca..c13c74a7c 100644 --- a/.github/workflows/release_jreleaser.yml +++ b/.github/workflows/release_jreleaser.yml @@ -54,6 +54,14 @@ jobs: JRELEASER_GPG_SECRET_KEY: ${{ secrets.JRELEASER_GPG_SECRET_KEY }} JRELEASER_MAVENCENTRAL_USERNAME: ${{ secrets.JRELEASER_MAVENCENTRAL_USERNAME }} JRELEASER_MAVENCENTRAL_TOKEN: ${{ secrets.JRELEASER_MAVENCENTRAL_TOKEN }} + - name: Generate SBOM + run: | + mvn --no-transfer-progress --batch-mode org.cyclonedx:cyclonedx-maven-plugin:makeAggregateBom + - name: Attach SBOM to GitHub release + run: | + gh release upload "v${{ github.event.inputs.version }}" target/unleash-client-java-sbom.json --clobber + env: + GH_TOKEN: ${{ steps.generate-token.outputs.token }} - name: Set next version run: | mvn --no-transfer-progress --batch-mode versions:set -DnewVersion=${{ github.event.inputs.nextVersion }}-SNAPSHOT diff --git a/pom.xml b/pom.xml index 20fa19b23..4ecc0dd26 100644 --- a/pom.xml +++ b/pom.xml @@ -1,5 +1,9 @@ - - + + 4.0.0 io.getunleash unleash-client-java @@ -156,6 +160,33 @@ + + org.cyclonedx + cyclonedx-maven-plugin + 2.7.9 + + + package + + makeAggregateBom + + + + + application + 1.7 + true + true + true + true + true + false + true + true + all + unleash-client-java-sbom + + org.apache.maven.plugins maven-dependency-plugin @@ -235,8 +266,7 @@ https://github.com - Unleash/client-specification/archive/v${version.unleash.specification}.zip - + Unleash/client-specification/archive/v${version.unleash.specification}.zip ${project.build.directory}/client-specification @@ -489,17 +519,17 @@ - - org.sonatype.plugins - nexus-staging-maven-plugin - 1.7.0 - true - - ossrh - https://s01.oss.sonatype.org/ - true - - + + org.sonatype.plugins + nexus-staging-maven-plugin + 1.7.0 + true + + ossrh + https://s01.oss.sonatype.org/ + true + +