From 6fd7722d1822cd93652f5685446695b8d897461e Mon Sep 17 00:00:00 2001
From: Tung Bui <tung.bquang@gmail.com>
Date: Tue, 15 Aug 2023 22:34:23 +0700
Subject: [PATCH] ci: fix issue SBOM not being triggered - archive spdx

---
 .github/workflows/build.yml | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml
index 6e89c9d50af..1caf6022c94 100644
--- a/.github/workflows/build.yml
+++ b/.github/workflows/build.yml
@@ -356,7 +356,9 @@ jobs:
       - name: Anchore SBOM Action
         uses: anchore/sbom-action@v0.12.0
         with:
-          artifact-name: ${{ github.event.repository.name }}-spdx.json
+          artifact-name: k6-${{ env.VERSION }}-spdx.json
+          upload-release-assets: false
+          output-file: dist/k6-${{ env.VERSION }}-spdx.json
       - name: Create release
         env:
           GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}