From 48e18ef77663cbd6cf1407caea35950bed00d780 Mon Sep 17 00:00:00 2001 From: Ivan Dlugos Date: Mon, 2 Feb 2026 12:51:54 +0100 Subject: [PATCH 1/3] ci(release): migrate to Craft reusable workflow Switch from action-prepare-release to the Craft reusable workflow, which is simpler and handles authentication/checkout internally. - Version input is now optional, defaults to 'auto' (inferred from commits) - Uses secrets: inherit to pass required credentials See https://craft.sentry.dev/github-actions/ for documentation. Co-Authored-By: Claude Opus 4.5 --- .github/workflows/release.yml | 34 +++++++--------------------------- 1 file changed, 7 insertions(+), 27 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index ce163aed..58d9cb4e 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -1,39 +1,19 @@ name: Release -permissions: - contents: read - on: workflow_dispatch: inputs: version: - description: Version to release - required: true + description: 'Version to release (automatically inferred form commits if not provided)' + required: false force: description: Force a release even when there are release-blockers (optional) required: false jobs: release: - runs-on: ubuntu-latest - name: "Release a new version" - steps: - - name: Get auth token - id: token - uses: actions/create-github-app-token@5d869da34e18e7287c1daad50e0b8ea0f506ce69 # v1.11.0 - with: - app-id: ${{ vars.SENTRY_RELEASE_BOT_CLIENT_ID }} - private-key: ${{ secrets.SENTRY_RELEASE_BOT_PRIVATE_KEY }} - - - uses: actions/checkout@v4 - with: - token: ${{ steps.token.outputs.token }} - fetch-depth: 0 - - - name: Prepare release - uses: getsentry/action-prepare-release@v1 - env: - GITHUB_TOKEN: ${{ steps.token.outputs.token }} - with: - version: ${{ github.event.inputs.version }} - force: ${{ github.event.inputs.force }} \ No newline at end of file + uses: getsentry/craft/.github/workflows/release.yml@v2 + with: + version: ${{ inputs.version || 'auto' }} + force: ${{ inputs.force || 'false' }} + secrets: inherit From 97c2affdb2b374c5fb33c6042e99d157c3990b45 Mon Sep 17 00:00:00 2001 From: Ivan Dlugos Date: Mon, 2 Feb 2026 12:53:29 +0100 Subject: [PATCH 2/3] chore: bump craft minVersion to 2.20.1 Co-Authored-By: Claude Opus 4.5 --- .craft.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.craft.yml b/.craft.yml index d52a2de4..6a25ffd3 100644 --- a/.craft.yml +++ b/.craft.yml @@ -1,4 +1,4 @@ -minVersion: 0.23.1 +minVersion: 2.20.1 changelogPolicy: auto preReleaseCommand: pwsh -cwa '' artifactProvider: From 78f9dd28ded304335c1fb5c7cab0cf3b5fdac2bf Mon Sep 17 00:00:00 2001 From: Ivan Dlugos Date: Mon, 2 Feb 2026 12:56:32 +0100 Subject: [PATCH 3/3] fix: add empty permissions block to satisfy CodeQL Co-Authored-By: Claude Opus 4.5 --- .github/workflows/release.yml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 58d9cb4e..fcf9e46d 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -1,5 +1,8 @@ name: Release +permissions: + contents: write + on: workflow_dispatch: inputs: