Skip to content

Commit e9fd217

Browse files
author
Daan Hoogland
committed
spom
1 parent db95289 commit e9fd217

File tree

2 files changed

+39
-6
lines changed

2 files changed

+39
-6
lines changed

.github/workflows/sbom.yml

Lines changed: 13 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -15,9 +15,16 @@
1515
# specific language governing permissions and limitations
1616
# under the License.
1717

18-
- uses: sbomify/github-action@master
19-
env:
20-
LOCK_FILE: ui/package-lock.json
21-
OUTPUT_FILE: sbom.ui.cdx.json
22-
UPLOAD: false
23-
ENRICH: true
18+
name: generate sboms
19+
20+
jobs:
21+
build:
22+
name: ui sbom
23+
uses: sbomify/github-action@master
24+
env:
25+
LOCK_FILE: ui/package-lock.json
26+
OUTPUT_FILE: sbom.ui.cdx.json
27+
COMPONENT_NAME: my-app
28+
COMPONENT_VERSION: ${{ github.ref_name }}
29+
UPLOAD: false
30+
ENRICH: true

pom.xml

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -848,6 +848,32 @@
848848
</execution>
849849
</executions>
850850
</plugin>
851+
<plugin>
852+
<groupId>org.cyclonedx</groupId>
853+
<artifactId>cyclonedx-maven-plugin</artifactId>
854+
<version>2.9.1</version>
855+
<executions>
856+
<execution>
857+
<phase>package</phase>
858+
<goals>
859+
<goal>makeAggregateBom</goal>
860+
</goals>
861+
</execution>
862+
</executions>
863+
<configuration>
864+
<projectType>application</projectType>
865+
<schemaVersion>1.6</schemaVersion>
866+
<includeBomSerialNumber>true</includeBomSerialNumber>
867+
<includeCompileScope>true</includeCompileScope>
868+
<includeProvidedScope>true</includeProvidedScope>
869+
<includeRuntimeScope>true</includeRuntimeScope>
870+
<includeSystemScope>true</includeSystemScope>
871+
<includeTestScope>false</includeTestScope>
872+
<includeLicenseText>false</includeLicenseText>
873+
<outputFormat>all</outputFormat>
874+
<outputName>ACS.sbom</outputName>
875+
</configuration>
876+
</plugin>
851877
</plugins>
852878
<pluginManagement>
853879
<plugins>

0 commit comments

Comments
 (0)