Skip to content

Commit

Permalink
release-basetools.yml: Add contents write permission for publishing
Browse files Browse the repository at this point in the history
The GITHUB_TOKEN is used in the `gh release upload` command to
upload a new basetools release. This adds content write permission
to allow the upload to work when the default permission is read-only
for the token.

Signed-off-by: Michael Kubacki <[email protected]>
  • Loading branch information
makubacki committed Feb 1, 2024
1 parent 7fe01d0 commit ac37e27
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions .github/workflows/release-basetools.yml
Original file line number Diff line number Diff line change
Expand Up @@ -101,6 +101,10 @@ jobs:
needs: build
if: github.event_name == 'release'
runs-on: ubuntu-latest

permissions:
contents: write

steps:
- name: Checkout Code
uses: actions/checkout@v4
Expand Down

0 comments on commit ac37e27

Please sign in to comment.