1.0.6 • Published 2 years ago

snyk-to-bb v1.0.6

Weekly downloads
-
License
-
Repository
-
Last release
2 years ago

Snyk to BitBucket

A script to create Snyk Open Source and Snyk Code reports on BitBucket pull requests

This will not cause the pull request to fail, but rather will bring visibility to existing vulnerabilities in the code base

Getting Started

Install:

npm i -g snyk-to-bb

BitBucket Configuration:

Create Repository Variables BB_USER and BB_APP_PASSWORD corresponding to a username / app password with BitBucket API access

Usage in BitBucket Pipeline

image: atlassian/default-image:3

pipelines:
  pull-requests:
    '**': # any source branch 
      - step:
          name: Run Snyk 
          script:
            - npm i -g snyk-to-bb
            - npm i -g snyk
            - snyk test --json | npx snyk-to-bb --user $BB_USER --password $BB_APP_PASSWORD --repo $BITBUCKET_REPO_SLUG --commit $BITBUCKET_COMMIT
            - snyk code test --json | npx snyk-to-bb --user $BB_USER --password $BB_APP_PASSWORD --repo $BITBUCKET_REPO_SLUG --commit $BITBUCKET_COMMIT

Sample Snyk Open Source Report

Sample Snyk Code Report

1.0.6

2 years ago

1.0.5

2 years ago

1.0.4

2 years ago

1.0.3

2 years ago

1.0.2

2 years ago

1.0.1

2 years ago