Skip to content

Migrate from opentelemetrybot to otelbot#55

Draft
trask with Copilot wants to merge 3 commits into
mainfrom
copilot/fix-54
Draft

Migrate from opentelemetrybot to otelbot#55
trask with Copilot wants to merge 3 commits into
mainfrom
copilot/fix-54

Conversation

Copilot AI commented Aug 12, 2025

Copy link
Copy Markdown

This PR migrates GitHub workflows from using the opentelemetrybot user account to the otelbot GitHub app, as requested in the migration initiative.

Key Changes

Token Migration

  • Replaced ${{ secrets.OPENTELEMETRYBOT_GITHUB_TOKEN }} with ${{ steps.otelbot-token.outputs.token }}
  • Added otelbot token generation step using actions/create-github-app-token@df432ceedc7162793a195dd1713ff69aefc7379e before first usage in both workflows

Workflow Architecture Changes

The create-or-update-release-pr.yml workflow required significant restructuring because GitHub apps don't have forks:

Before: Used opentelemetrybot's fork of the repository

  • Forked the repo using gh repo fork
  • Checked out opentelemetrybot/opentelemetry-js
  • Synced with upstream and force-pushed to fork
  • Created PRs from the fork

After: Works directly on the main repository

  • Removed fork step entirely
  • Pushes directly to otelbot/release/next-version branch on main repo
  • Uses secrets.GITHUB_TOKEN for branch operations (otelbot app lacks push permissions)
  • Uses otelbot token for PR creation (to ensure workflows trigger properly)

Configuration Updates

  • Updated git config from opentelemetrybot/107717825+opentelemetrybot@users.noreply.github.com to otelbot/197425009+otelbot@users.noreply.github.com
  • Changed RELEASE_PR_OWNER from opentelemetrybot to otelbot
  • Updated permissions to include contents: write for branch operations
  • Updated documentation reference from @opentelemetrybot to @otelbot[bot] (GitHub apps have [bot] suffix)

Security Considerations

The new approach properly separates concerns:

  • secrets.GITHUB_TOKEN handles branch push operations where otelbot lacks permissions
  • otelbot token handles PR operations where workflow triggering is required

Files Modified

  • .github/workflows/survey-on-merged-pr.yml - Token migration only
  • .github/workflows/create-or-update-release-pr.yml - Complete architecture change
  • doc/contributing/releasing.md - Documentation update

Fixes #54.


💡 You can make Copilot smarter by setting up custom instructions, customizing its development environment and configuring Model Context Protocol (MCP) servers. Learn more Copilot coding agent tips in the docs.

Copilot AI and others added 2 commits August 12, 2025 23:45
Co-authored-by: trask <218610+trask@users.noreply.github.com>
…rybot

Co-authored-by: trask <218610+trask@users.noreply.github.com>
Copilot AI changed the title [WIP] Migrate from opentelemetrybot to otelbot Migrate from opentelemetrybot to otelbot Aug 12, 2025
Copilot AI requested a review from trask August 12, 2025 23:49
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.

Migrate from opentelemetrybot to otelbot

2 participants