Skip to content

Commit 1455967

Browse files
authored
bump actions/attest to v2.0.0 (#126)
Signed-off-by: Brian DeHamer <[email protected]>
1 parent 1763edc commit 1455967

File tree

2 files changed

+12
-17
lines changed

2 files changed

+12
-17
lines changed

README.md

+9-14
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ See [action.yml](action.yml)
6464
with:
6565
# Path to the artifact serving as the subject of the attestation. Must
6666
# specify exactly one of "subject-path" or "subject-digest". May contain a
67-
# glob pattern or list of paths (total subject count cannot exceed 2500).
67+
# glob pattern or list of paths (total subject count cannot exceed 1024).
6868
subject-path:
6969
7070
# SHA256 digest of the subject for the attestation. Must be in the form
@@ -99,26 +99,22 @@ See [action.yml](action.yml)
9999

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

102-
| Name | Description | Example |
103-
| ------------- | -------------------------------------------------------------- | ----------------------- |
104-
| `bundle-path` | Absolute path to the file containing the generated attestation | `/tmp/attestaion.jsonl` |
102+
| Name | Description | Example |
103+
| ------------- | -------------------------------------------------------------- | ---------------------- |
104+
| `bundle-path` | Absolute path to the file containing the generated attestation | `/tmp/attestaion.json` |
105105

106106
<!-- markdownlint-enable MD013 -->
107107

108108
Attestations are saved in the JSON-serialized [Sigstore bundle][8] format.
109109

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

114113
## Attestation Limits
115114

116115
### Subject Limits
117116

118-
No more than 2500 subjects can be attested at the same time. Subjects will be
119-
processed in batches 50. After the initial group of 50, each subsequent batch
120-
will incur an exponentially increasing amount of delay (capped at 1 minute of
121-
delay per batch) to avoid overwhelming the attestation API.
117+
No more than 1024 subjects can be attested at the same time.
122118

123119
### SBOM Limits
124120

@@ -164,8 +160,8 @@ jobs:
164160

165161
### Identify Multiple Subjects
166162

167-
If you are generating multiple artifacts, you can generate an attestation for
168-
each by using a wildcard in the `subject-path` input.
163+
If you are generating multiple artifacts, you can attest all of them at the same
164+
time by using a wildcard in the `subject-path` input.
169165

170166
```yaml
171167
- uses: actions/attest-sbom@v1
@@ -267,7 +263,6 @@ jobs:
267263
[7]: https://cli.github.com/manual/gh_attestation_verify
268264
[8]:
269265
https://github.com/sigstore/protobuf-specs/blob/main/protos/sigstore_bundle.proto
270-
[9]: https://jsonlines.org/
271266
[10]: https://github.com/actions/toolkit/tree/main/packages/glob#patterns
272267
[11]:
273268
https://docs.github.com/en/actions/security-guides/using-artifact-attestations-to-establish-provenance-for-builds

action.yml

+3-3
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: >
@@ -49,7 +49,7 @@ inputs:
4949

5050
outputs:
5151
bundle-path:
52-
description: 'The path to the file containing the attestation bundle(s).'
52+
description: 'The path to the file containing the attestation bundle.'
5353
value: ${{ steps.attest.outputs.bundle-path }}
5454

5555
runs:
@@ -59,7 +59,7 @@ runs:
5959
id: generate-sbom-predicate
6060
with:
6161
sbom-path: ${{ inputs.sbom-path }}
62-
- uses: actions/attest@67422f5511b7ff725f4dbd6fb9bd2cd925c65a8d # v1.4.1
62+
- uses: actions/attest@v2.0.0
6363
id: attest
6464
with:
6565
subject-path: ${{ inputs.subject-path }}

0 commit comments

Comments
 (0)