Skip to content

Commit f1e9c81

Browse files
authored
Merge branch 'main' into dependabot/docker/golang-1.25.4-alpine
2 parents a5a6d9d + 0a4b921 commit f1e9c81

File tree

5 files changed

+21
-4
lines changed

5 files changed

+21
-4
lines changed

.github/workflows/lint.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,6 @@ jobs:
1818
with:
1919
go-version: stable
2020
- name: golangci-lint
21-
uses: golangci/golangci-lint-action@v8
21+
uses: golangci/golangci-lint-action@v9
2222
with:
2323
version: v2.5

README.md

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1256,6 +1256,25 @@ docker run -i --rm \
12561256
ghcr.io/github/github-mcp-server
12571257
```
12581258

1259+
## Lockdown Mode
1260+
1261+
Lockdown mode limits the content that the server will surface from public repositories. When enabled, requests that fetch issue details will return an error if the issue was created by someone who does not have push access to the repository. Private repositories are unaffected, and collaborators can still access their own issues.
1262+
1263+
```bash
1264+
./github-mcp-server --lockdown-mode
1265+
```
1266+
1267+
When running with Docker, set the corresponding environment variable:
1268+
1269+
```bash
1270+
docker run -i --rm \
1271+
-e GITHUB_PERSONAL_ACCESS_TOKEN=<your-token> \
1272+
-e GITHUB_LOCKDOWN_MODE=1 \
1273+
ghcr.io/github/github-mcp-server
1274+
```
1275+
1276+
At the moment lockdown mode applies to the issue read toolset, but it is designed to extend to additional data surfaces over time.
1277+
12591278
## i18n / Overriding Descriptions
12601279

12611280
The descriptions of the tools can be overridden by creating a

docs/installation-guides/README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -94,4 +94,5 @@ After installation, you may want to explore:
9494
- **Toolsets**: Enable/disable specific GitHub API capabilities
9595
- **Read-Only Mode**: Restrict to read-only operations
9696
- **Dynamic Tool Discovery**: Enable tools on-demand
97+
- **Lockdown Mode**: Hide public issue details created by users without push access
9798

go.mod

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@ module github.com/github/github-mcp-server
33
go 1.24.0
44

55
require (
6-
github.com/google/go-github/v76 v76.0.0
76
github.com/google/go-github/v77 v77.0.0
87
github.com/josephburnett/jd v1.9.2
98
github.com/mark3labs/mcp-go v0.36.0

go.sum

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,8 +26,6 @@ github.com/google/go-cmp v0.7.0 h1:wk8382ETsv4JYUZwIsn6YpYiWiBsYLSJiTsyBybVuN8=
2626
github.com/google/go-cmp v0.7.0/go.mod h1:pXiqmnSA92OHEEa9HXL2W4E7lf9JzCmGVUdgjX3N/iU=
2727
github.com/google/go-github/v71 v71.0.0 h1:Zi16OymGKZZMm8ZliffVVJ/Q9YZreDKONCr+WUd0Z30=
2828
github.com/google/go-github/v71 v71.0.0/go.mod h1:URZXObp2BLlMjwu0O8g4y6VBneUj2bCHgnI8FfgZ51M=
29-
github.com/google/go-github/v76 v76.0.0 h1:MCa9VQn+VG5GG7Y7BAkBvSRUN3o+QpaEOuZwFPJmdFA=
30-
github.com/google/go-github/v76 v76.0.0/go.mod h1:38+d/8pYDO4fBLYfBhXF5EKO0wA3UkXBjfmQapFsNCQ=
3129
github.com/google/go-github/v77 v77.0.0 h1:9DsKKbZqil5y/4Z9mNpZDQnpli6PJbqipSuuNdcbjwI=
3230
github.com/google/go-github/v77 v77.0.0/go.mod h1:c8VmGXRUmaZUqbctUcGEDWYnMrtzZfJhDSylEf1wfmA=
3331
github.com/google/go-querystring v1.1.0 h1:AnCroh3fv4ZBgVIf1Iwtovgjaw/GiKJo8M8yD/fhyJ8=

0 commit comments

Comments
 (0)