This pipe runs the FSRT - Forge Security Requirements Tester in Bitbucket Pipelines
Add the following snippet to the script section of your bitbucket-pipelines.yml file:
- pipe: docker://astraube/fsrt-report-pipe:latest
variables:
FSRT_OPTIONS: "<string>" # Optional options
FSRT_DIRS: "<string>" # The directory to scan| Variable | Usage |
|---|---|
| FSRT_OPTIONS | Optional options |
| FSRT_DIRS | The directory to scan. Assumes there is a manifest.yaml file in the top level directory, and that the source code is located in src/ |
(*) = required variable.
pipelines:
default:
- step:
name: Run NPM
script:
- npm install
- forge lint
- step:
name: FSRT Reporting
script:
- pipe: docker://astraube/fsrt-report-pipe:latest
variables:
FSRT_OPTIONS: "--out fsrt-report.json"
FSRT_DIRS: $BITBUCKET_CLONE_DIR