View as Markdown

Security

Mergify's security posture: compliance, data handling, access control, application key permissions, leaked application keys, SBOMs, and the GitHub App permissions we request.


Mergify runs in front of GitHub to decide which pull requests merge and to orchestrate your pipeline.

Mergify is SOC 2 Type II attested. Reports, audit details, and our sub-processor list are available in the Trust Center.

A Data Processing Addendum (DPA) is available on request. Contact security@mergify.com.

  • Encryption in transit: TLS 1.2 or higher.

  • Encryption at rest: persisted service data, such as configuration and metadata, is encrypted with AES-256.

  • Service status: real-time availability and incident history at status.mergify.com.

Mergify has no login of its own. Users sign in through GitHub, and their access to a repository is inherited directly from GitHub roles: a user with the Read role on a repository in GitHub also has the Read role in Mergify.

Some operations also require the GitHub organization Owner role. See the Features Permissions table below for the full mapping between GitHub roles and Mergify capabilities.

Sign-in goes through GitHub OAuth, so whatever authentication policy you enforce on your GitHub organization applies to Mergify, with nothing to configure on the Mergify side. To enforce SSO, configure SAML SSO on your GitHub organization; GitHub’s documentation covers the steps for each identity provider: About identity and access management with SAML single sign-on.

If your organization also restricts GitHub access by IP, Mergify’s IPs must be allowlisted for OAuth sign-in to succeed: see Managing IP addresses.

Some Mergify operations require the GitHub organization Owner role. Rather than grant full Owner rights to a teammate who needs one of them, a GitHub Owner delegates a scoped Mergify role to any organization member or collaborator from the Mergify dashboard.

Only GitHub Owners and users holding the Delegation Admin role grant and revoke delegated roles, under Settings → Security & Access → Roles on the Mergify dashboard.

Granting a delegated role requires the Enterprise plan; see Mergify’s pricing page. Listing the roles and revoking one do not, so a role granted earlier keeps working and can still be revoked after a plan change.

Each user can hold any combination of the following roles:

RoleGrants
Billing Admin

Manage the Mergify subscription and billing details: invoices, plan changes, and the Stripe customer portal.

CI Admin

Configure CI Insights at the organization level (self-hosted runner fleet) and manage the application keys and GitHub Actions trust policies limited to CI Reporting (see Application keys).

Integrations Admin

Configure the default products for new repositories and the Slack and Datadog notification integrations at the organization level.

Delegation Admin

Manage the delegated-role roster itself: grant or revoke any of the roles above (including this one) to other users.

An application key is the credential a script, an agent or a CI job uses to call the Mergify API without anyone signing in. It belongs to the organization it was created in, not to the person who created it, and holds no GitHub role. What it may do is set on the key itself:

  • Permissions per resource. A key holds a level on each resource of the API and reaches nothing beyond those levels. CI Reporting, which uploads CI results, is a permission of its own that a key granted Every resource does not hold: a CI key holds it alone. See Application key permissions.

  • Every repository of the organization. A key reaches every repository of its organization, within its permissions. It cannot be limited to some repositories.

  • Who manages keys. The GitHub organization Owners manage every key. A user holding the CI Admin role creates, renames and deletes only the CI keys.

  • Permissions can change, the secret does not. An Owner can narrow or widen the permissions of any key but a CI key. The key keeps its secret, and its next request is decided by the new permissions.

  • Optional expiry. A key can be given an expiry date when it is created, and a CI key made instead of OIDC must be. The date cannot move afterwards. Past it, every request made with the key is refused with 401.

  • Refusals give nothing away. A key cannot be used to find out what exists outside its organization.

Request Request made with a key Expired Past its expiry date? Request->Expired Holds Holds the permission the operation names? Expired->Holds  no Expired401 401, with the expiry date Expired->Expired401 yes Owner Names only its organization and its repositories? Holds->Owner  yes Refused 403, same message every time Holds->Refused no Handled Request handled Owner->Handled  yes Owner->Refused no
Only an expired key is told why it was refused: a missing permission, another organization and an unknown repository all get the same 403

