Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions .devcontainer/post-attach.sh
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@ set -e
# If running in Codespaces, check for necessary secrets and print error if missing
if [ -v CODESPACES ]; then
echo "🔐 Running in Codespaces - injecting secrets from Codespaces settings..."
if [ ! -v COPILOT_TOKEN ]; then
echo "⚠️ Running in Codespaces - please add COPILOT_TOKEN to your Codespaces secrets"
if [ ! -v AI_API_TOKEN ]; then
echo "⚠️ Running in Codespaces - please add AI_API_TOKEN to your Codespaces secrets"
fi
if [ ! -v GITHUB_PERSONAL_ACCESS_TOKEN ]; then
echo "⚠️ Running in Codespaces - please add GITHUB_PERSONAL_ACCESS_TOKEN to your Codespaces secrets"
Expand Down
2 changes: 1 addition & 1 deletion src/run_seclab_agent.sh
Original file line number Diff line number Diff line change
Expand Up @@ -10,4 +10,4 @@ mkdir -p data

docker run -i \
--mount type=bind,src="$PWD",dst=/app \
-e GITHUB_PERSONAL_ACCESS_TOKEN="$GITHUB_PERSONAL_ACCESS_TOKEN" -e COPILOT_TOKEN="$COPILOT_TOKEN" "ghcr.io/githubsecuritylab/seclab-taskflow-agent" "$@"
-e GITHUB_PERSONAL_ACCESS_TOKEN="$GITHUB_PERSONAL_ACCESS_TOKEN" -e AI_API_TOKEN="$AI_API_TOKEN" "ghcr.io/githubsecuritylab/seclab-taskflow-agent" "$@"
2 changes: 0 additions & 2 deletions src/seclab_taskflows/mcp_servers/gh_actions.py
Original file line number Diff line number Diff line change
Expand Up @@ -46,8 +46,6 @@ def __repr__(self):
unimportant_triggers = set(['pull_request', 'workflow_dispatch'])

GITHUB_PERSONAL_ACCESS_TOKEN = os.getenv('GITHUB_PERSONAL_ACCESS_TOKEN', default='')
if not GITHUB_PERSONAL_ACCESS_TOKEN:
GITHUB_PERSONAL_ACCESS_TOKEN = os.getenv('COPILOT_TOKEN')

ACTIONS_DB_DIR = Path(os.getenv('ACTIONS_DB_DIR', default='/app/my_data'))

Expand Down
2 changes: 0 additions & 2 deletions src/seclab_taskflows/mcp_servers/gh_code_scanning.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,6 @@
mcp = FastMCP("GitHubCodeScanning")

GITHUB_PERSONAL_ACCESS_TOKEN = os.getenv('GITHUB_PERSONAL_ACCESS_TOKEN', default='')
if not GITHUB_PERSONAL_ACCESS_TOKEN:
GITHUB_PERSONAL_ACCESS_TOKEN = os.getenv('COPILOT_TOKEN')

CODEQL_DBS_BASE_PATH = Path(os.getenv('CODEQL_DBS_BASE_PATH', default='/app/my_data'))

Expand Down
2 changes: 0 additions & 2 deletions src/seclab_taskflows/mcp_servers/gh_file_viewer.py
Original file line number Diff line number Diff line change
Expand Up @@ -43,8 +43,6 @@ def __repr__(self):
mcp = FastMCP("GitHubFileViewer")

GITHUB_PERSONAL_ACCESS_TOKEN = os.getenv('GITHUB_PERSONAL_ACCESS_TOKEN', default='')
if not GITHUB_PERSONAL_ACCESS_TOKEN:
GITHUB_PERSONAL_ACCESS_TOKEN = os.getenv('COPILOT_TOKEN')

SEARCH_RESULT_DIR = Path(os.getenv('SEARCH_RESULTS_DIR', default='/app/my_data'))

Expand Down
2 changes: 0 additions & 2 deletions src/seclab_taskflows/mcp_servers/local_gh_resources.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,6 @@
mcp = FastMCP("LocalGHResources")

GITHUB_PERSONAL_ACCESS_TOKEN = os.getenv('GITHUB_PERSONAL_ACCESS_TOKEN')
if not GITHUB_PERSONAL_ACCESS_TOKEN:
GITHUB_PERSONAL_ACCESS_TOKEN = os.getenv('COPILOT_TOKEN')

LOCAL_GH_DIR = Path(os.getenv('LOCAL_GH_DIR', default='/app/my_data'))

Expand Down