Endor Labs Scan #22
Workflow file for this run
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
name: Endor Labs Scan | |
on: | |
push: | |
branches: [ main ] | |
pull_request: | |
branches: [ main ] | |
workflow_dispatch: | |
inputs: | |
tenant_name: | |
description: "Enter your Endor Labs tenant name:" | |
required: true | |
api: | |
description: "Endor Labs API" | |
required: true | |
default: "https://api.endorlabs.com" | |
jobs: | |
scan: | |
permissions: | |
contents: read | |
id-token: write | |
runs-on: ubuntu-latest | |
steps: | |
- name: setup namespace | |
run: | | |
NAMESPACE=$(jq -r '.inputs.tenant_name' $GITHUB_EVENT_PATH) | |
echo "::add-mask::$NAMESPACE" | |
echo NAMESPACE=$NAMESPACE >> $GITHUB_ENV | |
- name: Checkout Repository | |
uses: actions/checkout@v3 | |
- name: Setup Java | |
uses: actions/setup-java@v3 | |
with: | |
distribution: 'microsoft' | |
java-version: '17' | |
cache: 'maven' | |
- name: Compile Package | |
run: mvn clean install | |
- name: Run endorctl | |
uses: endorlabs/[email protected] | |
with: | |
namespace: ${{ github.event.inputs.tenant_name }} | |
enable_github_action_token: true | |
scan_summary_output_type: "table" | |
additional_args: "--as-default-branch --api=${{ github.event.inputs.api}}" | |
pr: false |