From e3df572abbc5800e1449d7cd043b615c5d5fed51 Mon Sep 17 00:00:00 2001 From: LuckVd <37114923+LuckVd@users.noreply.github.com> Date: Tue, 1 Sep 2026 13:49:19 +0800 Subject: [PATCH] fix(make): restore the config target and drop stale make connect hints PR #493 rewrote the Makefile and removed the 'config:' target while scripts/entrypoint.sh (lines 97/110) and scripts/config.sh still instruct users to run 'make config', and config.sh still printed 'make connect' hints for a target deleted together with the old Docker workflow. Restore 'config:' as a thin wrapper over the existing interactive scripts/config.sh, and point the config.sh hints at real entry points: 'make docker-shell' for in-container claude login, and 'make run TARGET=' for starting the agent. --- Makefile | 6 +++++- scripts/config.sh | 8 ++++---- 2 files changed, 9 insertions(+), 5 deletions(-) diff --git a/Makefile b/Makefile index 4fc2c682..ed8b4577 100644 --- a/Makefile +++ b/Makefile @@ -1,7 +1,7 @@ # PentestGPT Makefile # Usage: make [target] -.PHONY: help install test test-all test-cov test-verbose test-fast test-backend +.PHONY: help install config test test-all test-cov test-verbose test-fast test-backend .PHONY: lint lint-fix format format-check typecheck clean build watch .PHONY: check check-agent test-agent check-agent-new test-agent-new run .PHONY: ci ci-quick @@ -44,6 +44,10 @@ install: uv sync cd pentestgpt_agent && uv sync --extra $(AGENT_EXTRA) +# Configure authentication (interactive menu: Claude login, OpenRouter, Anthropic API, Local LLM) +config: + @./scripts/config.sh + # ============================================================================ # Testing # ============================================================================ diff --git a/scripts/config.sh b/scripts/config.sh index 027dcdbd..a41725e1 100755 --- a/scripts/config.sh +++ b/scripts/config.sh @@ -56,7 +56,7 @@ PENTESTGPT_AUTH_MODE=manual EOF echo -e "${GREEN}Claude Code subscription mode selected.${NC}" - echo -e "${BLUE}After running 'make connect', execute 'claude login' inside the container.${NC}" + echo -e "${BLUE}After running 'make docker-shell', execute 'claude login' inside the container.${NC}" ;; 2) @@ -84,7 +84,7 @@ EOF chmod 600 "$ENV_FILE" echo -e "${GREEN}OpenRouter configuration saved!${NC}" - echo -e "${BLUE}CCR will be configured automatically when you run 'make connect'${NC}" + echo -e "${BLUE}CCR will be configured automatically when you start the agent${NC}" ;; 3) @@ -131,7 +131,7 @@ EOF echo " 2. To customize models or URL, edit:" echo " scripts/ccr-config-template.json" echo "" - echo " 3. Run 'make connect' to start PentestGPT" + echo " 3. Run 'make run TARGET=' to start PentestGPT" ;; *) @@ -142,4 +142,4 @@ esac echo "" echo -e "${GREEN}Configuration complete!${NC}" -echo -e "Run ${PURPLE}make connect${NC} to start PentestGPT." +echo -e "Run ${PURPLE}make run TARGET=${NC} to start PentestGPT."