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@v5 - 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/cti 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@v4 with: name: content-latest path: | artifacts/DA-ESS-ContentUpdate-latest.tar.gz