Skip to content

ci(update-copilot-skills): use App token so update PRs trigger CI#10

Merged
devantler merged 1 commit into
mainfrom
claude/ci-skills-app-token
May 26, 2026
Merged

ci(update-copilot-skills): use App token so update PRs trigger CI#10
devantler merged 1 commit into
mainfrom
claude/ci-skills-app-token

Conversation

@devantler
Copy link
Copy Markdown
Contributor

🤖 Generated by the Daily AI Assistant

Problem

The daily 🔄 Update Copilot Skills workflow opens its update PR with the default GITHUB_TOKEN. GitHub deliberately does not fire on: pull_request / push workflows for events created with GITHUB_TOKEN, so the skills-update PR never gets its 🧪 CI run, its required CI - Required Checks never reports, and it lands permanently blocked. (plugins #9 had to be closed+reopened by hand to merge.)

Fix

Bump the reusable update-copilot-skills caller v3.2.0v3.3.0 and opt into the new use-app-token: true input (added in reusable-workflows #240), passing the org-level APP_PRIVATE_KEY secret. The reusable workflow then mints a scoped GitHub App token (paired with vars.APP_ID) and creates the PR with it, so the PR triggers CI normally.

APP_ID (variable) and APP_PRIVATE_KEY (secret) are org-level with visibility: all, so no repo-level config is needed. The v3.3.0 App token is scoped to least privilege (contents: write + pull-requests: write) and is not persisted in git config.

Validated with actionlint. This is the durable fix for the recurring skills-sync CI block.

Bump the reusable update-copilot-skills caller to v3.3.0 and set
use-app-token: true (passing the org APP_PRIVATE_KEY secret). A PR opened
with the default GITHUB_TOKEN does not trigger this repo's on:
pull_request CI, so the daily skills-update PR landed permanently blocked
on missing required checks; an App-minted token fires CI normally.
Copilot AI review requested due to automatic review settings May 26, 2026 13:41
Copy link
Copy Markdown

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

Updates the scheduled “Update Copilot Skills” workflow to create its update PR using a GitHub App token (via the reusable workflow), ensuring the resulting PR triggers this repository’s CI and required checks.

Changes:

  • Bump devantler-tech/reusable-workflows update-copilot-skills reusable workflow from v3.2.0 to v3.3.0.
  • Enable use-app-token: true and pass APP_PRIVATE_KEY to allow the reusable workflow to mint and use an App token for PR creation.

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

@devantler devantler marked this pull request as ready for review May 26, 2026 13:46
@devantler devantler merged commit 47e07ec into main May 26, 2026
26 checks passed
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.

2 participants