Migrate dependency-update workflow to GitHub Agentic Workflows#1065
Merged
dgee2 merged 2 commits intoMay 23, 2026
Merged
Conversation
Replace the monolithic dependency-update.yml with three per-ecosystem agentic workflow source files compiled via gh aw compile: - dependency-update-dotnet.md (.NET / NuGet) - dependency-update-node.md (Node / npm / pnpm) - dependency-update-github-actions.md (GitHub Actions) Each workflow runs Copilot with: - Read-only agent token (no write permissions in agent job) - Network firewall scoped to the ecosystem's required domains - Safe outputs for create-pull-request (max 10, preserve-branch-name, recreate-ref), close-pull-request (max 10), and add-labels (max 30) - Existing skills and prompt files referenced as-is from the workspace The weekly Friday 09:00 UTC schedule and workflow_dispatch trigger are preserved on each individual workflow. COPILOT_TOKEN secret continues to be used via engine.env mapping. Closes #1064 Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Contributor
There was a problem hiding this comment.
Pull request overview
This PR migrates the repository’s dependency-update automation from a single Copilot-CLI-driven workflow (with write tokens in the agent job) to three per-ecosystem GitHub Agentic Workflows (gh-aw) with compiled, pinned .lock.yml workflows, reducing prompt-injection and credential exposure risk.
Changes:
- Removed the monolithic
.github/workflows/dependency-update.ymlworkflow. - Added per-ecosystem agentic workflow sources (
.md) and their compiled.lock.ymlworkflows for .NET, Node, and GitHub Actions. - Added
.github/aw/actions-lock.jsonand marked.lock.ymlworkflows as generated in.gitattributes.
Reviewed changes
Copilot reviewed 9 out of 9 changed files in this pull request and generated 4 comments.
Show a summary per file
| File | Description |
|---|---|
| .github/workflows/dependency-update.yml | Removed legacy workflow that ran Copilot CLI directly with write permissions. |
| .github/workflows/dependency-update-dotnet.md | New gh-aw source workflow for .NET dependency updates. |
| .github/workflows/dependency-update-dotnet.lock.yml | Compiled/pinned gh-aw workflow for .NET updates. |
| .github/workflows/dependency-update-node.md | New gh-aw source workflow for Node dependency updates. |
| .github/workflows/dependency-update-node.lock.yml | Compiled/pinned gh-aw workflow for Node updates. |
| .github/workflows/dependency-update-github-actions.md | New gh-aw source workflow for GitHub Actions dependency updates. |
| .github/workflows/dependency-update-github-actions.lock.yml | Compiled/pinned gh-aw workflow for GitHub Actions updates. |
| .github/aw/actions-lock.json | Adds pinned action SHAs emitted by the gh-aw compiler. |
| .gitattributes | Marks .github/workflows/*.lock.yml as generated and resolves merges via ours. |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
Add explicit name frontmatter to dependency-update-github-actions.md so the compiled lock.yml uses correct 'GitHub' capitalization. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
|
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
Closes #1064
Replaces the monolithic
dependency-update.yml(which ran Copilot CLI directly with write tokens, creating a structural prompt injection risk) with three per-ecosystem GitHub Agentic Workflow source files compiled to hardened.lock.ymlfiles.Changes
Added
.github/workflows/dependency-update-dotnet.md- agentic workflow source for .NET / NuGet.github/workflows/dependency-update-dotnet.lock.yml- compiled bygh aw compile.github/workflows/dependency-update-node.md- agentic workflow source for Node / npm / pnpm.github/workflows/dependency-update-node.lock.yml- compiled bygh aw compile.github/workflows/dependency-update-github-actions.md- agentic workflow source for GitHub Actions.github/workflows/dependency-update-github-actions.lock.yml- compiled bygh aw compile.github/aw/actions-lock.json- pinned action SHAs generated by the compilerRemoved
.github/workflows/dependency-update.yml- replaced by the three per-ecosystem workflows aboveSecurity review note (required by gh aw compile)
The compiled
.lock.ymlfiles reference one new restricted secret:COPILOT_GITHUB_TOKENenvironment variable expected by the gh-aw Copilot engine viaengine.env. No new credentials are introduced.No new actions or redirects beyond those pinned in
.github/aw/actions-lock.json(actions/github-script@v9.0.0andgithub/gh-aw-actions/setup@v0.74.8), both standard gh-aw runtime dependencies.Acceptance criteria
gh awCLI used to compile each workflow to a.lock.ymlcreate-pull-request: max 10, preserve-branch-name, recreate-ref, fallback-as-issue falseclose-pull-request: max 10add-labels: max 30tools.bashworkflow_dispatchon each workflow for manual per-ecosystem runsdependency-update.ymlremovedCOPILOT_TOKENsecret continues to be used via engine.env mapping