Skip to content

Commit

Permalink
fix: ignore missing environment variables
Browse files Browse the repository at this point in the history
  • Loading branch information
andylolz committed May 13, 2024
1 parent 2e21245 commit 49c76aa
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions x_notes/github.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,9 @@
import requests
from nacl import encoding, public

_base_url = f"https://api.github.com/repos/{environ['REPO']}/actions/secrets"
_base_url = f"https://api.github.com/repos/{environ.get('REPO')}/actions/secrets"
_headers = {
"Authorization": f"Bearer {environ['GH_TOKEN']}",
"Authorization": f"Bearer {environ.get('GH_TOKEN')}",
}


Expand Down

0 comments on commit 49c76aa

Please sign in to comment.