Skip to content

Commit

Permalink
Update endorlabs.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
dstiliadis authored Feb 12, 2024
1 parent a172fb7 commit 8f9fa8d
Showing 1 changed file with 3 additions and 23 deletions.
26 changes: 3 additions & 23 deletions .github/workflows/endorlabs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,9 @@ jobs:
with:
distribution: microsoft
java-version: "17"

- name: Compile Package
run: mvn clean install

- name: Endor Labs Workflow Dispatch
if: ${{ github.event_name == 'workflow_dispatch' }}
Expand All @@ -60,26 +63,3 @@ jobs:
scan_secrets: "true"
scan_git_logs: "true"
additional_args: "--as-default-branch --api=${{ github.event.inputs.api }}"

- name: Endor Labs Scan PR to Default Branch
if: github.event_name == 'pull_request'
uses: endorlabs/github-action@736c93ea52b002f2ac229aaeb273b102cbf6fe12
with:
namespace: "example" # Update with your Endor Labs namespace to perform pull request scanning.
scan_summary_output_type: "table"
pr: "true"
enable_github_action_token: "true"
enable_pr_comments: "true"
scan_dependencies: "true"
scan_secrets: "true"

- name: Endor Labs Watch
if: ${{ github.event_name == 'push' }}
uses: endorlabs/github-action@736c93ea52b002f2ac229aaeb273b102cbf6fe12
with:
namespace: "example" # Update with your Endor Labs namespace to scan changes.
scan_summary_output_type: "table"
pr: "false"
enable_github_action_token: "true"
scan_dependencies: "true"
scan_secrets: "true"

0 comments on commit 8f9fa8d

Please sign in to comment.