Skip to content

Commit 2fe8be8

Browse files
debug: add logging to SLSA hash generation step
1 parent 0d3a15a commit 2fe8be8

1 file changed

Lines changed: 19 additions & 1 deletion

File tree

.github/workflows/release.yml

Lines changed: 19 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -111,7 +111,25 @@ jobs:
111111
id: hash
112112
run: |
113113
cd dist
114-
echo "hashes=$(sha256sum *.tar.gz *.zip *.txt *.sbom.cdx.json | base64 -w0)" >> "$GITHUB_OUTPUT"
114+
# List files for debugging
115+
echo "Files in dist:"
116+
ls -la
117+
118+
# Generate hashes only for the binary archives (not checksums or SBOMs)
119+
echo "Generating hashes..."
120+
sha256sum armis-cli-*.tar.gz armis-cli-*.zip > hashes-raw.txt 2>&1 || true
121+
cat hashes-raw.txt
122+
123+
# Base64 encode the hashes
124+
if [ -s hashes-raw.txt ]; then
125+
base64 -w0 < hashes-raw.txt > hashes.txt
126+
echo "Base64 encoded hashes:"
127+
cat hashes.txt
128+
echo "hashes=$(cat hashes.txt)" >> "$GITHUB_OUTPUT"
129+
else
130+
echo "ERROR: No hashes generated!"
131+
exit 1
132+
fi
115133
116134
- name: Upload artifacts
117135
uses: actions/upload-artifact@v6

0 commit comments

Comments
 (0)