adding requirements.txt

This commit is contained in:
Bhavin Patel
2025-05-08 15:05:07 -07:00
parent 23d0f236b5
commit ebecdfd8a4
5 changed files with 8 additions and 7 deletions
+2 -2
View File
@@ -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
+2 -2
View File
@@ -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
+1 -1
View File
@@ -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
+2 -2
View File
@@ -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
+1
View File
@@ -0,0 +1 @@
contentctl==5.5.1