Workflow dispatch fails for workflows in git submodules

Abierto
#596 0 comentarios 0 reacciones 0 asignados Ver en GitHub

Nadie ha tomado este issue todavía.

Evaluación

Dificultad
4/5
Tiempo estimado
3-5 días
Aptitud para principiantes
55/100
Tipo de issue
Error
Claridad
Bastante claro
Estado de actividad
Tranquilo
Stack tecnológico
git, github-actions, typescript, vscode
Área
ci-cd, devtools

Línea de trabajo

Reproduce el fallo con un repositorio principal que contenga un workflow de submodule en .github/workflows/deploy.yml, usando Trigger Run o el explorador de GitHub Actions. Sigue la ruta de workflow-dispatch y cómo se identifica el repositorio del archivo abierto. Se considera completado cuando el dispatch apunta al repositorio de submodule y el 404 ya no se produce.

Escrito por el modelo de indexación a partir del texto del issue.

Descripción

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.

Lenguaje dominante
TypeScript
Estrellas
661
Forks
214
Métricas de merge de PR
Sin PR fusionados en 30 d

Guía de contribución

Abrir la guía de contribución

Primeros pasos

  1. Lee el issue completo y luego la guía de contribución del proyecto.
  2. Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
  3. Haz un fork del repositorio y trabaja en una rama.
  4. Abre un pull request que haga referencia al número del issue.

Más de github/vscode-github-actions

Todos los issues de github/vscode-github-actions

Issues similares

Más issues de TypeScript

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.