From 038e38ceee2e45fc7563a5f491994cffdda97c82 Mon Sep 17 00:00:00 2001 From: "mergify[bot]" <37929162+mergify[bot]@users.noreply.github.com> Date: Tue, 26 Nov 2024 11:59:32 -0800 Subject: [PATCH] Update CD permissions for uploading release artifacts (#4529) (#4531) Also bump softprops/action-gh-release to v2.1.0. (cherry picked from commit 25d00af83080934e542d7f97c0f8d6472a1ab4d7) Co-authored-by: Jack Koenig --- .github/workflows/release-notes.yml | 4 +++- .github/workflows/scala-cli-example.yml | 4 +++- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/.github/workflows/release-notes.yml b/.github/workflows/release-notes.yml index 26676bba4e2..bd6b31498a4 100644 --- a/.github/workflows/release-notes.yml +++ b/.github/workflows/release-notes.yml @@ -19,6 +19,8 @@ jobs: generate_release_notes: name: Generate Release Notes runs-on: ubuntu-22.04 + permissions: + contents: write steps: - name: Checkout @@ -41,7 +43,7 @@ jobs: run: echo "$CHANGELOG" >> $GITHUB_STEP_SUMMARY - name: Upload Release Notes (on release) if: github.event_name == 'release' - uses: softprops/action-gh-release@v2.0.5 + uses: softprops/action-gh-release@v2.1.0 with: body: ${{ steps.release-notes.outputs.changelog }} - name: Error on uncategorized PRs diff --git a/.github/workflows/scala-cli-example.yml b/.github/workflows/scala-cli-example.yml index 2cd98705c7e..17c162c85d4 100644 --- a/.github/workflows/scala-cli-example.yml +++ b/.github/workflows/scala-cli-example.yml @@ -14,6 +14,8 @@ jobs: name: Generate Chisel Scala CLI Example needs: [generate_scala_cli_example] runs-on: ubuntu-22.04 + permissions: + contents: write steps: - name: Download Generated CLI Example @@ -27,6 +29,6 @@ jobs: echo '```' >> $GITHUB_STEP_SUMMARY - name: Upload To Release Page if: github.event_name == 'release' - uses: softprops/action-gh-release@v2.0.5 + uses: softprops/action-gh-release@v2.1.0 with: files: chisel-example.scala