Skip to main content

Verify dependabot_alerts_enabled_for_new_repositories setting

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

Verify Dependabot alerts for new repositories are enabled 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/dependabot-alerts@v2
with:
desired_value: true

Mitigation

Ensures that Dependabot alerts are enabled for new repositories in the GitHub organization, helping to identify and address vulnerabilities in dependencies.

Description

This rule verifies that Dependabot alerts for new repositories are enabled in the GitHub organization. It performs the following steps:

  1. Checks the organization's settings for the dependabot_alerts_enabled_for_new_repositories field.
  2. Compares the value of this field against the desired value specified in the with.desired_value configuration.
    • If the field does not match the desired value, the rule flags it as a violation.

Evidence Requirements:

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

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

Input Definitions

ParameterTypeRequiredDescriptionDefault
desired_valuebooleanFalseDesired value for the dependabot_alerts_enabled_for_new_repositories setting.True