Skip to content

Commit 82d8846

Browse files
ejfineclaude
andcommitted
Pin release tag to CI-verified commit via target_commitish
On the executable path there is no create-tag job, so action-gh-release auto-creates the tag when the release job runs. Set target_commitish to github.sha so the tag points at the commit that passed CI in guard, not whatever is main HEAD at release time. No-op on the library path where the tag already exists. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
1 parent 4723d2d commit 82d8846

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

‎template/.github/workflows/release.yaml.jinja‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -406,6 +406,7 @@ jobs:
406406
uses: softprops/action-gh-release@{% endraw %}{{ gha_action_gh_release }}{% raw %}
407407
with:
408408
tag_name: v${{ needs.guard.outputs.version }}
409+
target_commitish: ${{ github.sha }}
409410
name: {% endraw %}{{ repo_name }}{% raw %} v${{ needs.guard.outputs.version }}
410411
generate_release_notes: true{% endraw %}{% if deploy_as_executable %}{% raw %}
411412
fail_on_unmatched_files: true

0 commit comments

Comments
 (0)