From faa286d5b29d03648b4dbe3a76dafe2c9d0e0cfc Mon Sep 17 00:00:00 2001 From: truptilangalia-crest <79827058+truptilangalia-crest@users.noreply.github.com> Date: Thu, 17 Mar 2022 15:25:20 +0530 Subject: [PATCH] Fixed issue with github action workflow for enrich-detections --- .github/workflows/build-and-validate.yml | 18 ++++++++---------- 1 file changed, 8 insertions(+), 10 deletions(-) diff --git a/.github/workflows/build-and-validate.yml b/.github/workflows/build-and-validate.yml index c9460f3505..546530ec64 100644 --- a/.github/workflows/build-and-validate.yml +++ b/.github/workflows/build-and-validate.yml @@ -424,16 +424,14 @@ jobs: run: | source venv/bin/activate python3 contentctl.py -p . docgen -o docs - - # this step is creating some TOKEN issues while tagging a build, commenting this out for now - # - name: Enrich detections with TAs - # env: - # GITHUB_ACCESS_TOKEN: ${{ secrets.GITHUB_TOKEN }} - # run: | - # source venv/bin/activate - # python3 -m pip install -r security_content_automation/requirements.txt - # python3 security_content_automation/enrich_detections.py + - name: Enrich detections with TAs + env: + GITHUB_ACCESS_TOKEN: ${{ secrets.GIT_ACCESS_TOKEN }} + run: | + source venv/bin/activate + python3 -m pip install -r security_content_automation/requirements.txt + python3 security_content_automation/enrich_detections.py - name: Update github with new docs and package bits run: | @@ -583,4 +581,4 @@ jobs: if [ "$API_STATUS" != "200" ]; then echo "Error [Security Content API status: $API_STATUS]" exit 1 - fi \ No newline at end of file + fi