Skip to content

Commit b5278c4

Browse files
authored
fix: hardcode Microsoft SBOM tool checksum (#22)
- Microsoft doesn't provide .sha256 files for their releases - Use hardcoded SHA256 checksum for v4.1.2 - Remove reference to non-existent .sha256 file in cleanup
1 parent 475f5d4 commit b5278c4

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

.github/workflows/publish.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -132,16 +132,16 @@ jobs:
132132
run: |
133133
# Download and verify Microsoft SBOM tool
134134
curl -LO https://github.com/microsoft/sbom-tool/releases/download/v4.1.2/sbom-tool-linux-x64
135-
curl -LO https://github.com/microsoft/sbom-tool/releases/download/v4.1.2/sbom-tool-linux-x64.sha256
136-
sha256sum -c sbom-tool-linux-x64.sha256
135+
# Verify against known checksum (Microsoft doesn't provide .sha256 files)
136+
echo "0019dfc4b32d63c1392aa264aed2253c1e0c2fb09216f8e2cc269bbfb8bb49b5 sbom-tool-linux-x64" | sha256sum -c
137137
chmod +x sbom-tool-linux-x64
138138
139139
# Generate Microsoft SBOM
140140
./sbom-tool-linux-x64 generate -b . -bc . -pn create-claude -pv $VERSION -ps RMNCLDYO -nsb https://github.com/RMNCLDYO/create-claude
141141
mv _manifest/spdx_2.2/manifest.spdx.json "create-claude-$VERSION.ms-spdx.json"
142142
143143
# Cleanup
144-
rm -rf _manifest sbom-tool-linux-x64 sbom-tool-linux-x64.sha256
144+
rm -rf _manifest sbom-tool-linux-x64
145145
146146
- name: Sign all SBOMs and attestations
147147
run: |

0 commit comments

Comments
 (0)