Add scheduled Dependabot auto-fix workflow using Copilot CLI#1558
Merged
priyanshu92 merged 2 commits intomainfrom Apr 23, 2026
Merged
Add scheduled Dependabot auto-fix workflow using Copilot CLI#1558priyanshu92 merged 2 commits intomainfrom
priyanshu92 merged 2 commits intomainfrom
Conversation
Adds .github/workflows/dependabot-autofix.yml that runs weekly (and on workflow_dispatch) to invoke the fix-dependabot-alerts skill via GitHub Copilot CLI, apply fixes, run build + tests, and open a single consolidated PR. Auth model matches existing workflows: - GitHub App (app-id 2740120, POWER_PAGES_PUBLIC_GITHUB_APP_PRIVATE_KEY) is used for checkout, git push, and gh pr create so commits and the PR are authored by github-actions[bot]. - A fine-grained PAT in COPILOT_CLI_PAT is used only for Copilot CLI auth and Dependabot alert enumeration (App tokens cannot authenticate Copilot CLI since Copilot licenses are per-user). Hardening: - Narrow --allow-tool grants; no --allow-all, no --share-gist. - --secret-env-vars redacts the PAT from logs. - --no-ask-user prevents the agent from blocking CI. - --model pinned to claude-sonnet-4.6 for reproducibility. - Agent is instructed to skip push/PR when npm build or tests fail, and to no-op when there are zero open alerts. - concurrency group with cancel-in-progress: false. - Session transcript uploaded as a workflow artifact (14-day retention). Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
amitjoshi438
approved these changes
Apr 23, 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.
Summary
Adds
.github/workflows/dependabot-autofix.ymlthat runs weekly (Mondays 06:00 UTC) and onworkflow_dispatchto:fix-dependabot-alertsskill via GitHub Copilot CLI.npm run build+npm testto verify fixes.Auth model (matches existing workflows)
git push,gh pr create2740120, secretPOWER_PAGES_PUBLIC_GITHUB_APP_PRIVATE_KEY) viaactions/create-github-app-token@v1— same pattern asloc-update.yml/translations-export.ymlCOPILOT_CLI_PAT(App tokens cannot authenticate Copilot CLI since Copilot licenses are per-user)Hardening
--allow-toolgrants:shell(npm:*), shell(npx:*), shell(gh:*), shell(git:*), shell(node:*), write, read. No--allow-all, no--share-gist.--secret-env-vars=COPILOT_CLI_PATredacts the PAT from logs.--no-ask-userprevents the agent from blocking CI.--model claude-sonnet-4.6pinned for reproducibility.concurrency: dependabot-autofixwithcancel-in-progress: false.One-time setup needed before the workflow can run
COPILOT_CLI_PAT— fine-grained PAT from a Copilot-licensed user with:References