Skip to content

Fix StandardRB check failing on Dependabot PRs#59

Merged
dduugg merged 1 commit intomainfrom
fix-standardrb-checks-permission
Mar 6, 2026
Merged

Fix StandardRB check failing on Dependabot PRs#59
dduugg merged 1 commit intomainfrom
fix-standardrb-checks-permission

Conversation

@dduugg
Copy link
Contributor

@dduugg dduugg commented Mar 6, 2026

Summary

  • The standardrb/standard-ruby-action creates a GitHub Check Run via the API, which requires checks: write permission
  • Dependabot PRs run with a restricted GITHUB_TOKEN that doesn't have this by default, causing a 403 and a failed check
  • Adds explicit checks: write (and contents: read) permissions to the job to fix this

Fixes the failing check in #57.

Test plan

Dependabot PRs run with a restricted GITHUB_TOKEN that lacks checks:write
by default, causing the standard-ruby-action to fail with a 403 when it
tries to create a Check Run. Explicitly granting checks: write (and
contents: read for checkout) fixes this.
@dduugg dduugg requested a review from a team as a code owner March 6, 2026 01:05
@github-project-automation github-project-automation bot moved this to Triage in Modularity Mar 6, 2026
@dduugg dduugg merged commit 63a2a6e into main Mar 6, 2026
10 checks passed
@dduugg dduugg deleted the fix-standardrb-checks-permission branch March 6, 2026 01:05
@github-project-automation github-project-automation bot moved this from Triage to Done in Modularity Mar 6, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

1 participant