From 4a0cf1ae7d9f622b75d71537ee5130a3ec7c3b33 Mon Sep 17 00:00:00 2001 From: tienbh Date: Wed, 25 Nov 2026 14:31:24 +0700 Subject: [PATCH] ci: Update release workflow to read both GITHUB_TOKEN and RELEASE_TOKEN from the runner environment for improved clarity and security --- .gitea/scoped_workflows/release.yaml | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) diff --git a/.gitea/scoped_workflows/release.yaml b/.gitea/scoped_workflows/release.yaml index 0a34a9e..664bcc4 100644 --- a/.gitea/scoped_workflows/release.yaml +++ b/.gitea/scoped_workflows/release.yaml @@ -43,10 +43,10 @@ jobs: curl --silent --show-error --fail --location --output cliff.toml "$url" echo "config=cliff.toml" >> "$GITHUB_OUTPUT" - - name: Read GITHUB_TOKEN from the runner + - name: Read envs from the runner uses: https://git.sothink.vn/gitea/global-workflow/.gitea/actions/load-env@main with: - names: GITHUB_TOKEN + names: GITHUB_TOKEN RELEASE_TOKEN # Gitea's GITHUB_TOKEN is rejected by api.github.com. Pass a github.com PAT instead. - name: Generate release notes @@ -58,11 +58,6 @@ jobs: env: OUTPUT: release-notes.md - - name: Read Release Token from the runner - uses: https://git.sothink.vn/gitea/global-workflow/.gitea/actions/load-env@main - with: - names: RELEASE_TOKEN - - name: Create release uses: softprops/action-gh-release@v3 with: