mirror of
https://github.com/splunk/security_content
synced 2026-06-08 17:32:49 +00:00
adding requirements.txt
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -0,0 +1 @@
|
||||
contentctl==5.5.1
|
||||
Reference in New Issue
Block a user