Skip to content

Migrate from opentelemetrybot to otelbot#1066

Merged
breedx-splk merged 1 commit into
open-telemetry:mainfrom
opentelemetrybot:migrate-to-otelbot
Jul 14, 2025
Merged

Migrate from opentelemetrybot to otelbot#1066
breedx-splk merged 1 commit into
open-telemetry:mainfrom
opentelemetrybot:migrate-to-otelbot

Conversation

@opentelemetrybot
Copy link
Copy Markdown
Contributor

See open-telemetry/community#2863 for details.

This PR was generated by Copilot and reviewed by @trask prior to submission.

Comment on lines 89 to +90
| grep -v opentelemetrybot \
| grep -v otelbot \
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

can remove the opentelemetrybot line after the next release

run: |
message="Prepare release $VERSION"
branch="opentelemetrybot/prepare-release-${VERSION}"
branch="otelbot/prepare-release-${VERSION}"
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

IMPORTANT

This needs to be merged at the same time as https://github.com/open-telemetry/admin/pull/125 (note: maintainers should be able to approve and merge that PR)

Comment on lines +64 to +73
- uses: actions/create-github-app-token@df432ceedc7162793a195dd1713ff69aefc7379e # v2.0.6
id: otelbot-token
with:
app-id: ${{ vars.OTELBOT_APP_ID }}
private-key: ${{ secrets.OTELBOT_PRIVATE_KEY }}

- name: Create pull request against the release branch
env:
# not using secrets.GITHUB_TOKEN since pull requests from that token do not run workflows
GH_TOKEN: ${{ secrets.OPENTELEMETRYBOT_GITHUB_TOKEN }}
GH_TOKEN: ${{ steps.otelbot-token.outputs.token }}
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Can I assume it's not very expensive to regenerate this every time? Does this have the benefit of not having the token stored in this repo or what is the benefit?

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

yeah, it's not expensive

the benefit is that it's a short-lived token, reducing the window of vulnerability if it were ever compromised

of course, we still have to be vigilant not to expose secrets.OTELBOT_PRIVATE_KEY itself

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Makes sense, thanks for the clarification.

@trask trask marked this pull request as ready for review July 14, 2025 18:12
@trask trask requested a review from a team as a code owner July 14, 2025 18:12
@breedx-splk breedx-splk merged commit 309c249 into open-telemetry:main Jul 14, 2025
6 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.

3 participants