Skip to content

Commit a595235

Browse files
sbaker-csSylfwood
andauthored
ci(sbom): add SBOM to OneDrive (#1449)
Co-authored-by: Raphaël Larivière <ralariviere@devolutions.net>
1 parent d09ffa9 commit a595235

1 file changed

Lines changed: 13 additions & 2 deletions

File tree

.github/workflows/package.yml

Lines changed: 13 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -683,6 +683,7 @@ jobs:
683683
name: Upload SBOM
684684
runs-on: ubuntu-latest
685685
needs: preflight
686+
environment: sbom
686687

687688
steps:
688689
- name: Checkout ${{ github.repository }}
@@ -709,8 +710,18 @@ jobs:
709710
- name: Save SBOM
710711
uses: actions/upload-artifact@v4
711712
with:
712-
name: bom.xml
713-
path: bom.xml
713+
name: bom.json
714+
path: bom.json
715+
716+
- name: Upload SBOM to OneDrive Releases
717+
uses: ./.github/workflows/onedrive-upload
718+
with:
719+
azure_client_id: ${{ secrets.ONEDRIVE_AUTOMATION_CLIENT_ID }}
720+
azure_client_secret: ${{ secrets.ONEDRIVE_AUTOMATION_CLIENT_SECRET }}
721+
conflict_behavior: replace
722+
destination_path: /Gateway/${{ needs.preflight.outputs.version }}
723+
remote: releases
724+
source_path: bom.json
714725

715726
- name: Upload SBOM to Dependency-Track
716727
uses: ./.github/workflows/dtrack-upload-sbom

0 commit comments

Comments
 (0)