Skip to content

Commit f59804c

Browse files
authored
fix: remove secrets_ prefix from github token envvar key (#605)
1 parent 9132f13 commit f59804c

File tree

4 files changed

+5
-5
lines changed

4 files changed

+5
-5
lines changed

src/codegen/cli/auth/session.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ def _validate(self) -> None:
6565
if git_token is None:
6666
rich.print("\n[bold yellow]Warning:[/bold yellow] GitHub token not found")
6767
rich.print("To enable full functionality, please set your GitHub token:")
68-
rich.print(format_command("export SECRETS_GITHUB_TOKEN=<your-token>"))
68+
rich.print(format_command("export GITHUB_TOKEN=<your-token>"))
6969
rich.print("Or pass in as a parameter:")
7070
rich.print(format_command("codegen init --token <your-token>"))
7171

src/codegen/configs/models/secrets.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
class SecretsConfig(BaseConfig):
55
"""Configuration for various API secrets and tokens.
66
7-
Loads from environment variables with the SECRETS_ prefix.
7+
Loads from environment variables.
88
Falls back to .env file for missing values.
99
"""
1010

src/codegen/runner/clients/codebase_client.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ def _get_envs(self) -> dict:
3131
"REPOSITORY_PATH": str(self.repo_config.repo_path),
3232
}
3333
if self.git_access_token is not None:
34-
codebase_envs["SECRETS_GITHUB_TOKEN"] = self.git_access_token
34+
codebase_envs["GITHUB_TOKEN"] = self.git_access_token
3535

3636
envs.update(codebase_envs)
3737
return envs

tests/integration/extension/test_github.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,9 +12,9 @@
1212
@pytest.fixture
1313
def client() -> LinearClient:
1414
"""Create a Linear client for testing."""
15-
token = os.getenv("SECRETS_GITHUB_TOKEN")
15+
token = os.getenv("GITHUB_TOKEN")
1616
if not token:
17-
pytest.skip("SECRETS_GITHUB_TOKEN environment variable not set")
17+
pytest.skip("GITHUB_TOKEN environment variable not set")
1818
codebase = Codebase.from_repo("codegen-sh/Kevin-s-Adventure-Game")
1919
return codebase
2020

0 commit comments

Comments
 (0)