-
Notifications
You must be signed in to change notification settings - Fork 295
Update MCP gateway GitHub guard terminology #20096
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -265,7 +265,7 @@ func TestValidateGitHubGuardPolicy(t *testing.T) { | |
| toolsMap: map[string]any{ | ||
| "github": map[string]any{ | ||
| "repos": "all", | ||
| "min-integrity": "reader", | ||
| "min-integrity": "unapproved", | ||
|
||
| }, | ||
| }, | ||
| shouldError: false, | ||
|
|
@@ -275,7 +275,7 @@ func TestValidateGitHubGuardPolicy(t *testing.T) { | |
| toolsMap: map[string]any{ | ||
| "github": map[string]any{ | ||
| "repos": "public", | ||
| "min-integrity": "writer", | ||
| "min-integrity": "approved", | ||
| }, | ||
| }, | ||
| shouldError: false, | ||
|
|
@@ -304,7 +304,7 @@ func TestValidateGitHubGuardPolicy(t *testing.T) { | |
| name: "missing repos field", | ||
| toolsMap: map[string]any{ | ||
| "github": map[string]any{ | ||
| "min-integrity": "reader", | ||
| "min-integrity": "unapproved", | ||
| }, | ||
| }, | ||
| shouldError: true, | ||
|
|
@@ -336,7 +336,7 @@ func TestValidateGitHubGuardPolicy(t *testing.T) { | |
| toolsMap: map[string]any{ | ||
| "github": map[string]any{ | ||
| "repos": "private", | ||
| "min-integrity": "reader", | ||
| "min-integrity": "unapproved", | ||
| }, | ||
| }, | ||
| shouldError: true, | ||
|
|
@@ -347,7 +347,7 @@ func TestValidateGitHubGuardPolicy(t *testing.T) { | |
| toolsMap: map[string]any{ | ||
| "github": map[string]any{ | ||
| "repos": []any{}, | ||
| "min-integrity": "reader", | ||
| "min-integrity": "unapproved", | ||
| }, | ||
| }, | ||
| shouldError: true, | ||
|
|
@@ -358,7 +358,7 @@ func TestValidateGitHubGuardPolicy(t *testing.T) { | |
| toolsMap: map[string]any{ | ||
| "github": map[string]any{ | ||
| "repos": []any{"Owner/repo"}, | ||
| "min-integrity": "reader", | ||
| "min-integrity": "unapproved", | ||
| }, | ||
| }, | ||
| shouldError: true, | ||
|
|
@@ -369,7 +369,7 @@ func TestValidateGitHubGuardPolicy(t *testing.T) { | |
| toolsMap: map[string]any{ | ||
| "github": map[string]any{ | ||
| "repos": []any{"just-a-name"}, | ||
| "min-integrity": "reader", | ||
| "min-integrity": "unapproved", | ||
| }, | ||
| }, | ||
| shouldError: true, | ||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The PR description states "reader → unapproved, writer → approved, merged and none remain unchanged," but the previous schema enum was
["reader", "writer", "maintainer", "admin"]. The valuesmergedandnonewere not present in the old schema at all, andmaintainerandadminare removed with no documented mapping. The PR description is inaccurate regarding what was changed in the schema — this discrepancy may be confusing to reviewers and contributors trying to understand the migration path.