Skip to content

Commit cbfd002

Browse files
authored
add attestation-id and attestation-url outputs (#137)
Signed-off-by: Brian DeHamer <[email protected]>
1 parent 7ab8300 commit cbfd002

File tree

2 files changed

+12
-4
lines changed

2 files changed

+12
-4
lines changed

README.md

+5-3
Original file line numberDiff line numberDiff line change
@@ -109,9 +109,11 @@ See [action.yml](action.yml)
109109

110110
<!-- markdownlint-disable MD013 -->
111111

112-
| Name | Description | Example |
113-
| ------------- | -------------------------------------------------------------- | ---------------------- |
114-
| `bundle-path` | Absolute path to the file containing the generated attestation | `/tmp/attestaion.json` |
112+
| Name | Description | Example |
113+
| ----------------- | -------------------------------------------------------------- | ------------------------------------------------ |
114+
| `attestation-id` | GitHub ID for the attestation | `123456` |
115+
| `attestation-url` | URL for the attestation summary | `https://github.com/foo/bar/attestations/123456` |
116+
| `bundle-path` | Absolute path to the file containing the generated attestation | `/tmp/attestation.json` |
115117

116118
<!-- markdownlint-enable MD013 -->
117119

action.yml

+7-1
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,12 @@ outputs:
5151
bundle-path:
5252
description: 'The path to the file containing the attestation bundle.'
5353
value: ${{ steps.attest.outputs.bundle-path }}
54+
attestation-id:
55+
description: 'The ID of the attestation.'
56+
value: ${{ steps.attest.outputs.attestation-id }}
57+
attestation-url:
58+
description: 'The URL for the attestation summary.'
59+
value: ${{ steps.attest.outputs.attestation-url }}
5460

5561
runs:
5662
using: 'composite'
@@ -59,7 +65,7 @@ runs:
5965
id: generate-sbom-predicate
6066
with:
6167
sbom-path: ${{ inputs.sbom-path }}
62-
- uses: actions/attest@v2.0.1
68+
- uses: actions/attest@v2.1.0
6369
id: attest
6470
with:
6571
subject-path: ${{ inputs.subject-path }}

0 commit comments

Comments
 (0)