Skip to content

Commit 7709772

Browse files
Merge branch 'main' into remove-werkzeug
2 parents eb4c028 + 98c254d commit 7709772

File tree

16 files changed

+188
-102
lines changed

16 files changed

+188
-102
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" "$@"

examples/taskflows/echo.yaml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@ seclab-taskflow-agent:
77

88
taskflow:
99
- task:
10-
model: claude-3.5-sonnet
1110
max_steps: 5
1211
must_complete: true
1312
agents:

examples/taskflows/example.yaml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,10 +5,13 @@ seclab-taskflow-agent:
55
version: 1
66
filetype: taskflow
77

8+
# Import settings from a model_config file.
9+
model_config: examples.model_configs.model_config
10+
811
taskflow:
912
- task:
1013
# taskflows can optionally choose any of the support CAPI models for a task
11-
model: gpt-4.1
14+
model: gpt_default
1215
# taskflows can optionally limit the max allowed number of Agent task loop
1316
# iterations to complete a task, this defaults to 50 when not provided
1417
max_steps: 20
@@ -41,7 +44,6 @@ taskflow:
4144
- seclab_taskflow_agent.toolboxes.codeql
4245
- task:
4346
must_complete: true
44-
model: gpt-4.1
4547
agents:
4648
- seclab_taskflow_agent.personalities.c_auditer
4749
user_prompt: |

examples/taskflows/example_reusable_taskflows.yaml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,11 @@ seclab-taskflow-agent:
55
version: 1
66
filetype: taskflow
77

8+
model_config: examples.model_configs.model_config
9+
810
taskflow:
911
- task:
1012
# with the `uses` directive we can reuse single task taskflows
1113
uses: examples.taskflows.single_step_taskflow
1214
# and optionally override any of its configurations
13-
model: gpt-4o
15+
model: gpt_latest

examples/taskflows/example_triage_taskflow.yaml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,6 @@ taskflow:
3030
toolboxes:
3131
- seclab_taskflow_agent.toolboxes.memcache
3232
- task:
33-
model: gpt-4.1
3433
repeat_prompt: true
3534
agents:
3635
# primary agent for this task

examples/taskflows/single_step_taskflow.yaml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@ seclab-taskflow-agent:
77

88
taskflow:
99
- task:
10-
model: gpt-4.1
1110
agents:
1211
- seclab_taskflow_agent.personalities.assistant
1312
user_prompt: |

pyproject.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -97,6 +97,7 @@ dependencies = [
9797
"SQLAlchemy==2.0.41",
9898
"sse-starlette==2.4.1",
9999
"starlette==0.49.1",
100+
"strenum==0.4.15",
100101
"tqdm==4.67.1",
101102
"typer==0.16.0",
102103
"types-requests==2.32.4.20250611",

0 commit comments

Comments
 (0)