chainguard-dev / malcontent

#supply #chain #attack #detection
Apache License 2.0
446 stars 31 forks source link

Update samples commit, refresh test data, fix refresh-test-data on macOS #508

Closed egibs closed 1 month ago

egibs commented 1 month ago

Closes: #503, #505

This PR updates the samples commit to the latest ref and fixes .xz archive extraction where some archives contain archives. If this is the case, we'll decompress the .xz file and then extract the resulting archive via tar xJvf.

I also fixed the test data refresh on macOS by re-adding -n1 to the final xargs command.

It's likely that we'll see some JSON test failures so those will need to be resolved before this can merge.

egibs commented 1 month ago

Opened https://github.com/chainguard-dev/malcontent-samples/pull/11 to fix the remaining tests (incorrect directory name is causing issues).