Every change to a key is recorded in the organization’s activity log, with who made it, under Settings → Security & Access → Activity Log on the dashboard. GitHub Owners and CI Admins can read it.

Event What it records
Application Key Created The key’s name, permissions and expiry date, and where a CI key runs and why.
Application Key Permissions Changed The key’s permissions before and after.
Application Key Renamed The key’s previous name and its new one.
Application Key Deleted The permissions the key had.
Application Key Revoked A key Mergify deleted because GitHub found it published, and where it was found.

Mergify application keys are among the secrets GitHub scans for. When GitHub finds a Mergify application key in a public repository (its code, issues, pull requests, discussions or wiki), in a secret gist or in a public npm package, it reports the key to Mergify, and Mergify deletes it at once. From then on, every request made with that key is refused.

Leak Application key pushed to a public repository GitHub GitHub secret scanning Leak->GitHub  matches the Mergify  application key pattern Mergify Mergify GitHub->Mergify  reports the key Deleted Key deleted, requests refused Mergify->Deleted  finds the key  and deletes it
GitHub reports a key it finds in a public repository, and Mergify deletes it: the key stops working

Mergify does not notify anyone when it deletes a key. The key disappears from Settings → Security & Access → API Keys on the dashboard, or from CI Authentication for a CI key. The activity log records it as revoked, and whatever used it starts failing. Create a new API key or CI key and put it everywhere the deleted one was used: your CI provider’s secrets and any webhook that sends it, such as the Buildkite webhook for CI Insights. Keep it in a secret store rather than in the repository.

A key committed to a private repository keeps working: GitHub secret scanning, if enabled there, alerts you instead and you revoke the key yourself. The same goes for a key issued by an on-premise installation, since GitHub reports to Mergify’s hosted service, which does not hold that key.

The Mergify CLI and the test framework plugins ship compiled Rust code. For every package file that holds some, each release publishes a CycloneDX 1.5 software bill of materials (SBOM): the Rust crates compiled into that file and their versions, with the license and SHA-256 checksum of each crate that comes from crates.io. Crates that only run while the package is built are left out, so the list matches what you install. Load it into Dependency-Track, Grype or Trivy to see whether a vulnerability in a bundled crate reaches your CI.

The SBOMs are attached to the Mergify CLI releases on GitHub. Each release there carries the files of every package published at that version, the test framework plugins included. An SBOM sits beside the file it describes and takes that file’s name followed by .cdx.json, and the release’s SHA256SUMS lists it with the other files.

You installThe SBOM is beside

The mergify CLI, from Homebrew, the install script or the Mergifyio/setup-cli action

mergify-<version>-<target>.tar.gz (.zip on Windows)

mergify-cli from PyPImergify_cli-<version>-py3-none-<platform>.whl
pytest-mergifypytest_mergify-<version>-cp310-abi3-<platform>.whl

@mergifyio/vitest, @mergifyio/jest, @mergifyio/playwright or @mergifyio/mocha

mergifyio-ci-native-<platform>-<version>.tgz
rspec-mergify or minitest-mergifymergify-ci-core-<version>-<platform>.gem

To scan the SBOM of the latest pytest-mergify wheel for Linux x86_64 with Trivy:

Terminal windowbash
gh release download --repo Mergifyio/mergify-cli \
--pattern 'pytest_mergify-*-manylinux_2_28_x86_64.whl.cdx.json'
trivy sbom pytest_mergify-*-manylinux_2_28_x86_64.whl.cdx.json

Give gh release download the version you install as its first argument to fetch that release’s file instead. Grype reads the same file as grype sbom:<file>.

Each compiled binary also carries its own crate list, embedded with cargo auditable, which Trivy, Grype, Syft and cargo audit bin read straight from an installed package or a container image. npm installs the @mergifyio/ci-native-<platform> addon without the executable bit and Trivy reads only executable files, so scan it with Grype, Syft or its SBOM.

Mergify hosts a public Bug Bounty program with HackerOne. If you believe you’ve found a security issue on our platform, please disclose it responsibly.

