Bump actions/attest from 1.1.2 to 1.2.0 (#67)

Signed-off-by: Brian DeHamer <[email protected]>
This commit is contained in:
Brian DeHamer
2024-06-03 10:53:32 -07:00
committed by GitHub
parent cb316d67b7
commit 49e7311f18
2 changed files with 27 additions and 11 deletions
+21 -6
View File
@@ -21,8 +21,8 @@ initiated.
Attestations can be verified using the [`attestation` command in the GitHub Attestations can be verified using the [`attestation` command in the GitHub
CLI][7]. CLI][7].
See [Using artifact attestations to establish provenance for builds][11] See [Using artifact attestations to establish provenance for builds][11] for
for more information on artifact attestations. more information on artifact attestations.
## Usage ## Usage
@@ -63,7 +63,8 @@ See [action.yml](action.yml)
- uses: actions/attest-sbom@v1 - uses: actions/attest-sbom@v1
with: with:
# Path to the artifact serving as the subject of the attestation. Must # Path to the artifact serving as the subject of the attestation. Must
# specify exactly one of "subject-path" or "subject-digest". # specify exactly one of "subject-path" or "subject-digest". May contain a
# glob pattern or list of paths (total subject count cannot exceed 2500).
subject-path: subject-path:
# SHA256 digest of the subject for the attestation. Must be in the form # SHA256 digest of the subject for the attestation. Must be in the form
@@ -76,8 +77,8 @@ See [action.yml](action.yml)
# path. # path.
subject-name: subject-name:
# Path to the JSON-formatted SBOM file to attest. When specified, the # Path to the JSON-formatted SBOM file to attest. File size cannot exceed
# "scan-path" and "sbom-format" inputs are ignored. # 16MB.
sbom-path: sbom-path:
# Whether to push the attestation to the image registry. Requires that the # Whether to push the attestation to the image registry. Requires that the
@@ -106,6 +107,19 @@ If multiple subjects are being attested at the same time, each attestation will
be written to the output file on a separate line (using the [JSON Lines][9] be written to the output file on a separate line (using the [JSON Lines][9]
format). format).
## Attestation Limits
### Subject Limits
No more than 2500 subjects can be attested at the same time. Subjects will be
processed in batches 50. After the initial group of 50, each subsequent batch
will incur an exponentially increasing amount of delay (capped at 1 minute of
delay per batch) to avoid overwhelming the attestation API.
### SBOM Limits
The SBOM supplied via the `sbom-path` input cannot exceed 16MB.
## Examples ## Examples
### Identify Subject and SBOM by Path ### Identify Subject and SBOM by Path
@@ -234,4 +248,5 @@ jobs:
https://github.com/sigstore/protobuf-specs/blob/main/protos/sigstore_bundle.proto https://github.com/sigstore/protobuf-specs/blob/main/protos/sigstore_bundle.proto
[9]: https://jsonlines.org/ [9]: https://jsonlines.org/
[10]: https://github.com/actions/toolkit/tree/main/packages/glob#patterns [10]: https://github.com/actions/toolkit/tree/main/packages/glob#patterns
[11]: https://docs.github.com/en/actions/security-guides/using-artifact-attestations-to-establish-provenance-for-builds [11]:
https://docs.github.com/en/actions/security-guides/using-artifact-attestations-to-establish-provenance-for-builds
+6 -5
View File
@@ -9,7 +9,8 @@ inputs:
subject-path: subject-path:
description: > description: >
Path to the artifact serving as the subject of the attestation. Must Path to the artifact serving as the subject of the attestation. Must
specify exactly one of "subject-path" or "subject-digest". specify exactly one of "subject-path" or "subject-digest". May contain a
glob pattern or list of paths (total subject count cannot exceed 2500).
required: false required: false
subject-digest: subject-digest:
description: > description: >
@@ -24,9 +25,9 @@ inputs:
path. path.
sbom-path: sbom-path:
description: > description: >
Path to the JSON-formatted SBOM file to attest. When specified, the Path to the JSON-formatted SBOM file to attest. File size cannot exceed
"scan-path" and "sbom-format" inputs are ignored. 16MB.
required: false required: true
push-to-registry: push-to-registry:
description: > description: >
Whether to push the provenance statement to the image registry. Requires Whether to push the provenance statement to the image registry. Requires
@@ -52,7 +53,7 @@ runs:
id: generate-sbom-predicate id: generate-sbom-predicate
with: with:
sbom-path: ${{ inputs.sbom-path || steps.sbom-output.outputs.path }} sbom-path: ${{ inputs.sbom-path || steps.sbom-output.outputs.path }}
- uses: actions/attest@12c083815ed46d5d78222e3824f4a26c42c234d3 # v1.1.2 - uses: actions/attest@32795ed9174327efe1734fa6d09c9223658ef225 # v1.2.0
id: attest id: attest
with: with:
subject-path: ${{ inputs.subject-path }} subject-path: ${{ inputs.subject-path }}