Skip to main content

Limit Admin Number in GitHub Organization

Type: Rule
ID: github-org-max-admins
Source: v2/rules/github/org/max-admins.yaml
Rego Source: max-admins.rego
Labels: GitHub, Organization

Verify the maximum number of GitHub organization admins is restricted.

note

This rule requires Github Organization Discovery Evidence. See here for more details.

tip

Signed Evidence for this rule IS NOT required by default but is recommended.

warning

Rule requires evaluation with a target. Without one, it will be disabled unless the --all-evidence flag is provided.

Usage example

uses: github/org/max-admins@v2
with:
max_admins: 5

Mitigation

Ensures that the number of admins in the GitHub organization is kept within a manageable limit, reducing the risk of unauthorized administrative actions.

Description

This rule ensures that the number of admins in the GitHub organization does not exceed the specified maximum. It performs the following steps:

  1. Checks the list of admins in the GitHub organization.
  2. Verifies that the number of admins does not exceed the value specified in the with.max_admins configuration.

Evidence Requirements:

  • Evidence must be provided by the Scribe Platform's CLI tool through scanning GitHub organization resources.

Evidence Requirements

FieldValue
signedFalse
content_body_typegeneric
target_typedata
predicate_typehttp://scribesecurity.com/evidence/discovery/v0.1
labels- platform=github
- asset_type=organization

Input Definitions

ParameterTypeRequiredDescription
max_adminsintegerFalseMaximum number of admins allowed.