Skip to content

ci: use GITHUB_TOKEN for chart update branch pushes#2154

Merged
TylerHelmuth merged 4 commits into
open-telemetry:mainfrom
MrAlias:auto-up-fix-pr-perms
Apr 30, 2026
Merged

ci: use GITHUB_TOKEN for chart update branch pushes#2154
TylerHelmuth merged 4 commits into
open-telemetry:mainfrom
MrAlias:auto-up-fix-pr-perms

Conversation

@MrAlias
Copy link
Copy Markdown
Contributor

@MrAlias MrAlias commented Apr 17, 2026

Summary

This change updates the chart update workflow to use GITHUB_TOKEN for pushing the update branch and to use the OTelBot app token only for creating or updating the pull request.

What changed

  • stop using the OTelBot token for checkout and branch pushes
  • disable persisted checkout credentials
  • push the update branch with secrets.GITHUB_TOKEN
  • create the OTelBot token only for pull request operations
  • keep the PR step on the OTelBot token so follow-up workflows can still run

Why

The update chart workflows were failing when the workflow tried to push with the OTelBot token:

remote: Permission to open-telemetry/opentelemetry-helm-charts.git denied to otelbot[bot].
fatal: unable to access ... 403

Splitting the push and PR steps avoids using the OTelBot token for the repository write that was failing, while still using OTelBot for the PR itself.

@MrAlias MrAlias changed the title ci: split chart update push and PR auth ci: use GITHUB_TOKEN for chart update branch pushes Apr 17, 2026
@MrAlias MrAlias force-pushed the auto-up-fix-pr-perms branch from fba672d to 4b5579f Compare April 17, 2026 21:36
@MrAlias MrAlias marked this pull request as ready for review April 17, 2026 21:37
@MrAlias MrAlias requested a review from a team as a code owner April 17, 2026 21:37
Copilot AI review requested due to automatic review settings April 17, 2026 21:37
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR adjusts the reusable “update chart app version” workflow to push update branches using the repository-scoped GITHUB_TOKEN, while continuing to use the OTelBot GitHub App token only for creating/updating the PR so downstream workflows still run.

Changes:

  • Stop using the OTelBot token for checkout and branch pushes; disable persisted checkout credentials.
  • Push the update branch using secrets.GITHUB_TOKEN.
  • Create the OTelBot app token only for PR create/edit operations.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread .github/workflows/update-chart-app-version.yaml Outdated
Comment thread .github/workflows/update-chart-app-version.yaml Outdated
Comment thread .github/workflows/update-chart-app-version.yaml
@TylerHelmuth
Copy link
Copy Markdown
Member

@MrAlias is this PR ready to merge or do we need to wait on open-telemetry/community#3376?

@MrAlias
Copy link
Copy Markdown
Contributor Author

MrAlias commented Apr 30, 2026

Sorry about the delay. This is ready to merge. It was confirmed in that issues this approach should be correct.

@TylerHelmuth TylerHelmuth merged commit c8c7729 into open-telemetry:main Apr 30, 2026
3 checks passed
@MrAlias MrAlias deleted the auto-up-fix-pr-perms branch April 30, 2026 22:44
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.

3 participants