apm-agent-ruby icon indicating copy to clipboard operation
apm-agent-ruby copied to clipboard

Replace tibdex/github-app-token with actions/create-github-app-token

Open Copilot opened this issue 5 months ago • 3 comments

The tibdex/github-app-token action has been archived and is no longer maintained. This PR migrates to the official actions/create-github-app-token action which provides the same functionality.

Changes Made

Updated Workflows

  • .github/workflows/addToProject.yml
  • .github/workflows/updatecli.yml

Migration Details

  • Action: tibdex/github-app-token@3beb63f4bd073e61482598c45c71c1019b59b73aactions/create-github-app-token@v2
  • Parameters: Updated to new format (app_idapp-id, private_keyprivate-key)
  • Permissions: Converted from JSON object to individual permission parameters

Before

uses: tibdex/github-app-token@3beb63f4bd073e61482598c45c71c1019b59b73a
with:
  app_id: ${{ secrets.OBS_AUTOMATION_APP_ID }}
  private_key: ${{ secrets.OBS_AUTOMATION_APP_PEM }}
  permissions: >-
    {
      "contents": "write",
      "pull_requests": "write"
    }

After

uses: actions/create-github-app-token@v2
with:
  app-id: ${{ secrets.OBS_AUTOMATION_APP_ID }}
  private-key: ${{ secrets.OBS_AUTOMATION_APP_PEM }}
  permission-contents: write
  permission-pull-requests: write

Benefits

  • Uses an actively maintained, official GitHub action
  • Cleaner, more readable permission configuration
  • Future-proof against deprecation warnings
  • Maintains all existing functionality

The token output mechanism (${{ steps.get_token.outputs.token }}) remains unchanged, ensuring seamless compatibility with existing workflows.

Fixes #1592.


💬 Share your feedback on Copilot coding agent for the chance to win a $200 gift card! Click here to start the survey.

Copilot avatar Sep 19 '25 14:09 Copilot