Skip to content

ci(release): Grant statuses write to the changelog preview - #740

Merged
lcian merged 2 commits into
mainfrom
ci/changelog-preview-permissions
Oct 29, 2026
Merged

lcian merged 2 commits into
mainfrom
ci/changelog-preview-permissions

Conversation

@sentry-junior

@sentry-junior sentry-junior Bot commented Oct 29, 2026

Copy link
Copy Markdown
Contributor

Fixes the changelog preview added in #737, which fails at startup on every PR (run on #700: "likely failed because of a workflow file issue").

Craft's reusable preview job requests contents: read, pull-requests: write and statuses: write. A called workflow can't get more permissions than its caller, and our caller only granted the first two. This adds statuses: write, matching the old per-client preview workflows.

The preview runs from the base branch (pull_request_target), so it starts working on other PRs once this merges.

#skip-changelog

via @lcian.

--

View Junior Session [Sentry]

Craft's reusable preview job requests contents read, pull-requests write
and statuses write. A called workflow can't get more permissions than its
caller, so without statuses write every run fails at startup.

Co-Authored-By: Lorenzo Cian <17258265+lcian@users.noreply.github.com>
@sentry-junior
sentry-junior Bot requested a review from a team as a code owner October 29, 2026 12:34
Comment thread .github/workflows/changelog-preview.yml Outdated
@codecov

codecov Bot commented Oct 29, 2026 •

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 91.58%. Comparing base (23e6e45) to head (d804fe7).

Additional details and impacted files
@@           Coverage Diff           @@
##             main     #740   +/-   ##
=======================================
  Coverage   91.58%   91.58%           
=======================================
  Files         116      116           
  Lines       22081    22081           
=======================================
  Hits        20223    20223           
  Misses       1858     1858           
Components Coverage Δ
Rust Backend 94.75% <ø> (ø)
Rust Client 84.29% <ø> (ø)
Python Client 93.88% <ø> (ø)

☔ View full report in Codecov by Harness.
📢 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.

@lcian
lcian enabled auto-merge (squash) October 29, 2026 12:35
@lcian
lcian merged commit 1464ea5 into main Oct 29, 2026
25 checks passed
@lcian
lcian deleted the ci/changelog-preview-permissions branch October 29, 2026 12:39
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