File tree Expand file tree Collapse file tree 1 file changed +34
-0
lines changed Expand file tree Collapse file tree 1 file changed +34
-0
lines changed Original file line number Diff line number Diff line change
1
+ # Copyright (c) 2025, Oracle and/or its affiliates. All rights reserved.
2
+ # Licensed under the Universal Permissive License v 1.0 as shown at
3
+ # https://oss.oracle.com/licenses/upl.
4
+
5
+ # This OCI DevOps build specification file [1] generates a Software Bill of Materials (SBOM) of the repository.
6
+ # The file is needed to run checks for third-party vulnerabilities and business approval according to Oracle’s GitHub policies.
7
+ # [1] https://docs.oracle.com/en-us/iaas/Content/devops/using/build_specs.htm
8
+
9
+ version : 0.1
10
+ component : build
11
+ timeoutInSeconds : 1000
12
+ shell : bash
13
+
14
+ steps :
15
+ - type : Command
16
+ name : " Download and configure JDK 17"
17
+ command : |
18
+ wget --no-check-certificate -c --header "Cookie: oraclelicense=accept-securebackup-cookie" https://download.oracle.com/java/17/archive/jdk-17.0.10_linux-x64_bin.tar.gz
19
+ tar xzf jdk-17.0.10_linux-x64_bin.tar.gz -C ${OCI_PRIMARY_SOURCE_DIR}
20
+
21
+ - type : Command
22
+ name : " Run Maven cycloneDX plugin command"
23
+ command : |
24
+ export JAVA_HOME=${OCI_PRIMARY_SOURCE_DIR}/jdk-17.0.10
25
+ export PATH=$JAVA_HOME/bin:$PATH
26
+ cd prj
27
+ # For more details, visit https://github.com/CycloneDX/cyclonedx-maven-plugin/blob/master/README.md
28
+ mvn org.cyclonedx:cyclonedx-maven-plugin:2.7.9:makeAggregateBom -DincludeRuntimeScope=true -DincludeCompileScope=true -DincludeProvidedScope=false -DincludeSystemScope=false -DincludeTestScope=false -DoutputFormat=json -DoutputName=artifactSBOM -DschemaVersion=1.4
29
+ mv target/artifactSBOM.json ${OCI_PRIMARY_SOURCE_DIR}/artifactSBOM.json
30
+ outputArtifacts :
31
+ - name : artifactSBOM
32
+ type : BINARY
33
+ location : ${OCI_PRIMARY_SOURCE_DIR}/artifactSBOM.json
34
+
You can’t perform that action at this time.
0 commit comments