Add optional payload input to dependabot-worker reusable workflow#31679
Conversation
Comment MemoryNote This comment is managed by comment memory.It stores persistent context for this thread in the code block at the top of this comment. |
There was a problem hiding this comment.
Pull request overview
Adds a Dependabot “campaign + worker” setup to bundle workflow-manifest Dependabot PRs into a single remediation wave, with generated (locked) workflow manifests and updated Dependabot configuration.
Changes:
- Introduces a reusable
dependabot-workerworkflow (source.md+ compiled.lock.yml) to apply source-of-truth dependency bumps and regenerate manifests. - Introduces a scheduled
dependabot-campaignorchestrator workflow (source.md+ compiled.lock.yml) that discovers in-scope Dependabot PRs and calls the worker once. - Updates
.github/dependabot.ymlto group workflow-manifest updates and limit concurrent PRs for those ecosystems.
Show a summary per file
| File | Description |
|---|---|
| .github/workflows/dependabot-worker.md | Defines the reusable worker prompt/config and tool allowlist for bundling and fixing workflow-manifest Dependabot PRs. |
| .github/workflows/dependabot-worker.lock.yml | Compiled, pinned workflow manifest for dependabot-worker. |
| .github/workflows/dependabot-campaign.md | Defines the campaign orchestrator prompt/config and scoreboard computation logic. |
| .github/workflows/dependabot-campaign.lock.yml | Compiled, pinned workflow manifest for dependabot-campaign. |
| .github/dependabot.yml | Adds grouping/limits intended to reduce Dependabot PR noise for workflow manifests. |
Copilot's findings
Tip
Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
- Files reviewed: 5/5 changed files
- Comments generated: 3
Co-authored-by: mnkiefer <8320933+mnkiefer@users.noreply.github.com>
Co-authored-by: mnkiefer <8320933+mnkiefer@users.noreply.github.com>
Co-authored-by: mnkiefer <8320933+mnkiefer@users.noreply.github.com>
Co-authored-by: mnkiefer <8320933+mnkiefer@users.noreply.github.com>
|
@copilot resolve the merge conflicts in this pull request |
# Conflicts: # .github/workflows/aw-portfolio-yield.lock.yml Co-authored-by: mnkiefer <8320933+mnkiefer@users.noreply.github.com>
Co-authored-by: mnkiefer <8320933+mnkiefer@users.noreply.github.com>
Merged |
Bug Fix
What was the bug?
The
dependabot-workerreusable workflow'sworkflow_call.inputsdid not declare apayloadinput, but callers (e.g.dependabot-campaign.lock.yml) passpayloadwhen invoking it. GitHub rejects unknown inputs for reusable workflows, causing the workflow call to fail.How did you fix it?
Added an optional
payloadstring input to theworkflow_call.inputssection ofdependabot-worker.md, matching the pattern used bysmoke-workflow-call.md. The compiled lock file (dependabot-worker.lock.yml) was regenerated to include the new input, anddependabot-campaign.lock.ymlwas updated to reflect the new input declaration on the worker.Testing
gh-aw compilesucceeds with no errorsdependabot-worker.lock.ymlnow includes thepayloadinput underworkflow_call.inputsdependabot-campaign.lock.ymlupdated to reflect the worker's newpayloadinput