Endor Labs Scan #17
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: | |
workflow_dispatch: | |
inputs: | |
api: | |
description: "Enter the target Endor Labs API" | |
required: true | |
type: choice | |
default: https://api.endorlabs.com | |
options: | |
- https://api.staging.endorlabs.com | |
- https://api.endorlabs.com | |
tenant_name: | |
description: "Enter your Endor Labs namespace?" | |
required: true | |
type: string | |
jobs: | |
scan-repo: | |
runs-on: ubuntu-latest | |
permissions: | |
id-token: write | |
contents: read | |
steps: | |
- name: Setup namespace Environment Variables | |
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 Node | |
uses: actions/setup-node@v4 | |
with: | |
node-version: 18 | |
cache: 'yarn' | |
cache-dependency-path: yarn.lock | |
- name: Yarn Install | |
run: yarn install --frozen-lockfile | |
- name: Endor Labs Workflow Dispatch | |
if: ${{ github.event_name == 'workflow_dispatch' }} | |
uses: endorlabs/github-action@736c93ea52b002f2ac229aaeb273b102cbf6fe12 | |
with: | |
namespace: ${{ github.event.inputs.tenant_name }} | |
scan_summary_output_type: "table" | |
pr: "false" | |
enable_github_action_token: "true" | |
scan_dependencies: "true" | |
scan_secrets: "true" | |
scan_git_logs: "true" | |
additional_args: "--as-default-branch --api=${{ github.event.inputs.api }}" |