Skip to content

Conversation

@MariusStorhaug
Copy link
Member

@MariusStorhaug MariusStorhaug commented Jul 23, 2025

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:

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

  • 📖 [Docs]
  • 🪲 [Fix]
  • 🩹 [Patch]
  • ⚠️ [Security fix]
  • 🚀 [Feature]
  • 🌟 [Breaking change]

Checklist

  • I have performed a self-review of my own code
  • I have commented my code, particularly in hard-to-understand areas

Copilot AI review requested due to automatic review settings July 23, 2025 09:01
Copy link

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

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

@MariusStorhaug MariusStorhaug self-assigned this Jul 23, 2025
@MariusStorhaug MariusStorhaug added the NoRelease Do not create a release label Jul 23, 2025
@MariusStorhaug MariusStorhaug merged commit b951f74 into main Jul 23, 2025
44 of 54 checks passed
@MariusStorhaug MariusStorhaug deleted the reintroGHAPP branch July 23, 2025 10:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

NoRelease Do not create a release

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants