ci(forgejo): use runner-provided GITHUB_TOKEN for release workflow #23
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "fix/forgejo-release-use-runner-token"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
La création de secrets au niveau repo est cassée sur cette instance Forgejo (InsertEncryptedSecret échoue avec une erreur UTF-8 byte-sequence, probablement un type text au lieu de bytea sur la colonne
secret.data). Le fix est dans Forgejo v16 upstream ; en attendant, on bascule sur${{ secrets.GITHUB_TOKEN }}(auto-fourni par le runner, scopecontents: writepar défaut sur le repo courant).Diff : changement du nom du secret dans le step de publication + commentaire d'en-tête mis à jour pour documenter le contexte.
Revert : quand Forgejo v16 est installé et que la table
secretest migrée, revert ce commit pour revenir à${{ secrets.RELEASE_TOKEN }}(PAT dédié, moindre privilège).Repo-level secrets creation is broken on this Forgejo instance (InsertEncryptedSecret fails with UTF-8 byte-sequence error, likely a text-vs-bytea column type on the secret table). The fix is in upstream Forgejo v16; until then, ${{ secrets.GITHUB_TOKEN }} (auto- provided by the runner, scoped to contents: write for the current repo) keeps the release workflow operational without any UI setup. When the instance is upgraded and the secret table is migrated, revert this commit to switch back to ${{ secrets.RELEASE_TOKEN }} for least-privilege.