Skip to content

Commit

Permalink
base64 wants bytes, not strings
Browse files Browse the repository at this point in the history
  • Loading branch information
varesa committed Apr 12, 2024
1 parent 824486a commit 28d85b5
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
4 changes: 3 additions & 1 deletion .github/workflows/prod.yml
Expand Up @@ -30,7 +30,9 @@ jobs:
req = urllib.request.Request(
'https://ghcr.io/v2/wappuradio/webbi/tags/list',
headers={'Authorization': 'Basic ' + base64.b64encode(sys.argv[1])}
headers={
'Authorization': 'Basic ' + base64.b64encode(sys.argv[1].encode()).decode()
}
)
with urllib.request.urlopen(req) as f:
Expand Down
4 changes: 3 additions & 1 deletion .github/workflows/test.yml
Expand Up @@ -30,7 +30,9 @@ jobs:
req = urllib.request.Request(
'https://ghcr.io/v2/wappuradio/webbi/tags/list',
headers={'Authorization': 'Basic ' + base64.b64encode(sys.argv[1])}
headers={
'Authorization': 'Basic ' + base64.b64encode(sys.argv[1].encode()).decode()
}
)
with urllib.request.urlopen(req) as f:
Expand Down

0 comments on commit 28d85b5

Please sign in to comment.