Skip to content

Commit

Permalink
Update CD permissions for uploading release artifacts (backport #4529) (
Browse files Browse the repository at this point in the history
#4530)

* Update CD permissions for uploading release artifacts (#4529)

Also bump softprops/action-gh-release to v2.1.0.

(cherry picked from commit 25d00af)

# Conflicts:
#	.github/workflows/release-notes.yml
#	.github/workflows/scala-cli-example.yml

* Update release-notes.yml

* Update scala-cli-example.yml

---------

Co-authored-by: Jack Koenig <[email protected]>
  • Loading branch information
mergify[bot] and jackkoenig authored Nov 27, 2024
1 parent bb562f2 commit c1fb8fe
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-latest
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 @@ -9,6 +9,8 @@ jobs:
generate_scala_cli_example:
name: Generate Scala CLI Example
runs-on: ubuntu-latest
permissions:
contents: write

steps:
- name: Checkout
Expand All @@ -26,7 +28,7 @@ jobs:
retention-days: 7
- 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 c1fb8fe

Please sign in to comment.