File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -107,6 +107,13 @@ jobs:
107107 with :
108108 name : build-output
109109 path : ./marketing/public
110+ - name : Generate CycloneDX SBOM
111+ run : npx @cyclonedx/cyclonedx-npm --output-format JSON --output-file shiftleftcyber.github.io.cdx.json
112+ - name : Upload SBOM
113+ uses : actions/upload-artifact@v5
114+ with :
115+ name : generated-sbom
116+ path : ./marketing/shiftleftcyber.github.io.cdx.json
110117 # --------------------------------------------------
111118 # 2️⃣ Deploy
112119 # --------------------------------------------------
@@ -122,39 +129,12 @@ jobs:
122129 uses : actions/deploy-pages@v4
123130
124131 # --------------------------------------------------
125- # 3️⃣ Generate SBOM
126- # --------------------------------------------------
127- generate-sbom :
128- name : 📦 Generate SBOM
129- runs-on : ubuntu-latest
130- needs : build
131-
132- steps :
133- - name : Checkout Repo
134- uses : actions/checkout@v5
135-
136- - name : Download Build Artifacts
137- uses : actions/download-artifact@v6
138- with :
139- name : build-output
140- path : ./marketing
141-
142- - name : Generate CycloneDX SBOM
143- run : npx @cyclonedx/cyclonedx-npm --output-format JSON --output-file shiftleftcyber.github.io.cdx.json
144-
145- - name : Upload SBOM
146- uses : actions/upload-artifact@v5
147- with :
148- name : generated-sbom
149- path : ./marketing/shiftleftcyber.github.io.cdx.json
150-
151- # --------------------------------------------------
152- # 4️⃣ Sign SBOM
132+ # 3️⃣ Sign SBOM
153133 # --------------------------------------------------
154134 sign-sbom :
155135 name : 🔏 Sign SBOM
156136 runs-on : ubuntu-latest
157- needs : generate-sbom
137+ needs : build
158138
159139 steps :
160140 - name : Checkout Repo
You can’t perform that action at this time.
0 commit comments