- Choose New pipeline in upper right hand corner.
- Choose the appropriate repo type and select the desired repository.
- Choose Starter pipeline
- Access the YAML pipeline editor within Azure Pipelines by following the YAML pipeline editor guide.
- Copy the relevant code snippet provided below into the Azure Pipelines YAML editor.
- Configure secrets for the following under Variables:
- SLS_CLIENT_ID & SLS_CLIENT_SECRET - used to authenticate to Azure Container Registry and provided by SLS
- SLS_SCAN_KEY - Can be found under Product Data Sources -> Start Left Scanner -> Scan Key (It is also available on the Asset details page.) The job will pass the SLS_SCAN_KEY to the scanner as an environment variable, taken from a secret Pipeline Variable. See the Azure DevOps documentation for more information on adding a secret Pipeline Variable.
- Save the code snippet.