With --fetch-remote, a pinned SHA that isn't a commit of the action fails

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

Los mantenedores suelen responder en 1 día

Nadie ha tomado este issue todavía.

Evaluación

Dificultad
3/5
Tiempo estimado
1-2 días
Aptitud para principiantes
75/100
Tipo de issue
Error
Claridad
Bien especificado
Estado de actividad
Activo
Stack tecnológico
git, github, python
Área
devtools, testing

Línea de trabajo

Read the action-pinning code and the remote-read handling used with --fetch-remote, then inspect the tests for action pinning and unreachable hosts. Add coverage for a fake SHA that fails with --fetch-remote, passes without it, and remains unknown when the host cannot be reached. Done means all three cases behave as described and name the action on failure.

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

Descripción

Problem

#503 refuses SHAs that are all one digit or a repeated pattern. Any other made-up 40-hex string still passes action-pinning. Nothing in the pinning code uses --fetch-remote.

Expected

  • With --fetch-remote, a SHA that isn't a commit of the action's repository fails, naming the action.
  • When the host can't be asked, the pin is unknown, as for other remote reads.
  • Without --fetch-remote, nothing changes.

Done when

A random fake SHA fails with --fetch-remote and passes without it, with tests for both and for an unreachable host.

Split from #480. Checked against main at 4b4dbb6c on 2026-12-03: the cases above were reproduced with small fixtures or found in the code.

🤖 Generated with Claude Code

https://claude.ai/code/session_01ByTXNqDWdM7HzezrFtEvQt

Lenguaje dominante
Python
Estrellas
4
Forks
1
Merge medio
6 h 31 min
PR fusionados (30 d)
238

Preparar el entorno

Este proyecto no incluye contenedor de desarrollo, Dockerfile ni guía de contribución, así que la configuración corre por tu cuenta: empieza por su README y consulta nuestra guía para la primera contribución para los pasos generales.

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 cpp-best-practices/project_validator

Todos los issues de cpp-best-practices/project_validator

Issues similares

Más issues de Python

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.