mirror of
https://github.com/anchore/syft.git
synced 2025-11-17 08:23:15 +01:00
add logging
Signed-off-by: Alex Goodman <wagoodman@users.noreply.github.com>
This commit is contained in:
parent
2c195d5e5f
commit
62e54030ae
34
.github/workflows/validations.yaml
vendored
34
.github/workflows/validations.yaml
vendored
@ -281,6 +281,21 @@ jobs:
|
|||||||
name: snapshot
|
name: snapshot
|
||||||
path: snapshot
|
path: snapshot
|
||||||
|
|
||||||
|
- name: Debug - Check snapshot structure and binary
|
||||||
|
run: |
|
||||||
|
echo "=== Snapshot directory structure ==="
|
||||||
|
ls -la snapshot/ || echo "snapshot/ not found"
|
||||||
|
find snapshot -type f -name 'syft*' -exec ls -lh {} \;
|
||||||
|
|
||||||
|
echo -e "\n=== Binary permissions (ARM64) ==="
|
||||||
|
ls -l snapshot/darwin-build_darwin_arm64_v8.0/syft || echo "ARM64 binary not found"
|
||||||
|
|
||||||
|
echo -e "\n=== Binary permissions (AMD64) ==="
|
||||||
|
ls -l snapshot/darwin-build_darwin_amd64_v1/syft || echo "AMD64 binary not found"
|
||||||
|
|
||||||
|
echo -e "\n=== File type ==="
|
||||||
|
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"
|
||||||
|
|
||||||
# - name: Download checksums file
|
# - name: Download checksums file
|
||||||
# uses: actions/download-artifact@018cc2cf5baa6db3ef3c5f8a56943fffe632ef53 #v6.0.0
|
# uses: actions/download-artifact@018cc2cf5baa6db3ef3c5f8a56943fffe632ef53 #v6.0.0
|
||||||
# with:
|
# with:
|
||||||
@ -330,6 +345,25 @@ jobs:
|
|||||||
name: snapshot
|
name: snapshot
|
||||||
path: snapshot
|
path: snapshot
|
||||||
|
|
||||||
|
- name: Debug - Check snapshot structure and binary
|
||||||
|
run: |
|
||||||
|
echo "=== Snapshot directory structure ==="
|
||||||
|
ls -la snapshot/ || echo "snapshot/ not found"
|
||||||
|
find snapshot -type f -name 'syft*' -exec ls -lh {} \;
|
||||||
|
|
||||||
|
echo -e "\n=== Binary permissions ==="
|
||||||
|
ls -l snapshot/linux-build_linux_amd64_v1/syft || echo "Binary not found at expected location"
|
||||||
|
|
||||||
|
echo -e "\n=== File type ==="
|
||||||
|
file snapshot/linux-build_linux_amd64_v1/syft || echo "Cannot check file type"
|
||||||
|
|
||||||
|
echo -e "\n=== Attempt to execute ==="
|
||||||
|
./snapshot/linux-build_linux_amd64_v1/syft version || echo "Binary execution failed with exit code: $?"
|
||||||
|
|
||||||
|
echo -e "\n=== Make executable and retry ==="
|
||||||
|
chmod +x snapshot/linux-build_linux_amd64_v1/syft
|
||||||
|
./snapshot/linux-build_linux_amd64_v1/syft version || echo "Still failed after chmod with exit code: $?"
|
||||||
|
|
||||||
# - name: Download Linux amd64 snapshot
|
# - name: Download Linux amd64 snapshot
|
||||||
# uses: actions/download-artifact@018cc2cf5baa6db3ef3c5f8a56943fffe632ef53 #v6.0.0
|
# uses: actions/download-artifact@018cc2cf5baa6db3ef3c5f8a56943fffe632ef53 #v6.0.0
|
||||||
# with:
|
# with:
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user