Skip to content

Instantly share code, notes, and snippets.

@prabhu
Last active July 26, 2020 14:16
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save prabhu/a544d9cbda2f74baff068018fcce374f to your computer and use it in GitHub Desktop.
Save prabhu/a544d9cbda2f74baff068018fcce374f to your computer and use it in GitHub Desktop.
Bitbucket pipeline step to integrate ShiftLeft Insights script
- step:
name: ShiftLeft NextGen Analysis
script:
- curl https://cdn.shiftleft.io/download/sl > $HOME/sl && chmod a+rx $HOME/sl
- $HOME/sl analyze --no-diagnostic --force --app ${BITBUCKET_REPO_SLUG} --tag branch=${BITBUCKET_BRANCH} --go --cpg $(pwd)
- step:
image: python:3.7-slim
name: ShiftLeft NG SAST Code Insights
script:
- pip install requests
- python sl-insights.py
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment