chore: replace PAT with GitHub App token in self-references workflow#111
Merged
FidelusAleksander merged 7 commits intomainfrom Feb 5, 2026
Merged
Conversation
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
Contributor
|
@copilot use APP_ID and APP_PRIVATE_KEY secret names |
Co-authored-by: FidelusAleksander <63016446+FidelusAleksander@users.noreply.github.com>
Contributor
Author
Contributor
|
I've added the secrets to the repo |
FidelusAleksander
approved these changes
Feb 3, 2026
Contributor
There was a problem hiding this comment.
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-requestto use the generated token output instead ofsecrets.EXERCISE_TOOLKIT_TOKEN. - Added a
.gitignoreentry for theactionlintdevelopment 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.
arilivigni
approved these changes
Feb 3, 2026
chriswblake
approved these changes
Feb 4, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Changes
Migrated
_update-self-references.ymlfrom PAT-based authentication to GitHub App token.Workflow changes:
actions/create-github-app-token@v2.2.1secrets.EXERCISE_TOOLKIT_TOKENwith generated token outputRequired secrets (replacing
EXERCISE_TOOLKIT_TOKEN):APP_IDAPP_PRIVATE_KEYOther:
.gitignorefor development toolsThe GitHub App requires
contents: write,pull-requests: write, andworkflows: writepermissions.Checklist
Original prompt
💡 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.