Workflow dispatch fails for workflows in git submodules
Personne n'a encore pris cette issue.
Évaluation
- Difficulté
- 4/5
- Temps estimé
- 3-5 jours
- Accessibilité débutants
- 55/100
- Type d'issue
- Bug
- Clarté
- Plutôt claire
- Activité
- Calme
- Stack technique
- git, github-actions, typescript, vscode
Piste de recherche
Reproduisez l’échec avec un dépôt parent contenant un workflow de submodule dans .github/workflows/deploy.yml, en utilisant Trigger Run ou l’explorateur GitHub Actions. Suivez le chemin workflow-dispatch et la manière dont le dépôt du fichier ouvert est identifié. C’est terminé lorsque le dispatch cible le dépôt du submodule et que le 404 ne se produit plus.
Rédigé par le modèle d'indexation à partir du texte de l'issue.
Description
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:
- Have a git repository with a submodule that has its own separate GitHub repository
- The submodule contains GitHub Actions workflows in
.github/workflows/ - Open the workflow file in VSCode
- Right-click and select "Trigger Run" or use the GitHub Actions explorer
- See error:
404 Not Foundor similar repository not found error
Expected behavior
The extension should:
- Detect that the workflow is located in a git submodule
- Identify the correct GitHub repository for that submodule
- 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:
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:
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.
- Langage dominant
- TypeScript
- Étoiles
- 661
- Forks
- 214
- Métriques de merge des PR
- Aucune PR mergée en 30 j
Guide de contribution
Ouvrir le guide de contribution
Par où commencer
- Lisez l'issue en entier, puis le guide de contribution du projet.
- Signalez en commentaire que vous la prenez — cela évite que deux personnes fassent le même travail.
- Forkez le dépôt et travaillez sur une branche.
- Ouvrez une pull request qui référence le numéro de l'issue.
Autres issues de github/vscode-github-actions
-
enhancement
Difficulté 2/5 1-3 heures Accessibilité débutants 76/100
github/vscode-github-actions#627 · 1 réaction ·
-
long work Ouverte
Difficulté 4/5 3-5 jours Accessibilité débutants 25/100
github/vscode-github-actions#628 ·
-
bug
Difficulté 3/5 1-2 jours Accessibilité débutants 55/100
github/vscode-github-actions#625 ·
-
bug
Difficulté 3/5 1-2 jours Accessibilité débutants 64/100
github/vscode-github-actions#621 · 3 commentaires ·
-
Difficulté 3/5 1-2 jours Accessibilité débutants 50/100
github/vscode-github-actions#619 ·
Toutes les issues de github/vscode-github-actions
Issues similaires
-
Difficulté 2/5 1-3 heures Accessibilité débutants 75/100
safetrustcr/dApp-SafeTrust#426 ·
-
area:workflow bug ready-for-agent
Difficulté 2/5 1-3 heures Accessibilité débutants 75/100
fil-donadoni/tolaria#4409 ·
-
Difficulté 2/5 1-3 heures Accessibilité débutants 70/100
Fission-AI/OpenSpec#1960 ·
-
Add dependabot Ouverte
Difficulté 2/5 1-3 heures Accessibilité débutants 70/100
-
Difficulté 2/5 1-3 heures Accessibilité débutants 75/100
corsairdev/corsair#1764 ·