Workflow dispatch fails for workflows in git submodules

Aperta
#596 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
4/5
Tempo stimato
3-5 giorni
Idoneità per principianti
55/100
Tipo di issue
Bug
Chiarezza
Abbastanza chiara
Stato di attività
Tranquilla
Stack tecnologico
git, github-actions, typescript, vscode
Ambito
ci-cd, devtools

Direzione di ricerca

Riproduci il problema con un repository padre contenente un workflow di submodule in .github/workflows/deploy.yml, usando Trigger Run o l’esploratore di GitHub Actions. Traccia il percorso di workflow-dispatch e il modo in cui viene identificato il repository del file aperto. Il lavoro è completato quando il dispatch indirizza al repository del submodule e il 404 non si verifica più.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

bug

Describe the bug
When attempting to trigger a GitHub Actions workflow located in a git submodule (e.g., host/.github/workflows/deploy.yml), the extension fails with a 404 "Not Found" error. The extension incorrectly attempts to dispatch the workflow to the parent repository instead of the submodule's separate GitHub repository.

To Reproduce
Steps to reproduce the behavior:

  1. Have a git repository with a submodule that has its own separate GitHub repository
  2. The submodule contains GitHub Actions workflows in .github/workflows/
  3. Open the workflow file in VSCode
  4. Right-click and select "Trigger Run" or use the GitHub Actions explorer
  5. See error: 404 Not Found or similar repository not found error

Expected behavior
The extension should:

  1. Detect that the workflow is located in a git submodule
  2. Identify the correct GitHub repository for that submodule
  3. Dispatch the workflow to the correct repository, not the parent

Screenshots
The error appears in the VSCode debug console when attempting to dispatch a workflow in the web submodule:
Image
The extension is attempting to dispatch to the parent repository instead of the submodule's separate GitHub repository.

A user-facing error notification is displayed:
Image

Note: Request IDs and repository names in the screenshot have been redacted for privacy.

Extension Version
v0.31.5

Additional context
This occurs in monorepo setups where submodules are separate GitHub repositories with their own workflows.

monorepo/                              (Parent repo: github.com/owner/monorepo)
└── submodule/                         (Submodule: github.com/owner/submodule)
    └── .github/workflows/
        └── deploy.yml                 ← Should dispatch to submodule repo

The extension's workflow dispatch logic needs to be aware of git submodules and route dispatch requests to the appropriate repository.

Lingua principale
TypeScript
Stelle
661
Fork
214
Metriche di merge delle PR
Nessuna PR unita negli ultimi 30g

Guida per i contributori

Apri la guida per i contributori

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di github/vscode-github-actions

Tutte le issue di github/vscode-github-actions

Issue simili

Altre issue su TypeScript

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.