Bitbucket PR gating using Local Scanner
image: aikidosecurity/local-scanner:latest
pipelines:
pull-requests:
"**": # this applies the pipeline to all pull requests
- step:
name: Aikido PR Gating Scan
script:
- >-
aikido-local-scanner scan ./
--apikey $AIKIDO_API_KEY
--repositoryname $BITBUCKET_REPO_SLUG
--branchname $BITBUCKET_BRANCH
--gating-mode pr
--fail-on critical
--base-commit-id $BITBUCKET_PR_DESTINATION_COMMIT
--head-commit-id $BITBUCKET_COMMITLast updated
Was this helpful?