From 3e6c871c7124d28b20f8c660c1771a8f8460735d Mon Sep 17 00:00:00 2001 From: Ali Sajid Imami <395482+AliSajid@users.noreply.github.com> Date: Thu, 23 May 2024 21:33:06 -0400 Subject: [PATCH] ci: ensure github cli has correct permissions Signed-off-by: Ali Sajid Imami <395482+AliSajid@users.noreply.github.com> --- .github/workflows/create_github_release.yaml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/.github/workflows/create_github_release.yaml b/.github/workflows/create_github_release.yaml index 92949bd..c7cac7c 100644 --- a/.github/workflows/create_github_release.yaml +++ b/.github/workflows/create_github_release.yaml @@ -40,6 +40,8 @@ jobs: echo "tag_version=$TAG_VERSION" >> "$GITHUB_OUTPUT" create_release_artifacts: needs: [create-release] + permissions: + contents: write strategy: fail-fast: false matrix: @@ -78,4 +80,5 @@ jobs: - name: Upload Release Artifact env: RELEASE_TAG: ${{ needs.create-release.outputs.tag_version }} + GH_TOKEN: ${{ github.token }} run: gh release upload ${{ env.RELEASE_TAG }} ${{ env.NEWNAME }}