Skip to main content

Verify no unused Dockerhub

Type: Rule
ID: dockerhub-token-not-used
Source: v2/rules/dockerhub/token-not-used.yaml
Rego Source: token-not-used.rego
Labels: Dockerhub

Verify that there are no unused Dockerhub.

note

This rule requires Dockerhub Project 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: dockerhub/token-not-used@v2

Description

This rule verifies that there are no unused Dockerhub. It performs the following steps:

  1. Iterates over the Dockerhub tokens in the project.
  2. Checks each token's last_used is null , the rule flags it as a violation.

Evidence Requirements:

  • Evidence must be provided by the Scribe Platform's CLI tool through scanning Dockerhub resources.

Evidence Requirements

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