Skip to content

Commit 71ffdfe

Browse files
Update comments and documentation.
1 parent 7f11f1e commit 71ffdfe

File tree

4 files changed

+7
-7
lines changed

4 files changed

+7
-7
lines changed

.devcontainer/post-attach.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,8 @@ set -e
44
# If running in Codespaces, check for necessary secrets and print error if missing
55
if [ -v CODESPACES ]; then
66
echo "🔐 Running in Codespaces - injecting secrets from Codespaces settings..."
7-
if [ ! -v COPILOT_TOKEN ]; then
8-
echo "⚠️ Running in Codespaces - please add COPILOT_TOKEN to your Codespaces secrets"
7+
if [ ! -v AI_API_TOKEN ]; then
8+
echo "⚠️ Running in Codespaces - please add AI_API_TOKEN to your Codespaces secrets"
99
fi
1010
if [ ! -v GITHUB_PERSONAL_ACCESS_TOKEN ]; then
1111
echo "⚠️ Running in Codespaces - please add GITHUB_PERSONAL_ACCESS_TOKEN to your Codespaces secrets"

.github/workflows/smoketest.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ jobs:
5252
5353
- name: Run tests
5454
env:
55-
COPILOT_TOKEN: ${{ secrets.COPILOT_TOKEN }}
55+
AI_API_ENDPOINT: ${{ secrets.AI_API_ENDPOINT }}
5656
GITHUB_AUTH_HEADER: "Bearer ${{ secrets.GITHUB_TOKEN }}"
5757

5858
run: |

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,15 +36,15 @@ Python >= 3.9 or Docker
3636

3737
## Configuration
3838

39-
Provide a GitHub token for an account that is entitled to use GitHub Copilot via the `COPILOT_TOKEN` environment variable. Further configuration is use case dependent, i.e. pending which MCP servers you'd like to use in your taskflows.
39+
Provide a GitHub token for an account that is entitled to use [GitHub Models](https://models.github.ai) via the `AI_API_ENDPOINT` environment variable. Further configuration is use case dependent, i.e. pending which MCP servers you'd like to use in your taskflows.
4040

4141
You can set persisting environment variables via an `.env` file in the project root.
4242

4343
Example:
4444

4545
```sh
4646
# Tokens
47-
COPILOT_TOKEN=<your_github_token>
47+
AI_API_ENDPOINT=<your_github_token>
4848
# MCP configs
4949
GITHUB_PERSONAL_ACCESS_TOKEN=<your_github_token>
5050
CODEQL_DBS_BASE_PATH="/app/my_data/codeql_databases"

docker/run.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
#
1212
# git clone https://github.com/GitHubSecurityLab/seclab-taskflow-agent.git
1313
# cd seclab-taskflow-agent/src
14-
# export COPILOT_TOKEN=<My GitHub PAT>
14+
# export AI_API_TOKEN=<My GitHub PAT>
1515
# export GITHUB_AUTH_HEADER=<My GitHub PAT>
1616
# sudo -E ../docker/run.sh -p seclab_taskflow_agent.personalities.assistant 'explain modems to me please'
1717

@@ -23,5 +23,5 @@ docker run -i \
2323
--mount type=bind,src="$PWD",dst=/app \
2424
-e DATA_DIR=/app/data \
2525
-e GITHUB_PERSONAL_ACCESS_TOKEN="$GITHUB_PERSONAL_ACCESS_TOKEN" \
26-
-e COPILOT_TOKEN="$COPILOT_TOKEN" \
26+
-e AI_API_TOKEN="$AI_API_TOKEN" \
2727
"ghcr.io/githubsecuritylab/seclab-taskflow-agent" "$@"

0 commit comments

Comments
 (0)