GitHub PR Gating
Use Cases
Setting up GitHub CI





Ignore issues directly from PR comments
Make failed PR checks block merges
Adding Exceptions for specific repos

Last updated
Was this helpful?
You can easily configure GitHub PR Gating via the Aikido interface. This functionality lets you block newly introduced issues for a threshold you decide and see which existing issues a pull request solves. These checks run everytime changes are committed to the feature branch. This doc focusses on managing configurations in bulk - multiple repos at the same time - without code.
Bulk Repository Management: Easily specify and manage configurations for multiple repositories at once through the Aikido interface.
Zero Code Integration: Install the Aikido app on GitHub to manage checks without embedding any code, simplifying the setup process.
Cost Efficiency: By managing GitHub Checks through Aikido, avoid using CI minutes on GitHub, leading to significant cost savings.
Step 1. Go to the Integrations Page and select GitHub in the CI gating section.

Step 2. Install the Aikido PR Checks app in GitHub. Make sure that you select the GitHub organisation that is currently being used in your workspace. Choose which repos that Aikido is allowed to access. We recommend giving access to all repos so these can easily be managed from within Aikido.

Step 3. Aikido redirects you to the GitHub CI page with an overview of your repos. You can start configuring your repos. We recommend starting out with 1 repo to make sure everything works well.

Step 4. Select repos in bulk and click Setup PR Scans in the floating bar on the bottom

Step 5. This opens the configuration modal, where you choose the failure threshold and scans for the selected repositories.
To run the enabled scans without failing the GitHub PR check, select Always Pass.

If you've added new repositories after the initial setup, you'll need to configure those repos as well.
To apply a default configuration automatically, see Default PR/MR gating configuration for new repositories.
When Aikido posts an inline PR comment for a finding, you can ignore that issue directly from GitHub by replying to the comment with:
@AikidoSec ignore: [your reason to ignore]
Example:
@AikidoSec ignore: This secret is used for tests only.
This performs the same action as manually ignoring the issue in the Aikido platform:
The issue is marked as ignored in Aikido.
The ignore reason is stored.
PR gating can turn green once all blocking issues are resolved or ignored.
Aikido can fail the PR check, but GitHub decides whether that failing check blocks a merge. Configure branch protection with required status checks:
You might want to have 1 specific repo where the configuration slightly differs. You can easily add exceptions by clicking the triple dots on a repo item or just select 1 or more items and go through the Configure Scans process again.

Last updated
Was this helpful?
Was this helpful?