Skip to main content
Configure scan workflows to define how your projects are scanned. You can assign scan profiles to scanning steps and control their order of execution, and manage these settings in the Endor Labs user interface.

Set up a scan workflow

Set up a scan workflow to define scanning steps, assign profiles, and manage how your projects are scanned.
  1. Select Projects from the left sidebar.
  2. Select the project for which you want to configure a scan workflow.
  3. Select Settings > Scan Workflow.
  4. Click Add Step to add an existing scan profile.
  5. Enter a descriptive name in Step title to describe the workflow step.
  6. Select a scan profile from your namespace for this step.
  7. Click Save to add this step, and repeat to add as many steps as you need.
  8. Turn on Enabled for each step that you want to run during the scan. If you turn off every step, Endor Labs skips the scan. See Scan history to review skipped scans.
  9. Configure additional options in GitHub App features. See GitHub App features for more information.
  10. Click Save.

Set up GitHub App features

Configure GitHub App features in scan workflows to enable pull request scanning, AI security reviews, and custom scan settings for your projects.
  1. Select the pull request flags you want to enable for the scan workflow.
    • Pull request scans: Automatically scan changes in the pull request.
    • Pull request comments: Add scan results as comments in the pull request.
  2. Select the AI Security Review settings that you want to enable for the scan workflow.
    • AI Security Review Scans: Automatically analyze code repositories with AI, detect vulnerabilities and misconfigurations, and generate detailed security reports.
    • Disable Code Summary: Exclude the code summary from the AI Security Review scan report.
    • Enter a Custom Prompt to modify how AI Code Security Review detects and categorizes security related changes. You can use this only when AI Security Review Scans is enabled.
  3. Select Disable code snippet storage for SAST to exclude code summary from the AI Security Review scan report. See automated scan parameters to learn more.
  4. Enter any additional environment variables, if required. Endor Labs passes only variables that start with ENDOR_, and ignores some of those too. See Global flags and environment variables for available environment variables, and Environment variables not supported in scan profiles for the ones that scan profiles ignore. To control default branch detection for the workflow, set ENDOR_SCAN_TRACK_DEFAULT_BRANCH here. Workflow steps ignore ENDOR_SCAN_AS_DEFAULT_BRANCH and log a warning, because the workflow sets the default branch.
  5. Click Save.
GitHub App feature settings defined in the scan workflow take precedence over those specified in the individual scan profiles.

Customize scan workflow

Customize the scan workflow to control which profiles, checks, and features are applied to your project.

Edit scan workflow

To edit the steps in your scan workflow:
  1. Select the project for which you want to configure a scan workflow.
  2. Select Settings > Scan Workflow.
  3. Click Edit Step and update the step title.
  4. Select a different scan profile to replace the one associated with the step.
  5. Click Save.

Remove a step from scan workflow

To remove a step from the scan workflow:
  1. Select the project for which you want to configure a scan workflow.
  2. Select Settings > Scan Workflow.
  3. Click Remove.