ci: grant pull-requests:read on lint-pr-title caller#270
Merged
kinyoklion merged 1 commit intomainfrom May 7, 2026
Merged
Conversation
Without an explicit `permissions:` block the caller workflow inherits the default scope, which on this repo is `pull-requests: none`. The nested reusable workflow at launchdarkly/gh-actions/.github/workflows/lint-pr-title.yml@main requests `pull-requests: read`, so GitHub rejects the workflow with "is requesting 'pull-requests: read', but is only allowed 'pull-requests: none'". Granting the read permission at the caller is the minimal scope the reusable workflow needs to inspect the PR title.
joker23
approved these changes
May 7, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
The reusable workflow at `launchdarkly/gh-actions/.github/workflows/lint-pr-title.yml@main` requests `pull-requests: read`. The caller workflow in this repo (`.github/workflows/lint-pr-title.yml`) has no `permissions:` block, so it inherits the default scope which on this repo is `pull-requests: none`. GitHub rejects every run of the caller with:
The fix is a three-line addition declaring the minimum scope the reusable workflow needs:
```yaml
permissions:
pull-requests: read
```
Test plan
Note
Low Risk
Low risk because it only narrows/sets GitHub Actions permissions for a single workflow and doesn’t affect application runtime behavior.
Overview
Fixes the
Lint PR titleGitHub Actions workflow failing to start by explicitly granting minimum required permissions (permissions: pull-requests: read) to the caller workflow when invoking the reusablelaunchdarkly/gh-actionslint workflow.Reviewed by Cursor Bugbot for commit 314693c. Bugbot is set up for automated code reviews on this repo. Configure here.