diff --git a/download-artifacts.sh b/download-artifacts.sh index e5e218e..f8e3fff 100644 --- a/download-artifacts.sh +++ b/download-artifacts.sh @@ -88,6 +88,13 @@ unzip_files() { rm -rf "${tmp_dir}" ;; + # catch-all for any zip file + # TODO: With the commands at the end of this script, only the needed files will be copied over. + # But we should get specific about which files to ignore. + ./*.zip) + unzip -o "${zip_path}" -d "${output_path}" + ;; + *) echo "unexpected file path: ${zip_path}" exit 1 @@ -183,4 +190,4 @@ copy_files "gha_delegator-binary-linux-amd64-" "${repo_path}/cli/slsa-verifier/t # Maven builder copy_files "gha_maven-binary-linux-amd64-" "${repo_path}/cli/slsa-verifier/testdata/gha_maven/${version}" # gradle builder -copy_files "gha_gradle-binary-linux-amd64-" "${repo_path}/cli/slsa-verifier/testdata/gha_gradle/${version}" \ No newline at end of file +copy_files "gha_gradle-binary-linux-amd64-" "${repo_path}/cli/slsa-verifier/testdata/gha_gradle/${version}"