Skip to content

Instantly share code, notes, and snippets.

@danifitz
Created April 25, 2022 15:46
Show Gist options
  • Save danifitz/da88dcbae952173565bfead293db4629 to your computer and use it in GitHub Desktop.
Save danifitz/da88dcbae952173565bfead293db4629 to your computer and use it in GitHub Desktop.
lacework-container-scan-azure-devops-with-dockerized-scanner
trigger:
- main
pool:
vmImage: ubuntu-latest
steps:
- script: |
docker pull ubuntu:latest
docker run \
-e LW_ACCOUNT_NAME=$LW_ACCOUNT_NAME \
-e LW_ACCESS_TOKEN=$LW_ACCESS_TOKEN \
-v /var/run/docker.sock:/var/run/docker.sock \
lacework/lacework-inline-scanner:latest \
image evaluate ubuntu latest \
--build-id $(Build.SourceVersion) --build-plan myBuildPlan
env:
LW_ACCOUNT_NAME: $(LW_ACCOUNT_NAME)
LW_ACCESS_TOKEN: $(LW_ACCESS_TOKEN)
displayName: 'lacework vuln scan'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment