ci: Migrate release to job GITEA_TOKEN
CI / check-and-test (pull_request) Successful in 17s

Release Tag still authenticates GoReleaser with secrets.RELEASE_TOKEN, a
legacy PAT that CI policy no longer wants refreshed. Prefer the job
built-in token with contents: write, mirror it into GITHUB_TOKEN the way
vulture does, and force GoReleaser onto the Gitea token path.

Link: #11
This commit is contained in:
s1d3sw1ped_bot
2026-09-02 15:01:08 +00:00
parent 32085d9151
commit dabf261eb7
+6 -1
View File
@@ -7,6 +7,8 @@ on:
jobs: jobs:
release: release:
runs-on: ubuntu-latest runs-on: ubuntu-latest
permissions:
contents: write
steps: steps:
- uses: actions/checkout@main - uses: actions/checkout@main
with: with:
@@ -21,4 +23,7 @@ jobs:
version: 'latest' version: 'latest'
args: release args: release
env: env:
GITEA_TOKEN: ${{secrets.RELEASE_TOKEN}} GITEA_TOKEN: ${{ secrets.GITEA_TOKEN }}
# Prefer Gitea when the runner also injects GITHUB_TOKEN.
GITHUB_TOKEN: ${{ secrets.GITEA_TOKEN }}
GORELEASER_FORCE_TOKEN: gitea