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

Release Tag still points GITEA_TOKEN at secrets.RELEASE_TOKEN, a
legacy PAT. Prefer the job built-in token with contents: write,
mirroring GITHUB_TOKEN and forcing GoReleaser onto the gitea path
so tag pushes publish without that PAT.

Link: #26
This commit is contained in:
s1d3sw1ped_bot
2026-09-02 15:01:29 +00:00
parent 04d1c6c368
commit ac05200c79
+5 -1
View File
@@ -7,6 +7,8 @@ on:
jobs:
release:
runs-on: ubuntu-latest
permissions:
contents: write
steps:
- uses: actions/checkout@main
with:
@@ -21,4 +23,6 @@ jobs:
version: 'latest'
args: release
env:
GITEA_TOKEN: ${{secrets.RELEASE_TOKEN}}
GITEA_TOKEN: ${{ secrets.GITEA_TOKEN }}
GITHUB_TOKEN: ${{ secrets.GITEA_TOKEN }}
GORELEASER_FORCE_TOKEN: gitea