Skip to content

Conversation

Copilot
Copy link
Contributor

@Copilot Copilot AI commented Sep 19, 2025

This PR replaces the archived tibdex/github-app-token action with the actively maintained actions/create-github-app-token action across all GitHub workflows.

Changes Made

Updated three workflow files to use the new action:

  • .github/workflows/addToProject.yml - Project automation workflow
  • .github/workflows/labeler.yml - Issue and PR labeling workflow
  • .github/workflows/updatecli.yml - Dependency update workflow

Migration Details

The migration follows the recommended pattern from the new action's documentation:

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

Key Changes

  • Updated action reference from tibdex/github-app-token@3beb63f4bd073e61482598c45c71c1019b59b73a to actions/create-github-app-token@v2
  • Changed parameter names: app_idapp-id, private_keyprivate-key
  • Converted JSON permissions format to individual permission-* parameters
  • Maintained all existing functionality while ensuring future security updates

All workflows continue to function identically while now using the officially supported action.

Fixes #4791.


💡 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 Copilot AI assigned Copilot and v1v Sep 19, 2025
Copy link
Contributor 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 finished work on behalf of v1v September 19, 2025 11:18
@Copilot Copilot AI requested a review from v1v September 19, 2025 11:18
@trentm
Copy link
Member

trentm commented Sep 19, 2025

Oh, still in "Draft".

@v1v v1v marked this pull request as ready for review September 22, 2025 09:29
@v1v v1v requested review from a team as code owners September 22, 2025 09:29
@v1v v1v enabled auto-merge (squash) September 22, 2025 09:29
Copy link

@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 merged commit a615e41 into main Sep 22, 2025
26 of 44 checks passed
@v1v v1v deleted the copilot/fix-4791 branch September 22, 2025 09:41
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
4 participants