Skip to content

Commit 7668571

Browse files
authored
add attestation-id and attestation-url outputs (#415)
Signed-off-by: Brian DeHamer <bdehamer@github.com>
1 parent 9ad33ff commit 7668571

File tree

2 files changed

+12
-4
lines changed

2 files changed

+12
-4
lines changed

README.md

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -103,9 +103,11 @@ See [action.yml](action.yml)
103103

104104
<!-- markdownlint-disable MD013 -->
105105

106-
| Name | Description | Example |
107-
| ------------- | -------------------------------------------------------------- | ----------------------- |
108-
| `bundle-path` | Absolute path to the file containing the generated attestation | `/tmp/attestation.json` |
106+
| Name | Description | Example |
107+
| ----------------- | -------------------------------------------------------------- | ------------------------------------------------ |
108+
| `attestation-id` | GitHub ID for the attestation | `123456` |
109+
| `attestation-url` | URL for the attestation summary | `https://github.com/foo/bar/attestations/123456` |
110+
| `bundle-path` | Absolute path to the file containing the generated attestation | `/tmp/attestation.json` |
109111

110112
<!-- markdownlint-enable MD013 -->
111113

action.yml

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,13 +46,19 @@ outputs:
4646
bundle-path:
4747
description: 'The path to the file containing the attestation bundle.'
4848
value: ${{ steps.attest.outputs.bundle-path }}
49+
attestation-id:
50+
description: 'The ID of the attestation.'
51+
value: ${{ steps.attest.outputs.attestation-id }}
52+
attestation-url:
53+
description: 'The URL for the attestation summary.'
54+
value: ${{ steps.attest.outputs.attestation-url }}
4955

5056
runs:
5157
using: 'composite'
5258
steps:
5359
- uses: actions/attest-build-provenance/predicate@36fa7d009e22618ca7cd599486979b8150596c74 # predicate@1.1.4
5460
id: generate-build-provenance-predicate
55-
- uses: actions/attest@v2.0.1
61+
- uses: actions/attest@v2.1.0
5662
id: attest
5763
with:
5864
subject-path: ${{ inputs.subject-path }}

0 commit comments

Comments
 (0)