File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff 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
You can’t perform that action at this time.
0 commit comments