Skip to content

Commit 7be741f

Browse files
committed
fix: remove release_ref option
The attest action includes `github.ref_name` which is the name of the triggering workflow in the attestation metadata. This should be the same reference used to create the release; otherwise, the attestation could fail later. Therefore, there should not be an option to create the release from a different ref than that used to create the attestation.
1 parent 46651b1 commit 7be741f

1 file changed

Lines changed: 1 addition & 5 deletions

File tree

action.yaml

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -14,10 +14,6 @@ inputs:
1414
description: "Mark the GitHub release as the latest (default: not marked as latest)"
1515
required: false
1616
default: "false"
17-
release-ref:
18-
description: "Git tag used as the release name and title (default: github.ref_name)"
19-
required: false
20-
default: ""
2117

2218
runs:
2319
using: "composite"
@@ -83,7 +79,7 @@ runs:
8379
shell: bash
8480
env:
8581
GH_TOKEN: ${{ inputs.github-token }}
86-
RELEASE_REF: ${{ inputs.release-ref || github.ref_name }}
82+
RELEASE_REF: ${{ github.ref_name }}
8783
MARK_AS_LATEST: ${{ inputs.mark-as-latest }}
8884
REPO: ${{ github.repository }}
8985
run: |

0 commit comments

Comments
 (0)