Skip to content
This repository has been archived by the owner on Aug 23, 2023. It is now read-only.

Commit

Permalink
Merge pull request #11 from reecetech/url-encoded
Browse files Browse the repository at this point in the history
Fix: escape `/` characters as well
  • Loading branch information
ps-jay authored May 4, 2022
2 parents 84c8f89 + 6211d1a commit 2fe7b5d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pat_helper.py
Original file line number Diff line number Diff line change
Expand Up @@ -204,8 +204,8 @@ def revoke_pat():


def print_outputs():
username_encoded = urllib.parse.quote(USERNAME)
pat_encoded = urllib.parse.quote(PAT)
username_encoded = urllib.parse.quote(USERNAME, safe='')
pat_encoded = urllib.parse.quote(PAT, safe='')
print(f"::add-mask::{PAT}") # mark the PAT as secret in GitHub Actions logs
print(f"::add-mask::{pat_encoded}") # mark the PAT as secret in GitHub Actions logs
print(f"::set-output name=username::{USERNAME}")
Expand Down

0 comments on commit 2fe7b5d

Please sign in to comment.