Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 18 additions & 0 deletions .github/workflows/changelog-preview.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
name: Changelog Preview
on:
pull_request:
types:
- opened
- synchronize
- reopened
- edited
- labeled
- unlabeled
permissions:
contents: write
pull-requests: write

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

secrets: inherit
10 changes: 7 additions & 3 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,15 +4,19 @@ on:
workflow_dispatch:
inputs:
version:
description: Version to release
required: true
description: Version to release (or "auto")
required: false
merge_target:
description: Target branch to merge into. Uses the default branch as a fallback (optional)
required: false
force:
description: Force a release even when there are release-blockers (optional)
required: false

permissions:
contents: write
pull-requests: write

jobs:
job_release:
runs-on: ubuntu-latest
Expand All @@ -31,7 +35,7 @@ jobs:
fetch-depth: 0

- 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

env:
GITHUB_TOKEN: ${{ steps.token.outputs.token }}
with:
Expand Down
Loading