Clarify limitations of `copilot-setup-steps` concerning call of reusable workflows
Maintainer antworten meist innerhalb von 1 Tag
Dieses Issue hat noch niemand übernommen.
Bewertung
- Schwierigkeit
- 2/5
- Geschätzter Aufwand
- 1-3 Stunden
- Anfängerfreundlichkeit
- 74/100
- Issue-Typ
- Dokumentation
- Klarheit
- Klar beschrieben
- Aktivitätsstatus
- Ruhig
- Tech-Stack
- github-actions
- Bereich
- documentation
Rechercherichtung
Beginnen Sie mit dem verlinkten Artikel customize-the-agent-environment und prüfen Sie dessen Dokumentation zur Eigenschaft copilot-setup-steps job-property. Vergleichen Sie anschließend die Referenzen zu reusable-workflow und composite-action. Dokumentieren Sie, dass jobs..uses nicht unterstützt wird, stellen Sie klar, dass inline steps unterstützt werden, und nehmen Sie den composite-action workaround auf; überprüfen Sie, dass der Artikel korrekt gerendert wird und die Links gültig bleiben.
Vom Indexierungsmodell aus dem Issue-Text verfasst.
Beschreibung
Code of Conduct
- I have read and agree to the GitHub Docs project's Code of Conduct
What article on docs.github.com is affected?
What part(s) of the article would you like to see updated?
The documentation for copilot-setup-steps does not explicitly state that calling reusable workflows via jobs.<job-id>.uses is not supported. This causes confusion for users who try to extract shared setup logic into a reusable workflow and reference it from the copilot-setup-steps job.
Current behavior
The copilot-setup-steps.yml documentation lists the job-level properties that can be customized (steps, permissions, runs-on, services, snapshot, timeout-minutes). However, it does not explicitly call out that uses at the job level — which is how GitHub Actions reusable workflows are invoked — is not among the supported properties and will be silently ignored or will cause unexpected behavior.
A user might reasonably author:
jobs:
copilot-setup-steps:
uses: ./.github/workflows/shared-setup.yml
...expecting the reusable workflow to run as part of Copilot's environment setup, only to find it does not work as intended.
Expected behavior
The documentation should explicitly state that:
jobs.<job-id>.uses(reusable workflow calls) is not supported incopilot-setup-steps.- Only inline
stepsare supported; shared setup logic must be inlined or extracted into a composite action (usingusesinside astepsentry) rather than a reusable workflow.
Suggested workaround (to be documented)
Instead of a reusable workflow, users can extract shared setup steps into a composite action and reference it within a step:
jobs:
copilot-setup-steps:
runs-on: ubuntu-latest
steps:
- uses: ./.github/actions/shared-setup # composite action — supported
References
- Vorherrschende Sprache
- TypeScript
- Sterne
- 20.9k
- Forks
- 68.9k
- Ø Merge
- 8 Std. 3 Min.
- Gemergte PRs (30 T.)
- 118
Entwicklungsumgebung
Startet den Dev-Container des Projekts im Browser, mit Ihrem eigenen GitHub-Konto.
- Enthält ein Dockerfile oder eine Docker-Compose-Datei
- Hat eine Pull-Request-Vorlage
- Beitragsleitfaden lesen
Erste Schritte
- Lesen Sie das ganze Issue und danach den Beitragsleitfaden des Projekts.
- Schreiben Sie ins Issue, dass Sie es übernehmen — das erspart doppelte Arbeit.
- Forken Sie das Repository und arbeiten Sie in einem Branch.
- Öffnen Sie einen Pull Request, der die Issue-Nummer nennt.
Mehr aus github/docs
-
content driver persona never-stale
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 72/100
github/docs#46116 · 4 Kommentare ·
Maintainer antworten meist innerhalb von 1 Tag
-
localization never-stale
Schwierigkeit 2/5 1-2 Tage Anfängerfreundlichkeit 72/100
github/docs#45949 · 1 Kommentar ·
Maintainer antworten meist innerhalb von 1 Tag
-
content localization never-stale
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 78/100
github/docs#45858 · 2 Kommentare · 1 Reaktion ·
Maintainer antworten meist innerhalb von 1 Tag
-
content localization never-stale
Schwierigkeit 1/5 Unter einer Stunde Anfängerfreundlichkeit 92/100
github/docs#45773 · 2 Kommentare ·
Maintainer antworten meist innerhalb von 1 Tag
-
content dependabot needs SME
Schwierigkeit 1/5 Unter einer Stunde Anfängerfreundlichkeit 82/100
github/docs#45681 · 6 Kommentare ·
Maintainer antworten meist innerhalb von 1 Tag
Ähnliche Issues
-
bug HemiStake
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 68/100
hemilabs/ui-monorepo#2413 ·
Maintainer antworten meist innerhalb von 1 Tag
-
component/ui framework/react kind/bug language/javascript
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 78/100
meshery/meshery#22216 · 3 Kommentare ·
Maintainer antworten meist innerhalb von 1 Tag
-
type/bug
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 72/100
Maintainer antworten meist innerhalb von 1 Tag
-
company delete fails with 500 on any company that has activity (cost events, inbox dismissals)Offen
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 84/100
paperclipai/paperclip#14982 ·
Maintainer antworten meist innerhalb von 1 Tag
-
community first-timers-only good first issue hacktoberfest help wanted low hanging fruit up-for-grabs
Schwierigkeit 1/5 Unter einer Stunde Anfängerfreundlichkeit 95/100
lingdojo/kana-dojo#31515 · 1 Kommentar · 5 Reaktionen ·
Maintainer antworten meist innerhalb von 1 Tag