Skip to content

Commit

Permalink
Merge pull request enterprise-contract#1132 from joejstuart/EC-828
Browse files Browse the repository at this point in the history
Update description to only include sha1 entries
  • Loading branch information
joejstuart authored Sep 9, 2024
2 parents 203b21e + fd5bb41 commit cf5b51c
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 14 deletions.
8 changes: 4 additions & 4 deletions antora/docs/modules/ROOT/pages/release_policy.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -1306,9 +1306,9 @@ This package verifies the requirement by asserting the image was built from a gi
[#slsa_source_version_controlled__materials_uri_is_git_repo]
=== link:#slsa_source_version_controlled__materials_uri_is_git_repo[Material uri is a git repo]

Ensure each entry in the predicate.materials array of the attestation uses a git URI.
Ensure each entry in the predicate.materials array with a SHA-1 digest includes a valid Git URI.

*Solution*: Make sure the format of the URI in the materials section of the attestation is a valid URI. This information comes from the 'CHAINS-GIT_URL' result of the 'git-clone' task.
*Solution*: Ensure the URI associated with a SHA-1 digest in the materials section of the attestation is valid. This URI is derived from the 'CHAINS-GIT_URL' output of the 'git-clone' task.

* Rule type: [rule-type-indicator failure]#FAILURE#
* FAILURE message: `Material URI %q is not a git URI`
Expand All @@ -1330,9 +1330,9 @@ Confirm at least one entry in the predicate.materials array of the attestation c
[#slsa_source_version_controlled__materials_include_git_sha]
=== link:#slsa_source_version_controlled__materials_include_git_sha[Materials include git commit shas]

Ensure each entry in the predicate.materials array of the attestation includes a SHA1 digest which corresponds to a git commit.
Ensure that each entry in the predicate.materials array with a SHA-1 digest includes a valid Git commit SHA.

*Solution*: Make sure the format of the digest.sha1 in the materials section of the attestation is a valid commit sha. This information comes from the 'CHAINS-GIT_COMMIT' result of the 'git-clone' task.
*Solution*: Ensure the digest.sha1 in the materials section of the attestation is a valid Git commit SHA. This commit information is derived from the 'CHAINS-GIT_COMMIT' output of the 'git-clone' task.

* Rule type: [rule-type-indicator failure]#FAILURE#
* FAILURE message: `Material digest %q is not a git commit sha`
Expand Down
20 changes: 10 additions & 10 deletions policy/release/slsa_source_version_controlled.rego
Original file line number Diff line number Diff line change
Expand Up @@ -57,15 +57,15 @@ deny contains result if {
# METADATA
# title: Material uri is a git repo
# description: >-
# Ensure each entry in the predicate.materials array of the attestation uses
# a git URI.
# Ensure each entry in the predicate.materials array with a SHA-1 digest includes
# a valid Git URI.
# custom:
# short_name: materials_uri_is_git_repo
# failure_msg: Material URI %q is not a git URI
# solution: >-
# Make sure the format of the URI in the materials section of the attestation
# is a valid URI. This information comes from the 'CHAINS-GIT_URL' result of the
# 'git-clone' task.
# Ensure the URI associated with a SHA-1 digest in the materials section
# of the attestation is valid. This URI is derived from the 'CHAINS-GIT_URL' output
# of the 'git-clone' task.
# collections:
# - minimal
# - slsa3
Expand All @@ -82,15 +82,15 @@ deny contains result if {
# METADATA
# title: Materials include git commit shas
# description: >-
# Ensure each entry in the predicate.materials array of the attestation includes
# a SHA1 digest which corresponds to a git commit.
# Ensure that each entry in the predicate.materials array with a SHA-1 digest includes
# a valid Git commit SHA.
# custom:
# short_name: materials_include_git_sha
# failure_msg: Material digest %q is not a git commit sha
# solution: >-
# Make sure the format of the digest.sha1 in the materials section of the attestation
# is a valid commit sha. This information comes from the 'CHAINS-GIT_COMMIT' result of the
# 'git-clone' task.
# Ensure the digest.sha1 in the materials section of the attestation is a valid
# Git commit SHA. This commit information is derived from the 'CHAINS-GIT_COMMIT'
# output of the 'git-clone' task.
# collections:
# - minimal
# - slsa3
Expand Down

0 comments on commit cf5b51c

Please sign in to comment.