diff --git a/.github/workflows/appinspect.yml b/.github/workflows/appinspect.yml index c907c860bb..dd6c26029f 100644 --- a/.github/workflows/appinspect.yml +++ b/.github/workflows/appinspect.yml @@ -18,13 +18,8 @@ jobs: - name: Install Python Dependencies and ContentCTL and Atomic Red Team run: | - if [ -n "${{ vars.CONTENTCTL_VERSION }}" ]; then - echo "Installing contentctl version ${{ vars.CONTENTCTL_VERSION }}" - pip install contentctl==${{ vars.CONTENTCTL_VERSION }} - else - echo "Installing latest contentctl version" - pip install contentctl - fi + echo "- Contentctl version - $(cat requirements.txt)" + pip install -r requirements.txt git clone --depth=1 --single-branch --branch=master https://github.com/redcanaryco/atomic-red-team.git external_repos/atomic-red-team git clone --depth=1 --single-branch --branch=master https://github.com/mitre/cti external_repos/cti diff --git a/.github/workflows/datasource-dependabot.yml b/.github/workflows/datasource-dependabot.yml index 73fd02912e..c2587ec892 100644 --- a/.github/workflows/datasource-dependabot.yml +++ b/.github/workflows/datasource-dependabot.yml @@ -24,7 +24,8 @@ jobs: - name: Install Python Dependencies and ContentCTL and Atomic Red Team run: | - pip install "contentctl>=4.0.0" + echo "- Contentctl version - $(cat requirements.txt)" + pip install -r requirements.txt - name: Run ContentCTL Data source TA validation id: validate diff --git a/.github/workflows/unit-testing.yml b/.github/workflows/unit-testing.yml index ca3433b736..761e9f3c73 100644 --- a/.github/workflows/unit-testing.yml +++ b/.github/workflows/unit-testing.yml @@ -23,13 +23,9 @@ jobs: - name: Install Python Dependencies and ContentCTL run: | python -m pip install --upgrade pip - if [ -n "${{ vars.CONTENTCTL_VERSION }}" ]; then - echo "Installing contentctl version ${{ vars.CONTENTCTL_VERSION }}" - pip install contentctl==${{ vars.CONTENTCTL_VERSION }} - else - echo "Installing latest contentctl version" - pip install contentctl - fi + echo "- Contentctl version - $(cat requirements.txt)" + pip install -r requirements.txt + # Running contentctl test with a few arguments, before running the command make sure you checkout into the current branch of the pull request. This step only performs unit testing on all the changes against the target-branch. In most cases this target branch will be develop # Make sure we check out the PR, even if it actually lives in a fork