Skip to content

Commit

Permalink
Fix release uploading
Browse files Browse the repository at this point in the history
  • Loading branch information
eymar committed Dec 2, 2024
1 parent 745f156 commit 472febe
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
3 changes: 3 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,9 @@ on:
required: true
default: 'false'

permissions:
contents: write

env:
version: m126-6fd3120c1b

Expand Down
2 changes: 1 addition & 1 deletion script/common.py
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ def github_headers():
if os.environ.get('GITHUB_BASIC'):
auth = 'Basic ' + base64.b64encode(os.environ.get('GITHUB_BASIC').encode('utf-8')).decode('utf-8')
else:
auth = 'token ' + os.environ.get('GITHUB_TOKEN')
auth = 'Bearer ' + os.environ.get('GITHUB_TOKEN')
return {
'Accept': 'application/vnd.github.v3+json',
'Authorization': auth
Expand Down

0 comments on commit 472febe

Please sign in to comment.