-
Notifications
You must be signed in to change notification settings - Fork 0
🩹 [Patch]: Reintroduce GitHub App authentication #69
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pull Request Overview
This PR reintroduces GitHub App authentication to the Update-FontsData workflow by replacing GITHUB_TOKEN permissions with GitHub App credentials. The change improves security by using app-based authentication instead of the default token permissions.
- Removes default GITHUB_TOKEN permissions and adds GitHub App client ID and private key configuration
- Updates the PowerShell script to establish GitHub App connection before performing git operations
Reviewed Changes
Copilot reviewed 2 out of 2 changed files in this pull request and generated 2 comments.
| File | Description |
|---|---|
| .github/workflows/Update-FontsData.yml | Removes GITHUB_TOKEN permissions and adds GitHub App authentication inputs |
| scripts/Update-FontsData.ps1 | Adds GitHub App connection initialization |
…mproved clarity and organization
…te-FontsData script
…e-FontsData script
… markdown formatting in GitHub step summary
…g group for improved accuracy
…g group for improved accuracy
…into reintroGHAPP
Description
This pull request updates the workflow and script responsible for managing font data in the repository. The changes improve permissions handling, enhance the script's functionality, and revise logging and output formatting for better clarity and integration with GitHub Actions.
Workflow Updates:
.github/workflows/Update-FontsData.yml: Changedpermissionsto an empty object ({}) to simplify permission management. AddedClientIDandPrivateKeysecrets for improved authentication. [1] [2]Script Enhancements:
scripts/Update-FontsData.ps1: Enhanced command execution by capturing output and returning formatted results. Added logic to handle multi-line output.scripts/Update-FontsData.ps1: Integrated GitHub App connection and repository handling to dynamically fetch the default branch.scripts/Update-FontsData.ps1: Improved log group naming for clarity, such as renaming "Latest Fonts" to "Getting latest fonts." Added GitHub-specific notices for no updates and detailed summaries for changes. [1] [2]scripts/Update-FontsData.ps1: Added structured logging for processing changes and streamlined branch-specific push behavior.Type of change
Checklist