SP-1022 | Updating Semgrep configuration
This commit is contained in:
6
.github/workflows/semgrep.yml
vendored
6
.github/workflows/semgrep.yml
vendored
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user