CircleCI pipelines can run CybeDefend local scans by either installing the CLI or using Docker. This approach ensures your code is scanned within your pipeline, and only relevant data is uploaded to CybeDefend.Documentation Index
Fetch the complete documentation index at: https://docs.cybedefend.com/llms.txt
Use this file to discover all available pages before exploring further.
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.