Skip to content

Commit

Permalink
set write permission for upload job only
Browse files Browse the repository at this point in the history
  • Loading branch information
kruplm authored Mar 21, 2024
1 parent 49fc43a commit a926fd5
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ on:
workflow_dispatch:

permissions:
contents: write
contents: read
actions: read

name: Release
Expand All @@ -19,7 +19,8 @@ jobs:
name: Upload Release Asset
needs: build
runs-on: windows-latest

permissions:
contents: write
steps:

# Using shared artifact from build workflow
Expand All @@ -37,6 +38,7 @@ jobs:
run: Compress-Archive -Path ${{ github.workspace }}/shell-binaries/* composeui-${{ github.ref_name }}-win32.zip

- name: Upload Release Asset

id: upload-release-asset
uses: actions/upload-release-asset@e8f9f06c4b078e705bd2ea027f0926603fc9b4d5 # v1.0.2
env:
Expand Down

0 comments on commit a926fd5

Please sign in to comment.