401 Error running API call through github-script
Nadie ha tomado este issue todavía.
Evaluación
- Dificultad
- 4/5
- Tiempo estimado
- 3-5 días
- Aptitud para principiantes
- 35/100
- Tipo de issue
- Error
- Claridad
- Necesita aclaración
- Estado de actividad
- Estancado
- Stack tecnológico
- github, github-actions, javascript, postman, typescript
- Área
- api, authentication, ci-cd
Línea de trabajo
Start with the attached list-repo-status.yml workflow and debug log, then compare the last successful run with the first failing run. Check how github-script 6.3.3 receives and uses the organization secret, using the Postman result as a token-behavior comparison. Done means the workflow authenticates successfully and produces the repository list.
Escrito por el modelo de indexación a partir del texto del issue.
Descripción
Edit: link to first failure
I am getting 401 “Bad Credentials” trying to run some api calls through github-script. This was working on Monday (Jan 9) but stopped working on Tuesday (Jan 10)
I have contacted GitHub Support and they have been able to reproduce the error. They say it is most likely due to the 3rd party action, "github-script" (6.3.3) causing this issue.
https://support.github.com/ticket/enterprise/15636/1960901
Steps to reproduce
-
Create PAT with Admin access (r/w) to repos and org/teams -
Set an Org secret using the value from my PAT -
Run the workflow manually (or from a push) -
Failure with 401 error
Expected to produce a list of repositories
I have pared down the workflow to isolate the issue. Attached is the workflow (list-repo-status.yml) and the debug log
list-repo-status.yml
list-repo-status.debug.log.txt
Last successful run can be found:
https://github.com/teamkfinteg/reportscripts/actions/runs/3878744215
First failure (only difference was trying to replace trigger with cron
https://github.com/teamkfinteg/reportscripts/actions/runs/3885391826
I used Postman with the same token to test and it works as expected.
Desktop (please complete the following information):
- OS: Win10
- Browser: Firefox
- Version: 108.0.2 (64-bit)
- Lenguaje dominante
- TypeScript
- Estrellas
- 5k
- Forks
- 586
- Métricas de merge de PR
- Sin PR fusionados en 30 d
Guía de contribución
No hay ninguna guía de contribución indexada para este repositorio
Primeros pasos
- Lee el issue completo y luego la guía de contribución del proyecto.
- Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
- Haz un fork del repositorio y trabaja en una rama.
- Abre un pull request que haga referencia al número del issue.
Más de actions/github-script
-
Dificultad 3/5 1-2 días Aptitud para principiantes 48/100
actions/github-script#728 ·
-
Dificultad 3/5 1-2 días Aptitud para principiantes 52/100
actions/github-script#727 · 1 reacción ·
-
{ Abierto
Dificultad 5/5 Más de una semana Aptitud para principiantes 10/100
actions/github-script#724 ·
-
Dificultad 3/5 1-2 días Aptitud para principiantes 55/100
actions/github-script#723 · 1 comentario ·
-
Dificultad 3/5 1-2 días Aptitud para principiantes 55/100
actions/github-script#714 · 1 comentario · 4 reacciones ·
Todos los issues de actions/github-script
Issues similares
-
blocklist removal
Dificultad 2/5 1-3 horas Aptitud para principiantes 65/100
MetaMask/eth-phishing-detect#296544 ·
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 70/100
pastelsky/bundlephobia#1122 ·
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 70/100
-
category/development priority/P2 scope/file-operations scope/testing type/enhancement
Dificultad 2/5 1-3 horas Aptitud para principiantes 75/100
-
Enatega Customer and Rider app: Add-ons price is not visible to customer after order is placed. Abierto
Dificultad 2/5 1-3 horas Aptitud para principiantes 75/100