Skip to content

Commit 619dbb2

Browse files
authored
bump actions/attest to v2.0.0 (#321)
Signed-off-by: Brian DeHamer <[email protected]>
1 parent 90d4930 commit 619dbb2

File tree

2 files changed

+12
-17
lines changed

2 files changed

+12
-17
lines changed

README.md

Lines changed: 9 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ See [action.yml](action.yml)
6262
with:
6363
# Path to the artifact serving as the subject of the attestation. Must
6464
# specify exactly one of "subject-path" or "subject-digest". May contain a
65-
# glob pattern or list of paths (total subject count cannot exceed 2500).
65+
# glob pattern or list of paths (total subject count cannot exceed 1024).
6666
subject-path:
6767
6868
# SHA256 digest of the subject for the attestation. Must be in the form
@@ -93,26 +93,22 @@ See [action.yml](action.yml)
9393

9494
<!-- markdownlint-disable MD013 -->
9595

96-
| Name | Description | Example |
97-
| ------------- | -------------------------------------------------------------- | ------------------------ |
98-
| `bundle-path` | Absolute path to the file containing the generated attestation | `/tmp/attestation.jsonl` |
96+
| Name | Description | Example |
97+
| ------------- | -------------------------------------------------------------- | ----------------------- |
98+
| `bundle-path` | Absolute path to the file containing the generated attestation | `/tmp/attestation.json` |
9999

100100
<!-- markdownlint-enable MD013 -->
101101

102102
Attestations are saved in the JSON-serialized [Sigstore bundle][6] format.
103103

104-
If multiple subjects are being attested at the same time, each attestation will
105-
be written to the output file on a separate line (using the [JSON Lines][7]
106-
format).
104+
If multiple subjects are being attested at the same time, a single attestation
105+
will be created with references to each of the supplied subjects.
107106

108107
## Attestation Limits
109108

110109
### Subject Limits
111110

112-
No more than 2500 subjects can be attested at the same time. Subjects will be
113-
processed in batches 50. After the initial group of 50, each subsequent batch
114-
will incur an exponentially increasing amount of delay (capped at 1 minute of
115-
delay per batch) to avoid overwhelming the attestation API.
111+
No more than 1024 subjects can be attested at the same time.
116112

117113
## Examples
118114

@@ -148,8 +144,8 @@ jobs:
148144

149145
### Identify Multiple Subjects
150146

151-
If you are generating multiple artifacts, you can generate a provenance
152-
attestation for each by using a wildcard in the `subject-path` input.
147+
If you are generating multiple artifacts, you can attest all of them at the same
148+
time by using a wildcard in the `subject-path` input.
153149

154150
```yaml
155151
- uses: actions/attest-build-provenance@v1
@@ -245,7 +241,6 @@ jobs:
245241
[5]: https://cli.github.com/manual/gh_attestation_verify
246242
[6]:
247243
https://github.com/sigstore/protobuf-specs/blob/main/protos/sigstore_bundle.proto
248-
[7]: https://jsonlines.org/
249244
[8]: https://github.com/actions/toolkit/tree/main/packages/glob#patterns
250245
[9]:
251246
https://docs.github.com/en/actions/security-guides/using-artifact-attestations-to-establish-provenance-for-builds

action.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ inputs:
1010
description: >
1111
Path to the artifact serving as the subject of the attestation. Must
1212
specify exactly one of "subject-path" or "subject-digest". May contain a
13-
glob pattern or list of paths (total subject count cannot exceed 2500).
13+
glob pattern or list of paths (total subject count cannot exceed 1024).
1414
required: false
1515
subject-digest:
1616
description: >
@@ -44,15 +44,15 @@ inputs:
4444

4545
outputs:
4646
bundle-path:
47-
description: 'The path to the file containing the attestation bundle(s).'
47+
description: 'The path to the file containing the attestation bundle.'
4848
value: ${{ steps.attest.outputs.bundle-path }}
4949

5050
runs:
5151
using: 'composite'
5252
steps:
5353
- uses: actions/attest-build-provenance/predicate@36fa7d009e22618ca7cd599486979b8150596c74 # [email protected]
5454
id: generate-build-provenance-predicate
55-
- uses: actions/attest@67422f5511b7ff725f4dbd6fb9bd2cd925c65a8d # v1.4.1
55+
- uses: actions/attest@v2.0.0
5656
id: attest
5757
with:
5858
subject-path: ${{ inputs.subject-path }}

0 commit comments

Comments
 (0)