diff --git a/.github/actions/github-release/action.yaml b/.github/actions/github-release/action.yaml index 1fe1080f..bcab75c1 100644 --- a/.github/actions/github-release/action.yaml +++ b/.github/actions/github-release/action.yaml @@ -5,6 +5,9 @@ inputs: artifact-version: description: "" required: true + github-token: + description: + required: true runs: using: composite @@ -38,7 +41,7 @@ runs: - name: Create GitHub Release uses: actions/create-release@v1 env: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + GITHUB_TOKEN: ${{ inputs.github-token }} with: tag_name: ${{ inputs.artifact-version }} release_name: ${{ inputs.artifact-version }} diff --git a/.github/workflows/promote.yaml b/.github/workflows/promote.yaml index 7d7fa517..022a0feb 100644 --- a/.github/workflows/promote.yaml +++ b/.github/workflows/promote.yaml @@ -15,6 +15,8 @@ on: secrets: CLIENT_BOT_PAT: required: true + GITHUB_TOKEN: + required: true jobs: validate-build: @@ -87,3 +89,4 @@ jobs: uses: ./.github/actions/github-release with: artifact-version: ${{ steps.get-artifact-version.outputs.artifact-version }} + github-token: ${{ secrets.GITHUB_TOKEN }}