Skip to content

ci: grant pull-requests:read so lint-pr-title workflow starts#357

Merged
kinyoklion merged 1 commit into
mainfrom
devin/1778261671-fix-lint-pr-title-permissions
May 8, 2026
Merged

ci: grant pull-requests:read so lint-pr-title workflow starts#357
kinyoklion merged 1 commit into
mainfrom
devin/1778261671-fix-lint-pr-title-permissions

Conversation

@kinyoklion
Copy link
Copy Markdown
Member

@kinyoklion kinyoklion commented May 8, 2026

Summary

Adds permissions: pull-requests: read at the workflow level in .github/workflows/lint-pr-title.yml. The reusable workflow at launchdarkly/gh-actions/.github/workflows/lint-pr-title.yml now declares permissions: pull-requests: read at the job level (per launchdarkly/gh-actions#86), and a reusable workflow can only request a subset of permissions the caller grants. Without an explicit permissions block in the caller, the called job fails with startup_failure.

Same fix as launchdarkly/sdk-meta#429, applied across SDK repositories.

Review & Testing Checklist for Human

  • Verify the Lint PR title workflow run on this PR completes successfully (no startup_failure)

Notes

This is part of a batch fix applied to all SDK repos that use the reusable lint-pr-title workflow. No application code is changed.

Link to Devin session: https://app.devin.ai/sessions/c7b96da5c9074500aa684bc9a9ba1c31
Requested by: @kinyoklion


Note

Low Risk
Low risk workflow-only change that only adjusts GitHub Actions permissions and does not affect application code.

Overview
Ensures the reusable lint-pr-title workflow can run on pull_request_target events by explicitly adding workflow-level permissions: pull-requests: read, preventing startup_failure due to insufficient caller permissions.

Reviewed by Cursor Bugbot for commit 5645129. Bugbot is set up for automated code reviews on this repo. Configure here.

Co-Authored-By: rlamb@launchdarkly.com <4955475+kinyoklion@users.noreply.github.com>
@devin-ai-integration
Copy link
Copy Markdown
Contributor

🤖 Devin AI Engineer

I'll be helping with this pull request! Here's what you should know:

✅ I will automatically:

  • Address comments on this PR. Add '(aside)' to your comment to have me ignore it.
  • Look at CI failures and help fix them

Note: I can only respond to comments from users who have write access to this repository.

⚙️ Control Options:

  • Disable automatic comment and CI monitoring

@kinyoklion kinyoklion marked this pull request as ready for review May 8, 2026 17:42
@kinyoklion kinyoklion requested a review from a team as a code owner May 8, 2026 17:42
@kinyoklion kinyoklion merged commit 8f85c46 into main May 8, 2026
5 checks passed
@kinyoklion kinyoklion deleted the devin/1778261671-fix-lint-pr-title-permissions branch May 8, 2026 20:37
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.

2 participants