Setup GitHub Integration for CI/CD

Akto’s integration with GitHub enterprise and Github.com allows you to maintain API security through GitHub pull requests itself.

With this integration, you'll be able to

Check status of Akto CICD tests directly from GitHub pull requests through quality gates

Check result of Akto CICD tests directly from comment posted on Github pull request

Prerequisites

Steps to add Github comments on pull request

  • Follow run test in CICD to trigger CICD tests via GitHub action.

  • Add variable GITHUB_COMMIT_ID : ${{github.event.pull_request.head.sha}} in our Github Plugin in order to trigger Akto CICD reporting on Github PR.

      - name: Run CI/CD tests
        uses: akto-api-security/run-scan@v1.0.12
        with:
          AKTO_DASHBOARD_URL: ${{vars.AKTO_DASHBOARD_URL}}
          GITHUB_COMMIT_ID: ${{github.event.pull_request.head.sha}}
          AKTO_API_KEY: ${{vars.AKTO_API_KEY}}
          AKTO_TEST_ID: ${{vars.AKTO_TEST_ID}}
          START_TIME_DELAY: 180 # Delay in seconds after which testing run is started, optional, default is 0 

Last updated