From 1c60954e30b6b95cc087c925f61ba78f02cbc90e Mon Sep 17 00:00:00 2001 From: Eric Date: Tue, 1 Apr 2025 13:57:44 -0700 Subject: [PATCH] download attack data cache for testing and validation purposes --- .github/workflows/unit-testing.yml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.github/workflows/unit-testing.yml b/.github/workflows/unit-testing.yml index 3071d016f9..529bb900dc 100644 --- a/.github/workflows/unit-testing.yml +++ b/.github/workflows/unit-testing.yml @@ -45,6 +45,8 @@ jobs: git fetch origin pull/${{ github.event.pull_request.number }}/head:new_branch_for_testing #We must specifically get the PR's target branch from security_content, not the one that resides in the fork PR's forked repo git switch new_branch_for_testing + #Download all attack_data for testing purposes + mkdir -p external_repos/ && curl https://attack-range-attack-data.s3.us-west-2.amazonaws.com/attack_data.tar.zstd | zstd --decompress - | tar -x -C external_repos contentctl test --disable-tqdm --no-enable-integration-testing --container-settings.num-containers 2 --post-test-behavior never_pause mode:changes --mode.target-branch ${{ github.base_ref }} echo "contentctl test - COMPLETED" continue-on-error: true