Skip to content

fix: expand environment variables in GitHub App app_id configuration - #4

Merged
InsomniaCoder merged 1 commit into
mainfrom
fix/github-app-id-env-expansion
Feb 4, 2026
Merged

InsomniaCoder merged 1 commit into
mainfrom
fix/github-app-id-env-expansion

Conversation

@InsomniaCoder

Copy link
Copy Markdown
Contributor

Environment variables in the app_id configuration field (e.g., ${env.GITHUB_APP_ID}) were not being expanded before parsing as integers, causing configuration errors.

This fix adds lcel.ExpandEnv() calls in two locations:

  • pkg/collector/github.go: NewGitHubCollector function
  • pkg/collector/github_app_auth.go: validateGitHubAppConfig function

The fix follows the same pattern used for other configuration fields like api_token, github_base_url, and private_key.

Environment variables in the app_id configuration field (e.g., ${env.GITHUB_APP_ID})
were not being expanded before parsing as integers, causing configuration errors.

This fix adds lcel.ExpandEnv() calls in two locations:
- pkg/collector/github.go: NewGitHubCollector function
- pkg/collector/github_app_auth.go: validateGitHubAppConfig function

The fix follows the same pattern used for other configuration fields like
api_token, github_base_url, and private_key.

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
@InsomniaCoder
InsomniaCoder merged commit 76b98c7 into main Feb 4, 2026
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants