Skip to content

Commit ec11e19

Browse files
pcdavidAxelRICHARD
authored andcommitted
[releng] Produce and publish both full and runtime-only SBOMs
Signed-off-by: Pierre-Charles David <pierre-charles.david@obeo.fr>
1 parent 8831c8c commit ec11e19

2 files changed

Lines changed: 30 additions & 10 deletions

File tree

.github/workflows/generate-maven-sbom.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,7 @@ jobs:
8888
needs: ["generate-sbom"]
8989
uses: eclipse-csi/workflows/.github/workflows/store-sbom-data.yml@main
9090
with:
91-
projectName: "backend"
91+
projectName: "SysON - Backend"
9292
projectVersion: ${{ needs.generate-sbom.outputs.project-version }}
9393
bomArtifact: "backend-sbom"
9494
bomFilename: "bom.json"

.github/workflows/generate-npm-sbom.yml

Lines changed: 29 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -65,9 +65,13 @@ jobs:
6565
run: |
6666
npm install --global @cyclonedx/cyclonedx-npm@2.1.0
6767
68-
- name: Generate SBOM
68+
- name: Generate runtime SBOM
6969
run: |
70-
cyclonedx-npm --output-format json --output-file bom.json
70+
cyclonedx-npm --output-format json --output-file runtime-bom.json --omit dev
71+
72+
- name: Generate full SBOM
73+
run: |
74+
cyclonedx-npm --output-format json --output-file full-bom.json
7175
7276
- name: Extract product version
7377
id: version
@@ -87,18 +91,34 @@ jobs:
8791
echo "PROJECT_VERSION=$VERSION" >> $GITHUB_OUTPUT
8892
echo "Product version: $VERSION"
8993
90-
- name: Upload SBOM as artifact
94+
- name: Upload runtime SBOM as artifact
95+
uses: actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 # v4.6.2
96+
with:
97+
name: frontend-runtime-sbom
98+
path: ${{ env.PRODUCT_PATH }}/runtime-bom.json
99+
100+
- name: Upload full SBOM as artifact
91101
uses: actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 # v4.6.2
92102
with:
93-
name: frontend-sbom
94-
path: ${{ env.PRODUCT_PATH }}/bom.json
103+
name: frontend-full-sbom
104+
path: ${{ env.PRODUCT_PATH }}/full-bom.json
105+
106+
store-runtime-sbom-data: # stores sbom and metadata in a predefined format for otterdog to pick up
107+
needs: ["generate-sbom"]
108+
uses: eclipse-csi/workflows/.github/workflows/store-sbom-data.yml@main
109+
with:
110+
projectName: "SysON - Frontend Runtime"
111+
projectVersion: ${{ needs.generate-sbom.outputs.project-version }}
112+
bomArtifact: "frontend-runtime-sbom"
113+
bomFilename: "runtime-bom.json"
114+
parentProject: "1b099ee7-62ee-48e1-986b-b7f0309dd344"
95115

96-
store-sbom-data: # stores sbom and metadata in a predefined format for otterdog to pick up
116+
store-full-sbom-data: # stores sbom and metadata in a predefined format for otterdog to pick up
97117
needs: ["generate-sbom"]
98118
uses: eclipse-csi/workflows/.github/workflows/store-sbom-data.yml@main
99119
with:
100-
projectName: "frontend"
120+
projectName: "SysON - Frontend Full"
101121
projectVersion: ${{ needs.generate-sbom.outputs.project-version }}
102-
bomArtifact: "frontend-sbom"
103-
bomFilename: "bom.json"
122+
bomArtifact: "frontend-full-sbom"
123+
bomFilename: "full-bom.json"
104124
parentProject: "1b099ee7-62ee-48e1-986b-b7f0309dd344"

0 commit comments

Comments
 (0)