Skip to content

Commit

Permalink
fix: bearer does not upload sarif report (actions#2178)
Browse files Browse the repository at this point in the history
* fix: bearer does not upload sarif report

When issues are found the exit code is non zero and so the github action aborts before uploading the sarif report. 

This change fixes that issues.

* chore: update bearer.yml following review

---------

Co-authored-by: Cédric Fabianski <[email protected]>
Co-authored-by: Cédric Fabianski <[email protected]>
  • Loading branch information
3 people authored Nov 22, 2023
1 parent c6c4452 commit 16ea338
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions code-scanning/bearer.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,10 @@
# This workflow file requires a free account on Bearer.com to manage findings, notifications and more.
# This workflow uses actions that are not certified by GitHub.
# They are provided by a third-party and are governed by
# separate terms of service, privacy policy, and support
# documentation.
#
# This workflow file requires a free account on Bearer.com to manage findings, notifications and more.
# See https://docs.bearer.com/guides/bearer-cloud/

name: Bearer

on:
Expand All @@ -27,11 +30,12 @@ jobs:
# Scan code using Bearer CLI
- name: Run Report
id: report
uses: bearer/bearer-action@v2
uses: bearer/bearer-action@828eeb928ce2f4a7ca5ed57fb8b59508cb8c79bc
with:
api-key: ${{ secrets.BEARER_TOKEN }}
format: sarif
output: results.sarif
exit-code: 0
# Upload SARIF file generated in previous step
- name: Upload SARIF file
uses: github/codeql-action/upload-sarif@v2
Expand Down

0 comments on commit 16ea338

Please sign in to comment.