Skip to content

Commit 0ac3c9c

Browse files
authored
Merge branch 'main' into tmelliottjr/update-projects-tools
2 parents 3c72fef + b466148 commit 0ac3c9c

File tree

4 files changed

+22
-2
lines changed

4 files changed

+22
-2
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

Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
FROM golang:1.25.3-alpine AS build
1+
FROM golang:1.25.4-alpine AS build
22
ARG VERSION="dev"
33

44
# Set the working directory

README.md

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

1265+
## Lockdown Mode
1266+
1267+
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.
1268+
1269+
```bash
1270+
./github-mcp-server --lockdown-mode
1271+
```
1272+
1273+
When running with Docker, set the corresponding environment variable:
1274+
1275+
```bash
1276+
docker run -i --rm \
1277+
-e GITHUB_PERSONAL_ACCESS_TOKEN=<your-token> \
1278+
-e GITHUB_LOCKDOWN_MODE=1 \
1279+
ghcr.io/github/github-mcp-server
1280+
```
1281+
1282+
At the moment lockdown mode applies to the issue read toolset, but it is designed to extend to additional data surfaces over time.
1283+
12651284
## i18n / Overriding Descriptions
12661285

12671286
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

0 commit comments

Comments
 (0)