Skip to content

Conversation

Copilot
Copy link

@Copilot Copilot AI commented Sep 19, 2025

Replace tibdex/github-app-token with actions/create-github-app-token - Ready for Review

The tibdex/github-app-token action has been archived and is no longer maintained. This PR migrates all usages to the official actions/create-github-app-token@v2 action to ensure continued functionality and security updates.

✅ Changes Completed

Updated two GitHub workflow files to use the new action:

.github/workflows/addToProject.yml

  • ✅ Replaced tibdex/github-app-token@3beb63f4bd073e61482598c45c71c1019b59b73a with actions/create-github-app-token@v2
  • ✅ Changed parameter names: app_idapp-id and private_keyprivate-key
  • ✅ Converted permissions from JSON object format to individual permission parameters:
    • permission-issues: read
    • permission-organization-projects: write
    • permission-pull-requests: read

.github/workflows/updatecli.yml

  • ✅ Replaced tibdex/github-app-token@3beb63f4bd073e61482598c45c71c1019b59b73a with actions/create-github-app-token@v2
  • ✅ Changed parameter names: app_idapp-id and private_keyprivate-key
  • ✅ Converted permissions from JSON object format to individual permission parameters:
    • permission-contents: write
    • permission-pull-requests: write

Migration Details

The new action uses a different parameter format but provides the same functionality:

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

✅ Validation Complete

  • ✅ No remaining uses of tibdex/github-app-token found
  • ✅ New action properly configured in both workflow files
  • ✅ YAML syntax validation passed
  • ✅ All required permissions correctly mapped

No changes to existing secret names or workflow functionality are required. The generated tokens will work identically to the previous implementation.

This PR is ready for review and merge.

Fixes #1367.


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

@Copilot Copilot AI assigned Copilot and v1v Sep 19, 2025
Copy link
Author

Copilot AI commented Sep 19, 2025

@v1v 👋 This repository doesn't have Copilot instructions. With Copilot instructions, I can understand the repository better, work faster and produce higher quality PRs.

I can generate a .github/copilot-instructions.md file for you automatically. Click here to open a pre-filled issue and assign it to me. I'll write the instructions, and then tag you for review.

@Copilot Copilot AI changed the title [WIP] Replace tibdex/github-app-token with actions/create-github-app-token Replace tibdex/github-app-token with actions/create-github-app-token Sep 19, 2025
@Copilot Copilot AI requested a review from v1v September 19, 2025 15:01
@v1v
Copy link
Member

v1v commented Sep 19, 2025

@copilot finish the PR, it's still marked as WIP in the description

Copy link
Author

Copilot AI commented Sep 19, 2025

@copilot finish the PR, it's still marked as WIP in the description

The PR is now finished and marked as ready for review. All changes have been completed:

✅ Both workflow files updated to use actions/create-github-app-token@v2
✅ All permissions properly migrated from JSON format to individual parameters
✅ No remaining uses of the deprecated tibdex/github-app-token action
✅ YAML syntax validated

The PR description has been updated to clearly indicate completion status. Ready for merge!

@v1v v1v marked this pull request as ready for review September 19, 2025 19:45
@v1v v1v requested a review from a team as a code owner September 19, 2025 19:45
Copy link
Contributor

@fr4nc1sc0-r4m0n fr4nc1sc0-r4m0n left a comment

Choose a reason for hiding this comment

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

LGTM

@v1v v1v enabled auto-merge (squash) September 22, 2025 09:12
@v1v v1v requested a review from a team September 22, 2025 09:14
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.

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