For the complete documentation index, see llms.txt. This page is also available as Markdown.

Run Probes in CI/CD

Introduction

You can trigger Akto's AI Red Teaming in your CI/CD pipelines too. Generate your Akto token and send API requests to Akto dashboard to start running scans.

Generate Akto token

  • Go to My account > Settings > Integrations

  • Select CI/CD Integeration

  • Click on Generate token button to generate a fresh token or copy an existing token.

Add trigger in your CI/CD tool

  • Open the Agentic Collection where you want to run the scans.

  • By default, the Agentic Collection view shows all Agentic components. You can filter the agent component on which you want to run the scans. For example, to run scans only on GET endpoints, we can add a filter to show only GET endpoints.

  • Click on the Run scan button on the top right.

  • Select the scans you want to run as part of CI/CD pipeline. Please keep Select time = Now and Run daily should be unchecked. Feel free to edit the Name, Scan run time and Max concurrent requests and any other details.

  • Click on Run once now (if the button name says anything else, read the previous point 🙄)

  • Observe the Scan ID on the red teaming page for the probe you just created. *

GitHub Actions

  • You can also use our plugin for Github Actions directly too:

Post deployment hook (works with any CI/CD platform)

To run add the following docker command to your CI/CD pipeline

In case you face an issue with the spaces in the command...

  • If you have hosted Akto in your VPC, please ensure the CI/CD machine can reach Akto's dashboard. You might have to change Security rules on Akto-Load-Balancer accordingly.

Last updated