-
-
Notifications
You must be signed in to change notification settings - Fork 5
chore(gocd): use GitHub App credentials #600
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -18,7 +18,8 @@ local gocdtasks = import 'github.com/getsentry/gocd-jsonnet/libs/gocd-tasks.libs | |
| jobs: { | ||
| checks: { | ||
| environment_variables: { | ||
| GITHUB_TOKEN: '{{SECRET:[devinfra-github][token]}}', | ||
| GITHUB_APP_ID: '{{SECRET:[devinfra-github][app_id]}}', | ||
| GITHUB_APP_PRIVATE_KEY: '{{SECRET:[devinfra-github][private_key]}}', | ||
|
Comment on lines
+21
to
+22
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Bug: The switch to GitHub App credentials may be incompatible with the pinned version of the Suggested FixVerify that version 3.0.7 of the Prompt for AI AgentDid we get this right? 👍 / 👎 to inform future reviews. |
||
| }, | ||
| timeout: 1800, | ||
| elastic_profile_id: 'objectstore', | ||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Bug: The script now calls
checks-githubactions-checkruns2and uses new auth variables. This assumes the binary is deployed and compatible, which isn't guaranteed by the code changes.Severity: HIGH
Suggested Fix
Add a fallback mechanism to use the old binary if the new one is not found. Alternatively, add error handling to provide a clear message if
checks-githubactions-checkruns2is missing or fails. Consider adding a check for the binary's existence at the start of the script. It would also be beneficial to document the deployment requirements for this new binary within the repository.Prompt for AI Agent
Also affects:
gocd/templates/libs/utils.libsonnet:21~22