From bcf3da4a94f91a497249a60c8ef636080cab3848 Mon Sep 17 00:00:00 2001 From: Cal Corum Date: Tue, 17 Feb 2026 17:21:30 -0600 Subject: [PATCH] store: Gitea Actions: use API for tag creation instead of git push --- ...pi-for-tag-creation-instead-of-git-push-175d7c.md | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 graph/solutions/gitea-actions-use-api-for-tag-creation-instead-of-git-push-175d7c.md diff --git a/graph/solutions/gitea-actions-use-api-for-tag-creation-instead-of-git-push-175d7c.md b/graph/solutions/gitea-actions-use-api-for-tag-creation-instead-of-git-push-175d7c.md new file mode 100644 index 00000000000..dbc20f208e7 --- /dev/null +++ b/graph/solutions/gitea-actions-use-api-for-tag-creation-instead-of-git-push-175d7c.md @@ -0,0 +1,12 @@ +--- +id: 175d7c55-6fd8-449d-8e37-4ddbaffc6427 +type: solution +title: "Gitea Actions: use API for tag creation instead of git push" +tags: [paper-dynasty, gitea, ci-cd, actions, fix] +importance: 0.7 +confidence: 0.8 +created: "2026-02-17T23:21:30.886855+00:00" +updated: "2026-02-17T23:21:30.886855+00:00" +--- + +Problem: CI tag step failed with 'pre-receive hook declined' when pushing to protected main branch. The runner's token doesn't have permission to git push to protected branches. Solution: Replace git push with Gitea REST API call (POST /api/v1/repos/{owner}/{repo}/tags) using github.token. This bypasses branch protection since it's an API call, not a git push. Also removed the unnecessary VERSION file commit since CalVer is derived from tags, not a VERSION file.