From cbfd0027ae731a5892db25ecd226930d7ffd19eb Mon Sep 17 00:00:00 2001 From: Brian DeHamer Date: Mon, 9 Dec 2024 13:43:10 -0800 Subject: [PATCH] add attestation-id and attestation-url outputs (#137) Signed-off-by: Brian DeHamer --- README.md | 8 +++++--- action.yml | 8 +++++++- 2 files changed, 12 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index f2a95bc..d3da3e9 100644 --- a/README.md +++ b/README.md @@ -109,9 +109,11 @@ See [action.yml](action.yml) -| Name | Description | Example | -| ------------- | -------------------------------------------------------------- | ---------------------- | -| `bundle-path` | Absolute path to the file containing the generated attestation | `/tmp/attestaion.json` | +| Name | Description | Example | +| ----------------- | -------------------------------------------------------------- | ------------------------------------------------ | +| `attestation-id` | GitHub ID for the attestation | `123456` | +| `attestation-url` | URL for the attestation summary | `https://github.com/foo/bar/attestations/123456` | +| `bundle-path` | Absolute path to the file containing the generated attestation | `/tmp/attestation.json` | diff --git a/action.yml b/action.yml index 3d53ca1..9a92357 100644 --- a/action.yml +++ b/action.yml @@ -51,6 +51,12 @@ outputs: bundle-path: description: 'The path to the file containing the attestation bundle.' value: ${{ steps.attest.outputs.bundle-path }} + attestation-id: + description: 'The ID of the attestation.' + value: ${{ steps.attest.outputs.attestation-id }} + attestation-url: + description: 'The URL for the attestation summary.' + value: ${{ steps.attest.outputs.attestation-url }} runs: using: 'composite' @@ -59,7 +65,7 @@ runs: id: generate-sbom-predicate with: sbom-path: ${{ inputs.sbom-path }} - - uses: actions/attest@v2.0.1 + - uses: actions/attest@v2.1.0 id: attest with: subject-path: ${{ inputs.subject-path }}