forked from bridgecrewio/terragoat
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
e0c40fe
commit 7e6ad60
Showing
1 changed file
with
33 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
name: Bridgecrew | ||
on: | ||
pull_request: | ||
push: | ||
branches: | ||
- master | ||
jobs: | ||
scan: | ||
runs-on: ubuntu-latest | ||
permissions: | ||
contents: read # for actions/checkout to fetch code | ||
security-events: write # for github/codeql-action/upload-sarif to upload SARIF results | ||
|
||
steps: | ||
- uses: actions/checkout@v2 | ||
|
||
- name: Run Prisma Cloud | ||
id: prisma-cloud | ||
uses: bridgecrewio/bridgecrew-action@master | ||
with: | ||
api-key: ${{ secrets.BC_API_KEY }} | ||
directory: terraform/ | ||
#soft_fail: true | ||
|
||
- name: Upload SARIF file | ||
uses: github/codeql-action/upload-sarif@v2 | ||
|
||
# Results are generated only on a success or failure | ||
# this is required since GitHub by default won't run the next step | ||
# when the previous one has failed. Alternatively, enable soft_fail in BC action. | ||
if: success() || failure() | ||
with: | ||
sarif_file: results.sarif |