Skip to content

Commit

Permalink
doc: fix uses of continue-on-error
Browse files Browse the repository at this point in the history
  • Loading branch information
gotbadger committed Sep 19, 2023
1 parent 4f9beb1 commit 83956a9
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions docs/guides/github-action.njk
Original file line number Diff line number Diff line change
Expand Up @@ -143,7 +143,6 @@ permissions:
jobs:
rule_check:
runs-on: ubuntu-latest
continue-on-error: true
steps:
- uses: actions/checkout@v3
- name: Run Report
Expand Down Expand Up @@ -177,9 +176,12 @@ permissions:
jobs:
rule_check:
runs-on: ubuntu-latest
continue-on-error: true
steps:
- uses: actions/checkout@v3
+ # install reviewdog
- uses: reviewdog/action-setup@v1
with:
reviewdog_version: latest
- name: Run Report
id: report
uses: bearer/bearer-action@v2
Expand All @@ -188,11 +190,9 @@ jobs:
format: rdjson
output: rd.json
diff: true
+ # add steps to setup and run reviewdog
- uses: reviewdog/action-setup@v1
with:
reviewdog_version: latest
+ # always run reviewdog otherwise the step will be skiped by github when a scan fails
- name: Run reviewdog
if: always()
env:
REVIEWDOG_GITHUB_API_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
Expand All @@ -217,7 +217,6 @@ permissions:
jobs:
rule_check:
runs-on: ubuntu-latest
continue-on-error: true
steps:
- uses: actions/checkout@v3
- name: Run Report
Expand All @@ -227,6 +226,7 @@ jobs:
format: gitlab-sast
output: gl-sast-report.json
- name: Defect Dojo
if: always()
env:
DD_TOKEN: ${{ secrets.DD_TOKEN}}
DD_APP: ${{ secrets.DD_APP}}
Expand Down

0 comments on commit 83956a9

Please sign in to comment.