Harden CI workflows#138
Merged
Merged
Conversation
/cherry-pick Signed-off-by: Tamal Saha <tamal@appscode.com>
PRs opened via gh pr create now authenticate as 1gtm-app[bot], which is in .github/.kodiak.toml auto_approve_usernames. Using the default GITHUB_TOKEN would author PRs as github-actions[bot] and break the kodiak auto-merge flow for cherry-pick PRs. The token is scoped to the current repo with only contents:write and pull-requests:write — what the cherry-pick script needs. Signed-off-by: Tamal Saha <tamal@appscode.com>
Signed-off-by: Tamal Saha <tamal@appscode.com>
actions/checkout@v4 defaults to fetch-depth: 1, so `git branch -r | grep release` in hack/scripts/cherry-pick.sh returned nothing and the loop body never executed.
actions/checkout defaults to persist-credentials: true, which leaves an http.extraheader with the workflow's GITHUB_TOKEN in git config. That overrides the LGTM token in the URL set by `git remote set-url`, so `git push` fails with "Permission denied to github-actions[bot]" when pushing the cherry-pick branch.
tamalsaha
added a commit
that referenced
this pull request
May 20, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Re-opening commit b7be922 as a pull request for review.