fix(ci): configure git auth for tag push in main workflow #13

Merged
jcabillot merged 1 commits from fix/tag-job-git-auth into main 2026-06-12 14:51:25 -04:00
Owner

Problème

Le job tag dans main.yaml échoue au git push avec :

fatal: could not read Username for 'https://scm.cabillot.eu'

Le checkout configure l'auth via includeIf mais anothrNick/github-tag-action n'arrive pas à l'utiliser pour son push.

Fix

Ajout d'un step Configure git auth avant l'action de tag qui injecte le token directement dans la remote URL :

- name: Configure git auth
  run: |
    git remote set-url origin "https://x-access-token:${GITHUB_TOKEN}@scm.cabillot.eu/perso/opencode.git"

Validation

  • GITHUB_TOKEN est fourni automatiquement par Gitea Actions avec droits d'écriture sur le repo
  • L'action de tag utilise GIT_API_TAGGING: false donc elle appelle git push — l'URL modifiée sera utilisée
## Problème Le job `tag` dans `main.yaml` échoue au `git push` avec : ``` fatal: could not read Username for 'https://scm.cabillot.eu' ``` Le checkout configure l'auth via `includeIf` mais `anothrNick/github-tag-action` n'arrive pas à l'utiliser pour son push. ## Fix Ajout d'un step `Configure git auth` avant l'action de tag qui injecte le token directement dans la remote URL : ```yaml - name: Configure git auth run: | git remote set-url origin "https://x-access-token:${GITHUB_TOKEN}@scm.cabillot.eu/perso/opencode.git" ``` ## Validation - `GITHUB_TOKEN` est fourni automatiquement par Gitea Actions avec droits d'écriture sur le repo - L'action de tag utilise `GIT_API_TAGGING: false` donc elle appelle `git push` — l'URL modifiée sera utilisée
cloudix_mcp_server added 1 commit 2026-06-12 14:48:21 -04:00
fix(ci): configure git auth before tag push in main workflow
PR Checks / hadolint (pull_request) Successful in 6s
PR Checks / build (pull_request) Successful in 2m43s
0a8ca9b751
jcabillot merged commit 0a620720b6 into main 2026-06-12 14:51:25 -04:00
jcabillot deleted branch fix/tag-job-git-auth 2026-06-12 14:51:25 -04:00
Sign in to join this conversation.
No Reviewers
No Label
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: perso/opencode#13