Skip to content

Conversation

@BYK
Copy link
Member

@BYK BYK commented Jan 9, 2026

Summary

This PR migrates from the deprecated action-prepare-release to the new Craft GitHub Actions.

Changes

  • Migrated .github/workflows/release.yml to Craft reusable workflow

Documentation

See https://getsentry.github.io/craft/github-actions/ for more information.

This PR migrates from the deprecated action-prepare-release to the new
Craft GitHub Actions (reusable workflow or composite action).

Changes:
- Migrate .github/workflows/release.yml to Craft reusable workflow
@github-actions
Copy link
Contributor

github-actions bot commented Jan 9, 2026

Semver Impact of This PR

🟢 Patch (bug fixes)

📋 Changelog Preview

This is how your changes will appear in the changelog.
Entries from this PR are highlighted with a left border (blockquote style).


New Features ✨

  • Added Main to SentryThread by bitsandfoxes in #4807

Build / dependencies / internal 🔧

Deps

  • Update Native SDK to v0.12.3 by github-actions in #4832
  • Update Java SDK to v8.29.0 by github-actions in #4817
  • Bump actions/download-artifact from 6.0.0 to 7.0.0 by dependabot in #4828
  • Bump docker/setup-buildx-action from 3.11.1 to 3.12.0 by dependabot in #4827
  • Bump github/codeql-action from 4.31.8 to 4.31.9 by dependabot in #4826
  • Bump getsentry/action-prepare-release from 1.6.4 to 1.6.6 by dependabot in #4825
  • Bump github/codeql-action from 4.31.5 to 4.31.8 by dependabot in #4813
  • Bump actions/cache from 4.3.0 to 5.0.1 by dependabot in #4812
  • Bump codecov/codecov-action from 5.5.1 to 5.5.2 by dependabot in #4811
  • Bump actions/upload-artifact from 5.0.0 to 6.0.0 by dependabot in #4810
  • Bump actions/create-github-app-token from 2.2.0 to 2.2.1 by dependabot in #4795

Other

  • (release) Switch from action-prepare-release to Craft by BYK in #4835
  • Remove trailing slash from workflow references by copilot-swe-agent in #4837
  • Fix Build of Compiler-Extension by Flash0ver in #4804

Other

  • test(integration): prevent auto-relaunch on Android by jpnurmi in #4833

🤖 This preview updates automatically when you update the PR.

Comment on lines 6 to 7
description: Version to release (or "auto")
required: false

This comment was marked as outdated.

@codecov
Copy link

codecov bot commented Jan 9, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 73.79%. Comparing base (2370080) to head (bee5f34).
⚠️ Report is 2 commits behind head on main.

Additional details and impacted files
@@           Coverage Diff           @@
##             main    #4835   +/-   ##
=======================================
  Coverage   73.79%   73.79%           
=======================================
  Files         483      483           
  Lines       17551    17551           
  Branches     3461     3461           
=======================================
  Hits        12952    12952           
  Misses       3746     3746           
  Partials      853      853           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

The previous migration incorrectly removed the GitHub App token
authentication step. This commit restores it by switching to the
composite action pattern which preserves the auth flow.
token: ${{ steps.token.outputs.token }}
fetch-depth: 0
- name: Prepare release
uses: getsentry/craft@39ee616a6a58dc64797feecb145d66770492b66c # v2
Copy link
Collaborator

@lucas-zimerman lucas-zimerman Jan 13, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

39ee616a6a58dc64797feecb145d66770492b66c has issues with releases, fixed on the latest version

Suggested change
uses: getsentry/craft@39ee616a6a58dc64797feecb145d66770492b66c # v2
uses: getsentry/craft@1c58bfd57bfd6a967b6f3fc92bead2c42ee698ce # v2


jobs:
changelog-preview:
uses: getsentry/craft/.github/workflows/changelog-preview.yml@v2
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Inconsistent Craft version pinning between workflows

Medium Severity

The PR reviewer noted issues with certain Craft versions and recommended pinning to a specific commit hash. The release.yml correctly pins to commit 1c58bfd57bfd6a967b6f3fc92bead2c42ee698ce, but the new changelog-preview.yml uses the mutable @v2 tag instead. If the v2 tag hasn't been updated to the fixed version, or if it later regresses, the changelog-preview workflow could use a problematic version. This inconsistent approach to version pinning goes against the reviewer's guidance.

Additional Locations (1)

Fix in Cursor Fix in Web


- name: Prepare release ${{ github.event.inputs.version }}
uses: getsentry/action-prepare-release@c8e1c2009ab08259029170132c384f03c1064c0e # v1.6.6
uses: getsentry/craft@1c58bfd57bfd6a967b6f3fc92bead2c42ee698ce # v2

This comment was marked as outdated.


- name: Prepare release ${{ github.event.inputs.version }}
uses: getsentry/action-prepare-release@c8e1c2009ab08259029170132c384f03c1064c0e # v1.6.6
uses: getsentry/craft@c6e2f04939b6ee67030588afbb5af76b127d8203 # v2
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Using Craft version with known release issues

High Severity · Bugbot Rules

The PR discussion indicates that the getsentry/craft commit being used has known issues with releases. A reviewer (@lucas-zimerman) suggested using commit 1c58bfd57bfd6a967b6f3fc92bead2c42ee698ce instead, noting that the current version "has issues with releases, fixed on the latest version." This feedback from the PR discussion has not been incorporated.

Fix in Cursor Fix in Web

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants