Skip to content

Commit cceb5cf

Browse files
fix(oauth): request repository deletion scope
Include delete_repo in the supported OAuth scope set used by stdio login, HTTP protected-resource metadata, and tool filtering. Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com> Copilot-Session: 4b04480c-c2e9-483e-9b0f-34830b76a2f8
1 parent 2dce589 commit cceb5cf

2 files changed

Lines changed: 2 additions & 0 deletions

File tree

pkg/http/oauth/oauth.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@ const (
2828
// requirements when scopes change.
2929
var SupportedScopes = []string{
3030
"repo",
31+
"delete_repo",
3132
"read:org",
3233
"read:user",
3334
"user:email",

pkg/http/oauth/oauth_test.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -569,6 +569,7 @@ func TestSupportedScopes(t *testing.T) {
569569
// Verify all expected scopes are present
570570
expectedScopes := []string{
571571
"repo",
572+
"delete_repo",
572573
"read:org",
573574
"read:user",
574575
"user:email",

0 commit comments

Comments
 (0)