Skip to content

Commit a46851e

Browse files
fix: add conditional checks for tool installations in build workflow
1 parent 76ed4b8 commit a46851e

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

.github/workflows/build.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -60,12 +60,15 @@ jobs:
6060
chmod +x AIBoMGen-cli
6161
6262
- name: Install Syft
63+
if: ${{ matrix.go-version == '1.25.x' }}
6364
uses: anchore/sbom-action/[email protected]
6465

6566
- name: Install Cosign
67+
if: ${{ matrix.go-version == '1.25.x' }}
6668
uses: sigstore/[email protected]
6769

6870
- name: Install Grype
71+
if: ${{ matrix.go-version == '1.25.x' }}
6972
uses: anchore/scan-action/download-grype@v4
7073

7174
- name: Generate SBOM (Syft)

0 commit comments

Comments
 (0)