Skip to content

Commit

Permalink
Update main.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
IAmATeaPot418 authored Nov 15, 2023
1 parent 4c47d47 commit 642c295
Showing 1 changed file with 14 additions and 4 deletions.
18 changes: 14 additions & 4 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,13 +27,23 @@ jobs:

- name: Build release package
run: mvn -B clean install


- name: Scan with Endor Labs

- name: Endor Labs Scan
if: ${{ github.event_name == 'push' || github.event_name == 'workflow_dispatch' }}
uses: endorlabs/[email protected]
with:
namespace: "endorlabs-hearts-github"
pr: "false"
sarif_file: endor-labs.sarif

- name: Endor Labs Scan PR to Default Branch
if: github.event_name == 'pull_request'
uses: endorlabs/github-action@main
with:
namespace: endorlabs-hearts-github
namespace: "endorlabs-hearts-github"
pr: "true"
enable_pr_comments: true
github_token: ${{ secrets.GITHUB_TOKEN }}"
sarif_file: endor-labs.sarif

- name: Upload SARIF to github
Expand Down

0 comments on commit 642c295

Please sign in to comment.