From d2650881638df7b20c8b6be7ce4bbc52d28919d0 Mon Sep 17 00:00:00 2001 From: Dax Date: Mon, 26 Oct 2026 19:15:59 -0400 Subject: [PATCH] fix(release): push stable tags with the release deploy key (#59428) --- .github/workflows/release.yml | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 6ef2a560509..2a78ad3c11b 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -76,8 +76,10 @@ jobs: tag: needs: plan runs-on: ubuntu-24.04 + # Stable tags are pushed with the release deploy key, the only non-ci-owners actor the v* tag ruleset admits. + environment: ${{ needs.plan.outputs.channel == 'latest' && needs.plan.outputs.dry_run != 'true' && 'release' || '' }} permissions: - contents: write + contents: read env: &env OPENCODE_VERSION: ${{ needs.plan.outputs.version }} OPENCODE_CHANNEL: ${{ needs.plan.outputs.channel }} @@ -89,6 +91,8 @@ jobs: - name: Check out if: needs.plan.outputs.channel == 'latest' uses: actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5 # v4.3.1 + with: + ssh-key: ${{ secrets.RELEASE_TAG_KEY }} - id: tag name: Tag if: needs.plan.outputs.channel == 'latest'