Skip to content

Commit

Permalink
Assigns GITHUB_TOKEN to a variable (#699)
Browse files Browse the repository at this point in the history
  • Loading branch information
ultimaweapon authored Feb 25, 2024
1 parent 014f467 commit 34b122f
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions .github/workflows/pr-update.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,8 @@ jobs:
from urllib.request import Request, urlopen
from zipfile import ZipFile
gh = Github(auth=Auth.Token("${{ secrets.GITHUB_TOKEN }}"))
tok = "${{ secrets.GITHUB_TOKEN }}"
gh = Github(auth=Auth.Token(tok))
repo = gh.get_repo("${{ github.repository }}")
run = repo.get_workflow_run(${{ github.event.workflow_run.id }})
info = None
Expand All @@ -29,7 +30,7 @@ jobs:
info = artifact
req = Request(info.archive_download_url, None, {
"Authorization": "Bearer ${{ secrets.GITHUB_TOKEN }}",
"Authorization": f"Bearer {tok}",
"Accept": "application/vnd.github+json"
})
Expand Down

0 comments on commit 34b122f

Please sign in to comment.