15.2. GitLab CI#
Use FlareInspect in GitLab CI to gate deployments on Cloudflare security posture.
15.2.1. Basic Pipeline#
flareinspect-security:
stage: test
image: node:20
script:
- npm install
- node src/cli/index.js assess --token $CLOUDFLARE_TOKEN --ci --threshold 80 --fail-on high
variables:
CLOUDFLARE_TOKEN: $CI_CLOUDFLARE_TOKEN
15.2.2. Variable Setup#
Go to your project → Settings → CI/CD → Variables
Add
CI_CLOUDFLARE_TOKENwith your API token valueMark it as Masked and Protected for security