Skip to the content.

Azure Pipelines Templates

These samples show two common ways to run the Lightning Flow Scanner from Azure DevOps. Each template installs the Salesforce CLI inside the official salesforce/cli:latest-slim container, adds the lightning-flow-scanner plugin, executes sf flow:scan, and uploads a SARIF report as a build artifact so violations can be reviewed with the SARIF Results Viewer extension.

Included templates

How to use these templates

  1. Copy the desired YAML file into your Azure DevOps repo (commonly under .azure-pipelines/ or at the root).
  2. In Azure DevOps, create a new pipeline and reference the YAML path when prompted.
  3. For the changed-files variant, update the variables block if your default branch is not origin/main, or if you want to store diffs elsewhere.
  4. (Optional) Install the SARIF SAST Scans Tab extension so teams can review results.sarif directly within the pipeline summary.

Adapt these templates as needed: add caching, integrate test stages, or call other CLI commands before/after the flow scan to match your organization’s release process.