Skip to content

improved demo workflow #45

improved demo workflow

improved demo workflow #45

Workflow file for this run

name: Endor Labs Scan
on:
push:
branches: [ main ]
pull_request:
branches: [ main ]
workflow_dispatch:
inputs:
WEBHOOK_TOKEN:
description: "Enter your Endor Labs tenant name:"
required: true
jobs:
scan:
permissions:
security-events: write
contents: read
id-token: write
runs-on: ubuntu-latest
env:
WEBHOOK_TOKEN: ${{ github.event.inputs.WEBHOOK_TOKEN }}
steps:
- 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/github-action@v1.1.2
with:
namespace: $WEBHOOK_TOKEN
enable_github_action_token: true
scan_summary_output_type: "table"
additional_args: "--as-default-branch"
pr: false