File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 3434 shell : pwsh
3535 - name : Generate SBOM
3636 run : dotnet CycloneDX ./src/EPPlus/EPPlus.csproj -o ./sbom -F Json -st Library -sv ${{ env.VERSION }} -fn epplus-${{ env.VERSION }}.sbom.json -imp ./src/EPPlus/sbom-metadata-template.xml
37+ - name : Generate SHA-256 checksum for SBOM
38+ run : |
39+ $sbomFile = "./sbom/epplus-${{ env.VERSION }}.sbom.json"
40+ $hash = (Get-FileHash -Path $sbomFile -Algorithm SHA256).Hash.ToLower()
41+ "$hash epplus-${{ env.VERSION }}.sbom.json" | Out-File -FilePath "./sbom/epplus-${{ env.VERSION }}.sbom.json.sha256" -Encoding utf8NoBOM
42+ shell : pwsh
3743 # --- SBOM ---
3844
3945 - name : Build
@@ -96,10 +102,21 @@ jobs:
96102 --auth-mode login `
97103 --overwrite
98104 shell : pwsh
99-
105+ - name : Upload SBOM checksum to Azure Blob Storage
106+ run : |
107+ az storage blob upload `
108+ --account-name eppluswebprod `
109+ --container-name sbom `
110+ --name epplus-${{ env.VERSION }}.sbom.json.sha256 `
111+ --file ./sbom/epplus-${{ env.VERSION }}.sbom.json.sha256 `
112+ --auth-mode login `
113+ --overwrite
114+ shell : pwsh
100115 - name : Upload SBOM as artifact
101116 uses : actions/upload-artifact@v4
102117 with :
103118 name : sbom
104- path : ./sbom/epplus-${{ env.VERSION }}.sbom.json
105- # --- SBOM ---
119+ path : |
120+ ./sbom/epplus-${{ env.VERSION }}.sbom.json
121+ ./sbom/epplus-${{ env.VERSION }}.sbom.json.sha256
122+ # --- SBOM ---
You can’t perform that action at this time.
0 commit comments