Skip to content

Commit

Permalink
Add permissions
Browse files Browse the repository at this point in the history
  • Loading branch information
mnvr committed Mar 5, 2024
1 parent 0e5a012 commit d627fdc
Showing 1 changed file with 4 additions and 8 deletions.
12 changes: 4 additions & 8 deletions .github/workflows/cli-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,10 @@ on:
tags:
- "cli-v*"

permissions:
# Allow the action to create a release
contents: write

jobs:
release-linux-amd64:
runs-on: ubuntu-latest
Expand All @@ -18,14 +22,6 @@ jobs:
- name: Checkout code
uses: actions/checkout@v4

- name: Create a draft GitHub release
uses: ncipollo/release-action@v1
with:
prerelease: true
draft: true
allowUpdates: true
updateOnlyUnreleased: true

- name: Build go binaries and upload to the release
uses: wangyoucao577/go-release-action@v1
with:
Expand Down

0 comments on commit d627fdc

Please sign in to comment.