debug: token GITHUB_TOKEN no runner (temporário)
All checks were successful
Debug token / debug (push) Successful in 2s
CI / checks (pull_request) Successful in 19s
Agent PR Ready + auto-merge / ready-automerge (pull_request) Successful in 1m22s
CI / deploy (pull_request) Has been skipped

This commit is contained in:
Francisco Solla 2026-08-17 22:05:35 -03:00
parent ac253c2737
commit 8bc6ea0536

View file

@ -0,0 +1,24 @@
name: Debug token
on:
workflow_dispatch:
push:
branches: [OPS1-setup-workflow-teqo]
jobs:
debug:
runs-on: host
timeout-minutes: 5
steps:
- name: Quem é o GITHUB_TOKEN
run: |
echo "GITHUB_TOKEN user:"
curl -s -H "Authorization: token $GITHUB_TOKEN" https://git.solla.dev/api/v1/user
echo
echo "Permissões no repo:"
curl -s -H "Authorization: token $GITHUB_TOKEN" "https://git.solla.dev/api/v1/repos/amana/iara-pwa"
echo
echo "Tentando criar label (escrita):"
curl -s -o /dev/null -w "%{http_code}\n" -X POST -H "Authorization: token $GITHUB_TOKEN" -H "Content-Type: application/json" "https://git.solla.dev/api/v1/repos/amana/iara-pwa/labels" -d '{"name":"debug-token-test","color":"ff0000"}'
echo "Tentando remover label:"
curl -s -o /dev/null -w "%{http_code}\n" -X DELETE -H "Authorization: token $GITHUB_TOKEN" "https://git.solla.dev/api/v1/repos/amana/iara-pwa/labels/debug-token-test"