ci: update GitHub release workflow to use RELEASE_TOKEN for improved security

This commit is contained in:
Manuel Weiser 2025-02-21 21:17:02 +01:00
parent 069ec2d7a1
commit 52b2494e52
2 changed files with 3 additions and 3 deletions

View File

@ -3,7 +3,7 @@ name: GitHub Release
on:
workflow_call:
secrets:
GITHUB_TOKEN:
RELEASE_TOKEN:
description: 'GitHub token for release creation'
required: true
@ -104,7 +104,7 @@ jobs:
- name: Create GitHub Release
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
GITHUB_TOKEN: ${{ secrets.RELEASE_TOKEN }}
run: |
VERSION=${{ steps.get_version.outputs.VERSION }}
cd .pio/build/esp32dev

View File

@ -31,7 +31,7 @@ jobs:
if: needs.detect-provider.outputs.provider == 'github'
uses: ./.github/workflows/github-release.yml
secrets:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
RELEASE_TOKEN: ${{ secrets.GITHUB_TOKEN }}
gitea-release:
needs: detect-provider