Skip to main content

Verify No Cache Usage Exists in Repository

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

Verify the GitHub repository has no cache usage.

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-cache-usage@v2

Mitigation

Ensures that no cache is used, reducing the risk of outdated or insecure dependencies.

Description

This rule ensures that no cache is used in the GitHub repository. It performs the following steps:

  1. Checks the repository settings for cache usage.
  2. Verifies that no cache is 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