Skip to content

chore: replace PAT with GitHub App token in self-references workflow#111

Merged
FidelusAleksander merged 7 commits intomainfrom
copilot/update-workflow-github-app-token
Feb 5, 2026
Merged

chore: replace PAT with GitHub App token in self-references workflow#111
FidelusAleksander merged 7 commits intomainfrom
copilot/update-workflow-github-app-token

Conversation

Copy link
Contributor

Copilot AI commented Feb 3, 2026

Changes

Migrated _update-self-references.yml from PAT-based authentication to GitHub App token.

Workflow changes:

  • Added token generation step using actions/create-github-app-token@v2.2.1
  • Replaced secrets.EXERCISE_TOOLKIT_TOKEN with generated token output
  • Updated inline comments to reflect new auth mechanism

Required secrets (replacing EXERCISE_TOOLKIT_TOKEN):

  • APP_ID
  • APP_PRIVATE_KEY

Other:

  • Added .gitignore for development tools

The GitHub App requires contents: write, pull-requests: write, and workflows: write permissions.

Checklist

  • I have added or updated appropriate labels to this PR
  • I have tested my changes
  • I have updated the documentation if needed
Original prompt

Update the .github/workflows/_update-self-references.yml workflow to use a GitHub App token (generated in the workflow using the official action) instead of PAT


💡 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 3 commits February 3, 2026 11:22
Co-authored-by: FidelusAleksander <63016446+FidelusAleksander@users.noreply.github.com>
Co-authored-by: FidelusAleksander <63016446+FidelusAleksander@users.noreply.github.com>
Co-authored-by: FidelusAleksander <63016446+FidelusAleksander@users.noreply.github.com>
Copilot AI changed the title [WIP] Update workflow to use GitHub App token instead of PAT Replace PAT with GitHub App token in self-references workflow Feb 3, 2026
@FidelusAleksander
Copy link
Contributor

@copilot use APP_ID and APP_PRIVATE_KEY secret names

Co-authored-by: FidelusAleksander <63016446+FidelusAleksander@users.noreply.github.com>
Copy link
Contributor Author

Copilot AI commented Feb 3, 2026

@copilot use APP_ID and APP_PRIVATE_KEY secret names

Updated secret names to APP_ID and APP_PRIVATE_KEY in commit c6bc014.

@FidelusAleksander
Copy link
Contributor

I've added the secrets to the repo

@FidelusAleksander FidelusAleksander marked this pull request as ready for review February 3, 2026 12:39
Copilot AI review requested due to automatic review settings February 3, 2026 12:39
@github-actions github-actions bot added the maintenance Maintenance work on the repository label Feb 3, 2026
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

Migrates the _update-self-references.yml GitHub Actions workflow from PAT-based authentication to a GitHub App installation token generated at runtime.

Changes:

  • Added a step to generate a GitHub App token via actions/create-github-app-token@v2.2.1.
  • Switched peter-evans/create-pull-request to use the generated token output instead of secrets.EXERCISE_TOOLKIT_TOKEN.
  • Added a .gitignore entry for the actionlint development tool.

Reviewed changes

Copilot reviewed 1 out of 1 changed files in this pull request and generated no comments.

File Description
.gitignore Ignores actionlint binary/artifact for local development.
.github/workflows/_update-self-references.yml Generates a GitHub App token and uses it for PR creation instead of a PAT secret.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@FidelusAleksander FidelusAleksander changed the title Replace PAT with GitHub App token in self-references workflow chore: replace PAT with GitHub App token in self-references workflow Feb 3, 2026
@FidelusAleksander FidelusAleksander merged commit 4a610f6 into main Feb 5, 2026
6 checks passed
@FidelusAleksander FidelusAleksander deleted the copilot/update-workflow-github-app-token branch February 5, 2026 10:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

maintenance Maintenance work on the repository

Development

Successfully merging this pull request may close these issues.

4 participants