Skip to content

Commit 8863b34

Browse files
Refactor SBOM generation (#166)
- Only generate on Windows (as that's the "chosen one" for publishing). - Rename to `grafana-opentelemetry-dotnet.spdx.json`.
1 parent a86cbeb commit 8863b34

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

.github/workflows/ci.yml

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -63,11 +63,12 @@ jobs:
6363

6464
- name: Generate SBOM
6565
uses: anchore/sbom-action@9246b90769f852b3a8921f330c59e0b3f439d6e9 # v0.20.1
66+
if: runner.os == 'Windows'
6667
with:
67-
artifact-name: build-${{ matrix.os-name }}.spdx.json
68-
output-file: ./artifacts/build.spdx.json
68+
artifact-name: grafana-opentelemetry-dotnet.spdx.json
69+
output-file: ./artifacts/grafana-opentelemetry-dotnet.spdx.json
6970
path: ./artifacts/bin
70-
upload-release-assets: ${{ runner.os == 'Windows' }}
71+
upload-release-assets: true
7172

7273
- name: Attest artifacts
7374
uses: actions/attest-build-provenance@e8998f949152b193b063cb0ec769d69d929409be # v2.4.0

0 commit comments

Comments
 (0)