Skip to content

Commit

Permalink
add sbom pipeline
Browse files Browse the repository at this point in the history
  • Loading branch information
claudia-at-gepardec committed Jun 28, 2024
1 parent 2715768 commit 4a87c32
Show file tree
Hide file tree
Showing 2 changed files with 43 additions and 0 deletions.
30 changes: 30 additions & 0 deletions .github/workflows/sbom.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
name: SBOM

on:
push:
branches:
- sbom
workflow_dispatch:

jobs:
build-test-push:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
name: checkout

- name: Set up JDK 17
uses: actions/setup-java@v3
with:
java-version: '17'
distribution: 'temurin'
cache: maven

- name: Build (and test) project with Maven
run: mvn -B package --file pom.xml

- name: Scan current project
uses: anchore/scan-action@v3
with:
path: "."
fail-build: false
13 changes: 13 additions & 0 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -431,6 +431,19 @@
<quarkus.smallrye-metrics.path>/metrics</quarkus.smallrye-metrics.path>
</configuration>
</plugin>
<plugin>
<groupId>org.cyclonedx</groupId>
<artifactId>cyclonedx-maven-plugin</artifactId>
<executions>
<execution>
<id>generate-bom</id>
<phase>package</phase>
<goals>
<goal>makeAggregateBom</goal>
</goals>
</execution>
</executions>
</plugin>
</plugins>
</build>
</project>

0 comments on commit 4a87c32

Please sign in to comment.