mirror of
https://github.com/splunk/security_content
synced 2026-06-08 17:32:49 +00:00
9c183fa110
--------- Co-authored-by: pyth0n1c <87383215+pyth0n1c@users.noreply.github.com> Co-authored-by: Nasreddine Bencherchali <nasreddineb@splunk.com>
40 lines
1.3 KiB
YAML
40 lines
1.3 KiB
YAML
name: build
|
|
on:
|
|
pull_request:
|
|
types: [opened, reopened, synchronize]
|
|
push:
|
|
branches:
|
|
- develop
|
|
jobs:
|
|
build:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- name: Check out the repository code
|
|
uses: actions/checkout@v6
|
|
|
|
- uses: actions/setup-python@v6
|
|
with:
|
|
python-version: '3.11'
|
|
architecture: 'x64'
|
|
|
|
- name: Install Python Dependencies and ContentCTL and Atomic Red Team
|
|
run: |
|
|
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-attack/attack-stix-data external_repos/cti
|
|
|
|
- name: Running build with enrichments
|
|
run: |
|
|
contentctl build --enrichments --enforce_deprecation_mapping_requirement
|
|
mkdir artifacts
|
|
mv dist/DA-ESS-ContentUpdate-latest.tar.gz artifacts/
|
|
|
|
- name: store_artifacts
|
|
uses: actions/upload-artifact@v7
|
|
with:
|
|
name: content-latest
|
|
path: |
|
|
artifacts/DA-ESS-ContentUpdate-latest.tar.gz
|
|
dist/api
|