Skip to content

fix(ci): fix ready workflow#9633

Merged
Hunter Lovell (hntrl) merged 1 commit into
mainfrom
cb/fix-ready-workflow
Dec 12, 2025
Merged

fix(ci): fix ready workflow#9633
Hunter Lovell (hntrl) merged 1 commit into
mainfrom
cb/fix-ready-workflow

Conversation

@christian-bromann

Copy link
Copy Markdown
Member

The issue is that this workflow fails when the pull request comes from a fork. When a PR originates from a fork, the GITHUB_TOKEN has restricted permissions and cannot write labels to the base repository - this is a GitHub security feature.

The fix adds a new condition: github.event.pull_request.head.repo.full_name == github.repository

This checks if the PR's source repository matches the base repository. Now:

  • PRs from the main repo's branches → condition passes, label gets added ✓
  • PRs from forks → condition fails, job is skipped gracefully (no error) ✓

@changeset-bot

changeset-bot Bot commented Dec 12, 2025

Copy link
Copy Markdown

⚠️ No Changeset found

Latest commit: c81d384

Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go. If these changes should result in a version bump, you need to add a changeset.

This PR includes no changesets

When changesets are added to this PR, you'll see the packages that this PR includes changesets for and the associated semver types

Click here to learn what changesets are, and how to add one.

Click here if you're a maintainer who wants to add a changeset to this PR

@github-actions github-actions Bot added the ci label Dec 12, 2025
@hntrl Hunter Lovell (hntrl) merged commit 1db978c into main Dec 12, 2025
6 checks passed
@github-actions github-actions Bot added the ready label Dec 12, 2025
@hntrl Hunter Lovell (hntrl) deleted the cb/fix-ready-workflow branch December 12, 2025 19:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants