diff --git a/.github/workflows/appinspect.yml b/.github/workflows/appinspect.yml index 2f9378f920..61dea4a3fd 100644 --- a/.github/workflows/appinspect.yml +++ b/.github/workflows/appinspect.yml @@ -7,9 +7,6 @@ on: jobs: appinspect: - #Note that the CircleCI job used a Container. The way to do this with Github Actions - #is to first start up a Virtual Machine, then we can by following: - # https://docs.github.com/en/actions/reference/workflow-syntax-for-github-actions#jobsjob_idcontainer runs-on: ubuntu-latest steps: - name: Check out the repository code @@ -17,16 +14,15 @@ jobs: - uses: actions/setup-python@v5 with: - python-version: '3.11' #Available versions here - https://github.com/actions/python-versions/releases easy to change/make a matrix/use pypy - architecture: 'x64' # optional x64 or x86. Defaults to x64 if not specified - - + python-version: '3.11' + architecture: 'x64' + - name: Install Python Dependencies and ContentCTL and Atomic Red Team run: | pip install contentctl>=4.0.0 git clone --depth=1 --single-branch --branch=master https://github.com/redcanaryco/atomic-red-team.git - - name: Running build with enrichments + - name: Running appinspect with enrichments env: APPINSPECTUSERNAME: "${{ secrets.APPINSPECTUSERNAME }}" APPINSPECTPASSWORD: "${{ secrets.APPINSPECTPASSWORD }}" diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 785fc9db36..aff5f3c37a 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -7,9 +7,6 @@ on: - develop jobs: build: - #Note that the CircleCI job used a Container. The way to do this with Github Actions - #is to first start up a Virtual Machine, then we can by following: - # https://docs.github.com/en/actions/reference/workflow-syntax-for-github-actions#jobsjob_idcontainer runs-on: ubuntu-latest steps: - name: Check out the repository code @@ -17,9 +14,9 @@ jobs: - uses: actions/setup-python@v5 with: - python-version: '3.11' #Available versions here - https://github.com/actions/python-versions/releases easy to change/make a matrix/use pypy - architecture: 'x64' # optional x64 or x86. Defaults to x64 if not specified - + python-version: '3.11' + architecture: 'x64' + - name: Install Python Dependencies and ContentCTL and Atomic Red Team run: | pip install contentctl>=4.0.0 diff --git a/.github/workflows/datasource-ta-check.yml b/.github/workflows/datasource-ta-check.yml new file mode 100644 index 0000000000..20e50d5841 --- /dev/null +++ b/.github/workflows/datasource-ta-check.yml @@ -0,0 +1,27 @@ +name: datasource-ta-check +on: + pull_request_target: + push: + branches: + - develop + +jobs: + datasource-ta-check: + runs-on: ubuntu-latest + continue-on-error: true + steps: + - name: Check out the repository code + uses: actions/checkout@v4 + + - uses: actions/setup-python@v5 + with: + python-version: '3.11' + architecture: 'x64' + + - name: Install Python Dependencies and contentctl + run: | + pip install contentctl>=4.0.0 + + - name: Run datasource TA check + run: | + contentctl validate --data-source-TA-validation \ No newline at end of file