diff --git a/.github/workflows/appinspect.yml b/.github/workflows/appinspect.yml index b3ef7e14ee..467d483743 100644 --- a/.github/workflows/appinspect.yml +++ b/.github/workflows/appinspect.yml @@ -20,10 +20,10 @@ jobs: run: | if [ -n "${{ vars.CONTENTCTL_VERSION }}" ]; then echo "Installing contentctl version ${{ vars.CONTENTCTL_VERSION }}" - pip install contentctl==${{ vars.CONTENTCTL_VERSION }} + pip install -r requirements.txt else echo "Installing latest contentctl version" - pip install contentctl + pip install -r requirements.txt fi 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/build.yml b/.github/workflows/build.yml index e381aad16d..f0b2a059f1 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -21,10 +21,10 @@ jobs: run: | if [ -n "${{ vars.CONTENTCTL_VERSION }}" ]; then echo "Installing contentctl version ${{ vars.CONTENTCTL_VERSION }}" - pip install contentctl==${{ vars.CONTENTCTL_VERSION }} + pip install -r requirements.txt else echo "Installing latest contentctl version" - pip install contentctl + pip install -r requirements.txt fi 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..d5dbe82538 100644 --- a/.github/workflows/datasource-dependabot.yml +++ b/.github/workflows/datasource-dependabot.yml @@ -24,7 +24,7 @@ jobs: - name: Install Python Dependencies and ContentCTL and Atomic Red Team run: | - pip install "contentctl>=4.0.0" + 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 659db6358f..58c4965837 100644 --- a/.github/workflows/unit-testing.yml +++ b/.github/workflows/unit-testing.yml @@ -25,10 +25,10 @@ jobs: 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 }} + pip install -r requirements.txt else echo "Installing latest contentctl version" - pip install contentctl + pip install -r requirements.txt fi # 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 diff --git a/requirements.txt b/requirements.txt new file mode 100644 index 0000000000..7453e526b3 --- /dev/null +++ b/requirements.txt @@ -0,0 +1 @@ +contentctl==5.5.1 \ No newline at end of file