Skip to main content

Git Artifact Signed

Type: Rule
ID: git-artifact-signed
Source: v2/rules/git/artifact-signed.yaml
Rego Source: artifact-signed.rego
Labels: SBOM, Git

Verify the Git artifact is signed.

note

This rule requires Signed Git SBOM. See here for more details.

tip

Evidence IS required for this rule and will fail if missing.

tip

Signed Evidence for this rule IS required by default.

warning

Rule requires evaluation with a target. Without one, it will be disabled unless the --all-evidence flag is provided.

info

Rule is scoped by product and target.

Usage example

uses: git/artifact-signed@v2
with:
identity:
emails:
- bob@company.com
- alice@company.com

Mitigation

Ensure that only Git artifacts with valid cryptographic signatures are deployed to prevent source code tampering.

Evidence Requirements

FieldValue
filter-by['product', 'target']
signedTrue
content_body_typecyclonedx-json
target_typegit

Rule Parameters (with)

ParameterDefault
identity{'common-names': [], 'emails': []}