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 IntegerationClick on
Generate tokenbutton 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
GETendpoints, we can add a filter to show onlyGETendpoints.Click on the
Run scanbutton on the top right.Select the scans you want to run as part of CI/CD pipeline. Please keep
Select time = NowandRun dailyshould be unchecked. Feel free to edit theName,Scan run timeandMax concurrent requestsand any other details.
Click on
Run once now(if the button name says anything else, read the previous point 🙄)Observe the
Scan IDon 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