Skip to main content

Verify No Organization Secrets Exist in Repository

Type: Rule
ID: github-repo-no-org-secrets
Source: v2/rules/github/repository/no-org-secrets.yaml
Rego Source: no-org-secrets.rego
Labels: GitHub, Repository

Verify no organization secrets exist in the GitHub repository.

note

This rule requires Github Repository 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/repository/no-org-secrets@v2

Mitigation

Ensures that no organization secrets are used, reducing the risk of unauthorized access.

Description

This rule ensures that no organization secrets are used in the GitHub repository. It performs the following steps:

  1. Checks the repository settings for organization secrets.
  2. Verifies that no organization secrets are used.

Evidence Requirements:

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

Evidence Requirements

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