Skip to main content

Allowed GitHub Organization Admins

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

Verify only users in the Allowed List have admin privileges in the GitHub organization.

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/allow-admins@v2
with:
allowed_admins:
- user1
- user2
- user3

Mitigation

Ensures that only approved users have admin privileges in the GitHub organization, reducing the risk of unauthorized access through compromised credentials.

Description

This rule verifies that only users in the Allowed List have admin privileges in the GitHub organization. It checks the organization's details and compares the value of the organization_details.admins field against the expected value.

The rule iterates over the organization data in the evidence, and if the admins field does not match the desired value, a violation is recorded. This ensures that only users in the Allowed List have admin privileges in the GitHub organization.

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
allowed_adminsarrayFalseList of allowed GitHub organization admins.