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 or an asset input. Without one, it will be disabled unless the --all-evidence flag is provided.

info

Rule is scoped by product and target.

Usage example

uses: github/org/secret-scanning@v2

Evidence Requirements

FieldValue
filter-by['product', 'target']
signedFalse
content_body_typegeneric
target_typedata
predicate_typehttp://scribesecurity.com/evidence/discovery/v0.1
asset_platformgithub
asset_typeorganization

Rule Parameters (with)

ParameterDefault
desired_valueTrue