@@ -281,6 +281,21 @@ jobs:
281281 name : snapshot
282282 path : snapshot
283283
284+ - name : Debug - Check snapshot structure and binary
285+ run : |
286+ echo "=== Snapshot directory structure ==="
287+ ls -la snapshot/ || echo "snapshot/ not found"
288+ find snapshot -type f -name 'syft*' -exec ls -lh {} \;
289+
290+ echo -e "\n=== Binary permissions (ARM64) ==="
291+ ls -l snapshot/darwin-build_darwin_arm64_v8.0/syft || echo "ARM64 binary not found"
292+
293+ echo -e "\n=== Binary permissions (AMD64) ==="
294+ ls -l snapshot/darwin-build_darwin_amd64_v1/syft || echo "AMD64 binary not found"
295+
296+ echo -e "\n=== File type ==="
297+ file snapshot/darwin-build_darwin_arm64_v8.0/syft 2>/dev/null || file snapshot/darwin-build_darwin_amd64_v1/syft 2>/dev/null || echo "Cannot check file type"
298+
284299# - name: Download checksums file
285300# uses: actions/download-artifact@018cc2cf5baa6db3ef3c5f8a56943fffe632ef53 #v6.0.0
286301# with:
@@ -330,6 +345,25 @@ jobs:
330345 name : snapshot
331346 path : snapshot
332347
348+ - name : Debug - Check snapshot structure and binary
349+ run : |
350+ echo "=== Snapshot directory structure ==="
351+ ls -la snapshot/ || echo "snapshot/ not found"
352+ find snapshot -type f -name 'syft*' -exec ls -lh {} \;
353+
354+ echo -e "\n=== Binary permissions ==="
355+ ls -l snapshot/linux-build_linux_amd64_v1/syft || echo "Binary not found at expected location"
356+
357+ echo -e "\n=== File type ==="
358+ file snapshot/linux-build_linux_amd64_v1/syft || echo "Cannot check file type"
359+
360+ echo -e "\n=== Attempt to execute ==="
361+ ./snapshot/linux-build_linux_amd64_v1/syft version || echo "Binary execution failed with exit code: $?"
362+
363+ echo -e "\n=== Make executable and retry ==="
364+ chmod +x snapshot/linux-build_linux_amd64_v1/syft
365+ ./snapshot/linux-build_linux_amd64_v1/syft version || echo "Still failed after chmod with exit code: $?"
366+
333367# - name: Download Linux amd64 snapshot
334368# uses: actions/download-artifact@018cc2cf5baa6db3ef3c5f8a56943fffe632ef53 #v6.0.0
335369# with:
0 commit comments