Prerequisites
- Personal Access Token (PAT)
Create one via Personal Access Tokens (PAT). Store it in Project Settings → Environment Variables (e.g.CYBEDEFEND_PAT). - Branch Filters
We recommend scanning only the main (or production) branch to avoid mixing partial results.
Docker Example
.circleci/config.yml:Explanation
- docker: We use the prebuilt
cybedefend/local-scanner:latestimage. - checkout: CircleCI’s built-in step to fetch code into
my-app. - cybedefend scan: Zips and uploads your code, referencing environment variables for the key and project ID.
You can also run cybedefend results in a follow-up step to retrieve a SARIF or HTML report.