SafeDep Vet Pipe for policy driven vetting of open source dependencies.
Add the following snippet to the script section of your bitbucket-pipelines.yml file:
script:
- pipe: safedep/vet-pipe:v1.3.0
variables:
# POLICY: './vet/policy.yml'
# CLOUD: true
# CLOUD_KEY: '30fj30fj03f0j0j'
# CLOUD_TENANT: 'default-team.domain.safedep.io'vet-pipe includes a feature to scan only the packages changed within a Pull Request. However, this functionality relies on environment variables — such as BITBUCKET_PR_DESTINATION_BRANCH — which are only populated when using Bitbucket's pull-requests pipeline trigger.
To enable changed packages scanning for PRs while still supporting Push and Merge events, you must configure both the pull-requests and default (or branches) triggers. The most efficient way to implement this without code redundancy is as follows:
image: alpine:latest
definitions:
steps:
- step: &safedep-vet-pipe
name: "Execute Vet Scan Pipe"
script:
- pipe: safedep/vet-pipe:v1.3.0
variables:
# POLICY: './vet/policy.yml'
pipelines:
branches:
main:
- step: *safedep-vet-pipe
pull-requests:
'**':
- step: *safedep-vet-pipe| Name | Type | Description | Default |
|---|---|---|---|
POLICY |
string |
Path to a policy file. | '' |
VET_VERSION (not supported yet) |
string |
The version of vet to use for the scan. |
latest |
CLOUD |
boolean |
Whether to synchronize the report with the SafeDep cloud. | false |
CLOUD_KEY |
string |
The API key to use for synchronizing the report with the SafeDep cloud. | '' |
CLOUD_TENANT |
string |
The tenant ID to use for synchronizing the report with the SafeDep cloud. | '' |
EXCEPTION_FILE |
string |
Path to an exception file. | '' |
TRUSTED_REGISTRIES |
string |
A comma-separated list of trusted registry base URLs. | '' |
TIMEOUT |
integer |
Timeout in seconds for vet to wait for external service results to be available. | 300 |
SKIP_FILTER_CI_FAIL |
boolean |
Skip policy violation --filter-fail and allow CI to pass on any policy violation. | false |
Basic example:
script:
- pipe: safedep/vet-pipe:v1.3.0Advanced example:
script:
- pipe: safedep/vet-pipe:v1.3.0
variables:
POLICY: './vet/policy.yml'
CLOUD: true
CLOUD_KEY: '--YOUR-SAFEDEP-API-KEY--'
CLOUD_TENANT: '--YOUR-SAFEDEP-TENANT-ID--'Please raise an issue on GitHub for any support requests.
Copyright (c) 2026 SafeDep Inc. Apache 2.0 licensed, see LICENSE file.