Skip to content

[refactoring] Extract shared copilot-engine-baseline.md component (24 workflow duplicates) #54135

Description

@github-actions

Summary

24 workflows use the exact same three-setting "Copilot engine safety baseline" together, and many more use a subset:

engine:
  id: copilot
  copilot-sdk: true
max-tool-denials: 3
max-daily-ai-credits: 10000

Individually: engine.copilot-sdk: true appears in 69 workflows, max-tool-denials: 3 in 63, max-daily-ai-credits: 10000 in 74. No shared component currently bundles these.

Evidence

Workflows using all three verbatim include: copilot-opt.md (lines 7, 14-15), breaking-change-checker.md, craft.md, daily-compiler-quality.md, code-scanning-fixer.md, cli-consistency-checker.md, artifacts-summary.md, daily-agent-of-the-day-blog-writer.md, and 16 more (24 total).

Proposal

Create shared/copilot-engine-baseline.md:

---
engine:
  id: copilot
  copilot-sdk: true
max-tool-denials: 3
max-daily-ai-credits: 10000
---

Consumers replace the inline block with:

imports:
  - shared/copilot-engine-baseline.md

Impact

  • Direct: 24 workflows with the exact triple (~120 lines saved)
  • Indirect: up to ~74 workflows using individual settings could standardize on this baseline in a follow-up
  • Maintenance: a single place to adjust the default credit ceiling or tool-denial threshold repo-wide

Migration plan

  1. Create shared/copilot-engine-baseline.md.
  2. Migrate the 24 exact-match workflows first (lowest risk — no overrides needed).
  3. Recompile and verify .lock.yml diffs are no-ops.
  4. In a follow-up, evaluate workflows using a subset of these settings for adoption (some override individual values intentionally, so this needs case-by-case review).

Priority

High — appears in 24+ workflows verbatim with clear duplication and low/medium extraction complexity.

Generated by 🔍 Workflow Skill Extractor · auto · 86 AIC · ⌖ 5.54 AIC · ⊞ 7.4K ·

  • expires on Aug 21, 2026, 8:01 PM UTC-08:00

Metadata

Metadata

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions