Skip to content

Commit 5d06b71

Browse files
authored
Add sbom_generation file
1 parent 86ddde3 commit 5d06b71

File tree

2 files changed

+16
-22
lines changed

2 files changed

+16
-22
lines changed

build_spec.yaml

Lines changed: 0 additions & 22 deletions
This file was deleted.

sbom_generation.yaml

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
version: 0.1
2+
component: build
3+
timeoutInSeconds: 1000
4+
shell: bash
5+
6+
steps:
7+
- type: Command
8+
name: "Run Maven cycloneDX plugin command"
9+
command: |
10+
# For more details, visit https://github.com/CycloneDX/cyclonedx-maven-plugin/blob/master/README.md
11+
mvn org.cyclonedx:cyclonedx-maven-plugin:2.7.5:makeAggregateBom -DincludeRuntimeScope=true -DincludeCompileScope=true -DincludeProvidedScope=false -DincludeSystemScope=false -DincludeTestScope=false -DoutputFormat=json -DoutputName=artifactSBOM -DschemaVersion=1.4
12+
mv target/artifactSBOM.json ./artifactSBOM.json
13+
outputArtifacts:
14+
- name: artifactSBOM
15+
type: BINARY
16+
location: ${OCI_PRIMARY_SOURCE_DIR}/artifactSBOM.json

0 commit comments

Comments
 (0)