Skip to content

Commit 25d5f13

Browse files
Merge pull request #152 from kevinbackhouse/auth_token
Replace GITHUB_AUTH_HEADER with GH_TOKEN
2 parents 5850870 + bb2a0e2 commit 25d5f13

4 files changed

Lines changed: 5 additions & 5 deletions

File tree

.github/workflows/smoketest.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ jobs:
5454
MODEL_TEMP: ${{ vars.SMOKETEST_TEMPERATURE }}
5555
AI_API_ENDPOINT: ${{ vars.SMOKETEST_ENDPOINT }}
5656
AI_API_TOKEN: ${{ secrets.AI_API_TOKEN }}
57-
GITHUB_AUTH_HEADER: "Bearer ${{ secrets.GITHUB_TOKEN }}"
57+
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
5858

5959
run: |
6060
source .venv/bin/activate

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -294,7 +294,7 @@ server_params:
294294
url: https://api.githubcopilot.com/mcp/
295295
#See https://github.com/github/github-mcp-server/blob/main/docs/remote-server.md
296296
headers:
297-
Authorization: "{{ env('GITHUB_AUTH_HEADER') }}"
297+
Authorization: "Bearer {{ env('GH_TOKEN') }}"
298298
optional_headers:
299299
X-MCP-Toolsets: "{{ env('GITHUB_MCP_TOOLSETS') }}"
300300
X-MCP-Readonly: "{{ env('GITHUB_MCP_READONLY') }}"

docker/run.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
# git clone https://github.com/GitHubSecurityLab/seclab-taskflow-agent.git
1313
# cd seclab-taskflow-agent/src
1414
# export AI_API_TOKEN=<My GitHub PAT>
15-
# export GITHUB_AUTH_HEADER=<My GitHub PAT>
15+
# export GH_TOKEN=<My GitHub PAT>
1616
# sudo -E ../docker/run.sh -p seclab_taskflow_agent.personalities.assistant 'explain modems to me please'
1717

1818
touch -a .env

src/seclab_taskflow_agent/toolboxes/github_official.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ server_params:
1010
url: https://api.githubcopilot.com/mcp/
1111
#See https://github.com/github/github-mcp-server/blob/main/docs/remote-server.md
1212
headers:
13-
Authorization: "{{ env('GITHUB_AUTH_HEADER') }}"
13+
Authorization: "Bearer {{ env('GH_TOKEN') }}"
1414
optional_headers:
1515
X-MCP-Toolsets: "{{ env('GITHUB_MCP_TOOLSETS') }}"
16-
X-MCP-Readonly: "{{ env('GITHUB_MCP_READONLY') }}"
16+
X-MCP-Readonly: "{{ env('GITHUB_MCP_READONLY') }}"

0 commit comments

Comments
 (0)