BitBucket Pipelines migration
For users of snyk/snyk-scan < v1.0.0
snyk/snyk-scan < v1.0.0For users of snyk/snyk-scan >= v1.0.0
snyk/snyk-scan >= v1.0.0Create your own custom image
Upgrade to a supported Snyk Image
# Example bitbucket-pipelines.yml using `snyk/snyk:node-16` Snyk Image
# Template NodeJS build
# This template allows you to validate your NodeJS code.
# The workflow allows running tests and code linting on the default branch.
image: atlassian/default-image:latest
pipelines:
default:
- parallel:
- step:
name: Build
caches:
- node
script:
- npm install
- step:
name: Snyk scan
script:
- pipe: snyk/snyk-scan:1.0.1
variables:
SNYK_TOKEN: $SNYK_TOKEN
LANGUAGE: "node-16" # <------ Using the `snyk/snyk:node-16` Snyk Image
EXTRA_ARGS: "--all-projects" # Optional
DEBUG: "true" # OptionalDownload and install Snyk CLI directly
Last updated
Was this helpful?

