Skip to content

Commit

Permalink
using ssh to pull from github
Browse files Browse the repository at this point in the history
  • Loading branch information
EvaMart committed Sep 12, 2024
1 parent 0be5db6 commit e13403f
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
1 change: 1 addition & 0 deletions docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,3 +10,4 @@ services :
- .env
ports:
- "8000:8000"

5 changes: 3 additions & 2 deletions main.py
Original file line number Diff line number Diff line change
Expand Up @@ -127,8 +127,9 @@ def webhooks(
'''
if payload.state == 'updated':
# Pull changes from the remote repository
GITHUB_TOKEN=os.getenv("GITHUB_TOKEN")
url = f"https://evamart:{GITHUB_TOKEN}@github.com/inab/licenses-mapping.git"
# GITHUB_TOKEN=os.getenv("GITHUB_TOKEN")
#url = f"https://evamart:{GITHUB_TOKEN}@github.com/inab/licenses-mapping.git"
url = "[email protected]:inab/licenses-mapping.git"
repo = Repo("./")
origin = repo.remotes.origin
origin.set_url(url)
Expand Down

0 comments on commit e13403f

Please sign in to comment.