-
-
Notifications
You must be signed in to change notification settings - Fork 4.6k
ci(release): Switch from action-prepare-release to Craft #106005
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: master
Are you sure you want to change the base?
Conversation
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 - Update .craft.yml with versioning.policy: calver
Semver Impact of This PR🟢 Patch (bug fixes) 📋 Changelog PreviewThis is how your changes will appear in the changelog. New Features ✨Aci
Ai ConversationsAutopilot
Code Review
Dashboards
Dynamic Grouping
Dynamic Groups
Explorer
Grouping
Issues
Occurrences On Eap
Preprod
Projects
Replay
Seer
StoriesTop IssuesTracemetrics
Uptime
Other
Bug Fixes 🐛Aci
Alerts
Billing
Checkout
Code Mappings
Code Review
Codeowners
Dashboards
Explore
Grouping
Issues
Preprocessing
Preprod
Security
Seer
Stories
Tracemetrics
Ui
Uptime
Other
Documentation 📚
Build / dependencies / internal 🔧Aci
Admin
Alerts
Api
Ask Seer
Auth
Billing
Checkout
Code Review
Core
Dashboards
Discover
Explorer
Grouping
Insights
Issue Search
Layout
Llm Detector
Preprod
Scraps
Seer
Sentry Apps
Settings
Theme
Ui
Uptime
Other
Other
Plus 66 more 🤖 This preview updates automatically when you update the PR. |
.github/workflows/release.yml
Outdated
| version: ${{ github.event.inputs.version }} | ||
| force: ${{ github.event.inputs.force }} | ||
| calver: true | ||
| uses: getsentry/craft/.github/workflows/release.yml@v2 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Are these release tags immutable? We purposely pin all actions to sha's in sentry
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
They are not and it is on purpose. This should be okay for Craft.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
What's the harm in using the sha? It keeps convention of all the other actions in the repo so that's what I would prefer
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.
| app-id: ${{ vars.SENTRY_RELEASE_BOT_CLIENT_ID }} | ||
| private-key: ${{ secrets.SENTRY_RELEASE_BOT_PRIVATE_KEY }} | ||
| - uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7 | ||
| - uses: actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5 # v2 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Checkout action downgraded from v4 to v2
High Severity
The actions/checkout action was downgraded from v4.1.7 to v2 (as indicated by the comment # v2). This is inconsistent with all other workflows in the repository which use v4.1.7 (@692973e3d937129bcbf40652eb9f2f61becf3332). Version 2 is significantly older, uses deprecated Node.js 12, and lacks important security fixes and features present in v4. This appears to be an accidental regression.
|
|
||
| jobs: | ||
| changelog-preview: | ||
| uses: getsentry/craft/.github/workflows/changelog-preview.yml@v2 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Craft reusable workflow uses mutable tag instead of SHA (Bugbot Rules)
Medium Severity
The PR discussion explicitly states the team convention to "pin all actions to sha's in sentry." However, the changelog-preview.yml workflow references getsentry/craft/.github/workflows/changelog-preview.yml@v2 using a mutable tag, while release.yml in the same PR correctly SHA-pins the Craft action with @39ee616a6a58dc64797feecb145d66770492b66c. This inconsistency violates the stated team convention and could cause reproducibility issues if the v2 tag changes.
Summary
This PR migrates from the deprecated
action-prepare-releaseto the new Craft GitHub Actions.Changes
.github/workflows/release.ymlto Craft reusable workflow.craft.ymlwithversioning.policy: calverDocumentation
See https://getsentry.github.io/craft/github-actions/ for more information.