For other security questions or concerns, contact our security team at security@mergify.com.

Mergify requests a fixed set of GitHub App permissions.

GitHub App required permissions

Section titled GitHub App required permissions
PermissionAccessUsage
Repository: ActionsRead and write

Used to read workflow runs and job logs, and to re-run workflow runs and failed jobs for CI Insights Auto-Retry.

Repository: AdministrationRead-onlyUsed to read branch protection settings and repository rulesets.
Repository: ChecksRead and writeUsed to read and post checks.
Repository: Commit statusesRead-onlyUsed to read the commit statuses your CI reports.
Repository: ContentsRead and writeUsed to read repository content and write (merge).
Repository: DeploymentsRead and write

Used to read deployment statuses, and to report Merge Protections status as a deployment when reporting_method is deployments.

Repository: IssuesRead and write

Used to read and write the parts of a pull request that GitHub serves under its Issues API: labels, assignees, comments, and reactions on comments.

Repository: MetadataRead-onlyAccess repository metadata.
Repository: Merge queuesRead-onlyUsed to receive GitHub merge queue events.
Repository: PagesRead and write

Used so that GitHub publishes your Pages site after a merge Mergify performs. Mergify makes no Pages API call itself.

Repository: Pull requestsRead and writeUsed to read and edit pull requests.
Repository: WorkflowsRead and write

Used to read workflows and to write a pull request’s changes under .github/workflows/ when merging it or updating its branch. Without this permission, GitHub refuses the write and Mergify reports the missing permission.

Organization: AdministrationRead-only

Used to receive organization-level ruleset events and read the organization’s default repository permission.

Organization: MembersRead-only

Used to list organization owners and the members of each team, so that a team named in your configuration resolves to its members.

Account: Email addressesRead-only

Used to read the email addresses of users who sign in to the Mergify dashboard.

Permissions are inherited from GitHub roles: to act on Mergify, a user must have sufficient access to the repository or the organization.

FeatureRepository roleOrganization role
ReadTriageWriteMaintainAdminOwner
Merge Queue
View the merge queue✓✓✓✓✓✓
Pause the merge queue✗✗✓✓✓✓
Merge Protections
View merge protection status✓✓✓✓✓✓
Edit merge protection rules in .mergify.yml✗✗✓✓✓✓
Schedule a queue freeze✗✗✓✓✓✓
CI Insights
View CI Insights dataRequires GitHub organization membership✓
Activate CI Insights on a repository✗✗✓✓✓✓
Manage CI Insights Auto-Retry rules✗✗✓✓✓✓
Configure CI Insights self-hosted runners✗✗✗✗✗✓
Test Engine
View Test Engine data✓✓✓✓✓✓
Quarantine or unquarantine tests✗✗✓✓✓✓
Configure Test Engine Auto-Quarantine✗✗✓✓✓✓
Account
Manage application keys✗✗✗✗✗✓
Manage Mergify subscription✗✗✗✗✗✓
Products & Integrations
GitHub integration: Enable or disable Mergify products✗✗✓✓✓✓
GitHub integration: Configure default products for new repositories✗✗✗✗✗✓
Third-party integrations: Configure Slack and Datadog notification integrations✗✗✗✗✗✓

Mergify commands are restricted by default.

Actions in pull_request_rules have no equivalent default restriction: they run whenever a pull request matches the rule’s conditions, whoever opened it, with Mergify’s own permissions or those of the bot_account you configure. A pull request’s author picks its head branch, so keep a rule that writes to that branch, such as update, off the branches you care about: add conditions on the author or on a label, or a pattern on head.

Managing IP addresses allowed for the GitHub App

Section titled Managing IP addresses allowed for the GitHub App

GitHub lets you restrict the IP addresses a GitHub App may use to access GitHub. Mergify services use:

  • 34.121.26.35/32
  • 34.45.103.142/32
  • 34.69.118.185/32
  • 34.63.9.219/32
  • 136.119.26.243/32

Was this page helpful?