Skip to content

Sync-in · Sovereign platform for file storage, sharing, synchronization, and collaboration.

ci: validate and use token for GitHub releases

johaven9c5859d7cba6
diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml
index 2b975e3b..b3044d64 100644
--- a/.github/workflows/release.yml
+++ b/.github/workflows/release.yml
@@ -66,10 +66,22 @@ jobs:
capture { print }
' CHANGELOG.md > latest-changelog.md
+ - name: Validate release GitHub token
+ shell: bash
+ env:
+ GITHUB_TOKEN: ${{ secrets.RELEASE_GITHUB_TOKEN }}
+ run: |
+ set -euo pipefail
+
+ if [ -z "${GITHUB_TOKEN-}" ]; then
+ echo "::error::Missing RELEASE_GITHUB_TOKEN secret. Use a personal access token from the account that should appear as the GitHub release author."
+ exit 1
+ fi
+
- name: Create GitHub Release
uses: softprops/action-gh-release@v3
env:
- GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
+ GITHUB_TOKEN: ${{ secrets.RELEASE_GITHUB_TOKEN }}
with:
draft: true
body_path: latest-changelog.md