Skip to main content

Azure Pipelines

Azure Pipelines can trigger Cloudgeni scans with a normal script step.

Static Analysis Example

steps:
  - bash: |
      curl --fail --silent --show-error \
        -X POST \
        -H "Content-Type: application/json" \
        -H "X-CLOUDGENI-API-KEY: $(CLOUDGENI_API_KEY)" \
        "$(CLOUDGENI_API_URL)/api/v1/organizations/$(CLOUDGENI_ORG_ID)/repositories/$(CLOUDGENI_REPO_ID)/static-analysis" \
        -d '{"analysisEngine":"checkov","excludedPaths":[]}'
    displayName: Trigger Cloudgeni static analysis

For Cloud Scans

Use the cloud endpoint shape instead: /api/v1/organizations/:orgId/cloud/:integrationId/:analysisEngine/infra-scans

Next

See Scanning API for the routes these pipeline calls map to.