Skip to content

fix(firestartr-bootstrap): handle modern GitHub API permission values in collaborator check - #478

Open
ricardosacristan wants to merge 3 commits into
mainfrom
fix/validations-github-permission-values
Open

fix(firestartr-bootstrap): handle modern GitHub API permission values in collaborator check#478
ricardosacristan wants to merge 3 commits into
mainfrom
fix/validations-github-permission-values

Conversation

@ricardosacristan

Copy link
Copy Markdown

Fixes #477

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Updates firestartr-bootstrap’s PAT validation to accept GitHub’s modern legacy base role permission strings returned by the collaborators permission endpoint, preventing false validation failures during bootstrap.

Changes:

  • Treat write as sufficient write access in the collaborator permission check.
  • Treat read as insufficient (read-only) access in the collaborator permission check.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread firestartr-bootstrap/validations.go Outdated
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.

[firestartr-bootstrap] Fix "received an unexpected permission result: write" on CmdValidateBootstrap

2 participants