Skip to main content

Verify secret_scanning_enabled_for_new_repositories setting

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

Verify secret scanning is configured for new repositories 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/secret-scanning@v2

Evidence Requirements

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

Rule Parameters (with)

ParameterDefault
desired_valueTrue