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

GitHub Actions

Akto integrates with GitHub Actions to add automated agentic AI security scanning to your workflows. This integration enables you to:

  • Run AI Red Teaming as part of your GitHub workflow

  • Automate security scanning on pull requests

  • Block merges based on security scan results

Prerequisites

Steps to Configure GitHub Actions

1. Create GitHub Actions Workflow

Create .github/workflows/akto-security.yml in your repository with the following content:

2. Configure GitHub Variables

  1. Go to Repository Settings > Secrets and Variables > Actions

  2. Add the following repository variables:

    • AKTO_DASHBOARD_URL: Your Akto dashboard URL

    • AKTO_API_KEY: Your Akto API key

    • AKTO_TEST_ID: Your Akto test ID

    • GITHUB_COMMIT_ID: For a particular PR (if needed)

3. Enable Required Status Checks

  1. Navigate to Repository Settings > Branches

  2. Add branch protection rule

  3. Enable "Require status checks to pass before merging"

  4. Add "Akto Red Teaming" as a required check

4. Verify Integration

  1. Create a new pull request

  2. Check that Akto security scans run automatically

  3. View scan results in the GitHub Actions tab

Viewing Results

  1. Check status of Akto CICD scans directly from GitHub pull requests through quality gates

  1. Check result of Akto CICD scans directly from comment posted on Github pull request

Last updated