Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 2 additions & 7 deletions .github/workflows/appinspect.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
3 changes: 2 additions & 1 deletion .github/workflows/datasource-dependabot.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
10 changes: 3 additions & 7 deletions .github/workflows/unit-testing.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down