@@ -42,12 +42,12 @@ jobs:
4242 submodules : recursive
4343 fetch-depth : 0
4444 - name : Setup Go
45- uses : actions/setup-go@v5
45+ uses : actions/setup-go@v6
4646 with :
4747 go-version : ${{ env.GO_VERSION }}
4848 cache : false
4949 - name : Setup Node.js
50- uses : actions/setup-node@v4
50+ uses : actions/setup-node@v6
5151 with :
5252 node-version : ${{ env.NODE_VERSION }}
5353 - name : Setup Pages
@@ -114,6 +114,18 @@ jobs:
114114 with :
115115 name : generated-sbom
116116 path : ./marketing/shiftleftcyber.github.io.cdx.json
117+ - name : Sign SBOM
118+ uses : shiftleftcyber/secure-sbom-action@v1.3.1
119+ with :
120+ sbom_file : shiftleftcyber.github.io.cdx.json
121+ secure_sbom_action : sign
122+ api_key : ${{ secrets.SECURE_SBOM_API_KEY }}
123+ key_id : ${{ secrets.SECURE_SBOM_KEYID }}
124+ - name : Upload Signed SBOM
125+ uses : actions/upload-artifact@v5
126+ with :
127+ name : signed-sbom
128+ path : ./marketing/shiftleftcyber.github.io.cdx.signed.json
117129 # --------------------------------------------------
118130 # 2️⃣ Deploy
119131 # --------------------------------------------------
@@ -127,34 +139,3 @@ jobs:
127139 - name : Deploy to GitHub Pages
128140 id : deployment
129141 uses : actions/deploy-pages@v4
130-
131- # --------------------------------------------------
132- # 3️⃣ Sign SBOM
133- # --------------------------------------------------
134- sign-sbom :
135- name : 🔏 Sign SBOM
136- runs-on : ubuntu-latest
137- needs : build
138-
139- steps :
140- - name : Checkout Repo
141- uses : actions/checkout@v5
142-
143- - name : Download Generated SBOM
144- uses : actions/download-artifact@v6
145- with :
146- name : generated-sbom
147-
148- - name : Sign SBOM
149- uses : shiftleftcyber/secure-sbom-action@v1.3.1
150- with :
151- sbom_file : shiftleftcyber.github.io.cdx.json
152- secure_sbom_action : sign
153- api_key : ${{ secrets.SECURE_SBOM_API_KEY }}
154- key_id : ${{ secrets.SECURE_SBOM_KEYID }}
155-
156- - name : Upload Signed SBOM
157- uses : actions/upload-artifact@v5
158- with :
159- name : signed-sbom
160- path : ./marketing/shiftleftcyber.github.io.cdx.signed.json
0 commit comments