Skip to content

Commit

Permalink
Update CD permissions for uploading release artifacts (#4529) (#4531)
Browse files Browse the repository at this point in the history
Also bump softprops/action-gh-release to v2.1.0.

(cherry picked from commit 25d00af)

Co-authored-by: Jack Koenig <[email protected]>
  • Loading branch information
mergify[bot] and jackkoenig authored Nov 26, 2024
1 parent 6e0428d commit 038e38c
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
4 changes: 3 additions & 1 deletion .github/workflows/release-notes.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,8 @@ jobs:
generate_release_notes:
name: Generate Release Notes
runs-on: ubuntu-22.04
permissions:
contents: write

steps:
- name: Checkout
Expand All @@ -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
Expand Down
4 changes: 3 additions & 1 deletion .github/workflows/scala-cli-example.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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

0 comments on commit 038e38c

Please sign in to comment.