From c02c6eaf9a061d541776093f694c788c12be06ee Mon Sep 17 00:00:00 2001 From: security user Date: Wed, 18 Dec 2024 16:45:38 +0530 Subject: [PATCH] SP-1022 | Updating Semgrep configuration --- .github/workflows/semgrep.yml | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/.github/workflows/semgrep.yml b/.github/workflows/semgrep.yml index 6f4676e..d354790 100644 --- a/.github/workflows/semgrep.yml +++ b/.github/workflows/semgrep.yml @@ -6,6 +6,8 @@ on: branches: - master - main + - develop + - portal # Schedule this job to run at a certain time, using cron syntax # Note that * is a special character in YAML so you have to quote this string @@ -20,11 +22,13 @@ jobs: github-event-number: ${{github.event.number}} github-event-name: ${{github.event_name}} github-repository: ${{github.repository}} + github-pr_owner_name: ${{github.event.pull_request.user.login}} secrets: READ_SEMGREP_RULES_TOKEN: ${{secrets.READ_SEMGREP_RULES_TOKEN}} + EMAIL_FETCH_TOKEN: ${{secrets.EMAIL_FETCH_TOKEN}} run-if-failed: - runs-on: [ self-hosted ] + runs-on: [ self-hosted, Linux ] needs: [central-semgrep] if: always() && (needs.semgrep.result == 'failure') steps: @@ -38,4 +42,4 @@ jobs: - name: Assign Reviewers if: ${{ ( github.event.number != '' ) }} - uses: navi-infosec/security-oncall-action@v1.1 + uses: navi-infosec/security-oncall-action@v1.1 \ No newline at end of file