Skip to content

ci(release): Switch from action-prepare-release to Craft#1167

Merged
BYK merged 12 commits intomasterfrom
ci/migrate-to-craft-action
Jan 20, 2026
Merged

ci(release): Switch from action-prepare-release to Craft#1167
BYK merged 12 commits intomasterfrom
ci/migrate-to-craft-action

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.

BYK added 2 commits January 9, 2026 18:00
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
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.
Comment on lines 35 to 36
version: ${{ inputs.version }}
force: ${{ inputs.force }}

This comment was marked as outdated.

env:
GITHUB_TOKEN: ${{ steps.token.outputs.token }}
with:
version: ${{ github.event.inputs.version }}

This comment was marked as outdated.

description: Version to release
required: true
description: Version to release (or "auto")
required: false
Copy link

Choose a reason for hiding this comment

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

Missing default value for optional version input

Medium Severity

The version input was changed from required: true to required: false and the description mentions "(or "auto")", but no default value is specified. When users trigger the workflow without providing a version, github.event.inputs.version resolves to an empty string rather than "auto". This empty string gets passed to the getsentry/craft action, which may cause unexpected behavior or failure if the action doesn't treat empty strings as "auto".

Fix in Cursor Fix in Web

@github-actions
Copy link

github-actions bot commented Jan 13, 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 ✨

  • Refactor log serialization to match docs by giortzisg in #1169
  • Add propagateTraceparent option by giortzisg in #1161
  • Http client integration by aldy505 in #876

Build / dependencies / internal 🔧

Deps

  • Bump actions/create-github-app-token from 2.1.4 to 2.2.1 by dependabot in #1164
  • Bump golangci/golangci-lint-action from 8.0.0 to 9.2.0 by dependabot in #1165
  • Bump codecov/codecov-action from 5.5.1 to 5.5.2 by dependabot in #1163
  • Bump actions/checkout from 5 to 6 by dependabot in #1162
  • Bump actions/cache from 4 to 5 by dependabot in #1166
  • Bump github.com/sirupsen/logrus from 1.9.0 to 1.9.3 in /iris by dependabot in #1152

Other

  • (release) Switch from action-prepare-release to Craft by BYK in #1167

🤖 This preview updates automatically when you update the PR.

Copy link
Contributor

@giortzisg giortzisg left a comment

Choose a reason for hiding this comment

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

Hey @BYK thanks for the contribution, that's a nice change. While skimming through the craft docs, the comment from the bug bot seems to be accurate, so let's change that and then we can merge this.

@BYK
Copy link
Member Author

BYK commented Jan 20, 2026

@giortzisg nope as we now support auto versioning and that kicks in when the version is empty. We just may need to set

versioning:
  policy: auto

in .craft.yml file

@BYK BYK merged commit c551ab5 into master Jan 20, 2026
18 checks passed
@BYK BYK deleted the ci/migrate-to-craft-action branch January 20, 2026 11:36
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.

2 participants