Skip to content

Commit

Permalink
add var.SEMGREP_NO_FAIL option
Browse files Browse the repository at this point in the history
  • Loading branch information
spbolton committed Nov 11, 2024
1 parent 31eee34 commit ae3fc78
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion .github/workflows/cicd_comp_semgrep-phase.yml
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,7 @@ jobs:
runs-on: ubuntu-20.04
env:
SEMGREP_APP_TOKEN: ${{ secrets.SEMGREP_APP_TOKEN }}
NO_FAIL: ${{ vars.SEMGREP_NO_FAIL || 'false' }}
container:
image: semgrep/semgrep
# Skip any PR created by dependabot to avoid permission issues:
Expand All @@ -69,4 +70,8 @@ jobs:
- name: Semgrep Scan
run: |
unzip -o dependency-tree.zip
semgrep ci
if [ "${NO_FAIL}" = "true" ]; then
semgrep ci || echo "Semgrep completed with errors, but continuing due to NO_FAIL=true"
else
semgrep ci
fi

0 comments on commit ae3fc78

Please sign in to comment.