Skip to content

fix(ci): use Craft action directly instead of reusable workflow#33

Merged
BYK merged 1 commit intomainfrom
fix/use-craft-action-directly
Jan 22, 2026
Merged

fix(ci): use Craft action directly instead of reusable workflow#33
BYK merged 1 commit intomainfrom
fix/use-craft-action-directly

Conversation

@BYK
Copy link
Member

@BYK BYK commented Jan 22, 2026

Summary

The reusable Craft workflow has a bug where it runs Craft's internal build/test jobs for external callers (see getsentry/craft#727).

Use the getsentry/craft@v2 action directly instead, like sentry-python does.

@github-actions
Copy link
Contributor

github-actions bot commented Jan 22, 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).


Bug Fixes 🐛

  • (ci) Use Craft action directly instead of reusable workflow by BYK in #33

🤖 This preview updates automatically when you update the PR.

@BYK BYK force-pushed the fix/use-craft-action-directly branch from b3f4df6 to 45e237d Compare January 22, 2026 01:26
The reusable workflow has a bug where it runs Craft's internal build
jobs for external callers. Using the action directly avoids this issue.

Uses the release bot token for proper permissions, matching sentry-python.
@BYK BYK force-pushed the fix/use-craft-action-directly branch from 45e237d to d91a736 Compare January 22, 2026 01:27
@BYK BYK marked this pull request as ready for review January 22, 2026 01:28
@BYK BYK merged commit 2e5f342 into main Jan 22, 2026
4 checks passed
@BYK BYK deleted the fix/use-craft-action-directly branch January 22, 2026 01:28
Copy link

@cursor cursor bot left a comment

Choose a reason for hiding this comment

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

Cursor Bugbot has reviewed your changes and found 1 potential issue.

Bugbot Autofix is OFF. To automatically fix reported issues with Cloud Agents, enable Autofix in the Cursor dashboard.

env:
GITHUB_TOKEN: ${{ steps.token.outputs.token }}
with:
version: ${{ inputs.version }}
Copy link

Choose a reason for hiding this comment

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

Missing version default could cause release failures

Medium Severity

The version input previously had default: 'auto', ensuring a valid value was always passed to the craft action. Now with required: false and no default, triggering the workflow without specifying a version passes an empty string to version: ${{ inputs.version }}. If the craft action doesn't treat empty string as equivalent to 'auto', the release could fail or behave unexpectedly. A fallback like ${{ inputs.version || 'auto' }} would preserve the previous behavior.

Additional Locations (1)

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.

1 participant