Skip to content

Commit a4a90fc

Browse files
committed
update install steos
1 parent 2dcadfe commit a4a90fc

File tree

3 files changed

+7
-15
lines changed

3 files changed

+7
-15
lines changed

.github/workflows/appinspect.yml

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -18,13 +18,8 @@ jobs:
1818

1919
- name: Install Python Dependencies and ContentCTL and Atomic Red Team
2020
run: |
21-
if [ -n "${{ vars.CONTENTCTL_VERSION }}" ]; then
22-
echo "Installing contentctl version ${{ vars.CONTENTCTL_VERSION }}"
23-
pip install contentctl==${{ vars.CONTENTCTL_VERSION }}
24-
else
25-
echo "Installing latest contentctl version"
26-
pip install contentctl
27-
fi
21+
echo "- Contentctl version - $(cat requirements.txt)"
22+
pip install -r requirements.txt
2823
git clone --depth=1 --single-branch --branch=master https://github.com/redcanaryco/atomic-red-team.git external_repos/atomic-red-team
2924
git clone --depth=1 --single-branch --branch=master https://github.com/mitre/cti external_repos/cti
3025

.github/workflows/datasource-dependabot.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,8 @@ jobs:
2424

2525
- name: Install Python Dependencies and ContentCTL and Atomic Red Team
2626
run: |
27-
pip install "contentctl>=4.0.0"
27+
echo "- Contentctl version - $(cat requirements.txt)"
28+
pip install -r requirements.txt
2829
2930
- name: Run ContentCTL Data source TA validation
3031
id: validate

.github/workflows/unit-testing.yml

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -23,13 +23,9 @@ jobs:
2323
- name: Install Python Dependencies and ContentCTL
2424
run: |
2525
python -m pip install --upgrade pip
26-
if [ -n "${{ vars.CONTENTCTL_VERSION }}" ]; then
27-
echo "Installing contentctl version ${{ vars.CONTENTCTL_VERSION }}"
28-
pip install contentctl==${{ vars.CONTENTCTL_VERSION }}
29-
else
30-
echo "Installing latest contentctl version"
31-
pip install contentctl
32-
fi
26+
echo "- Contentctl version - $(cat requirements.txt)"
27+
pip install -r requirements.txt
28+
3329
3430
# 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
3531
# Make sure we check out the PR, even if it actually lives in a fork

0 commit comments

Comments
 (0)