Skip to content

Commit

Permalink
Fix auth
Browse files Browse the repository at this point in the history
  • Loading branch information
DecimalTurn authored Aug 9, 2024
1 parent 1869016 commit 04804a0
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
5 changes: 5 additions & 0 deletions .github/workflows/scan_and_suggest.py
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,11 @@ def create_github_issue(repo_full_name, title, body, token):
'body': body
}

print(f"URL: {url}")
print(f"Token: {'*' * len(token)}") # Avoid printing the actual token
print(f"Headers: {headers}")
print(f"Data: {data}")

response = requests.post(url, headers=headers, json=data)

if response.status_code == 201:
Expand Down
2 changes: 2 additions & 0 deletions .github/workflows/scan_and_suggest.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,3 +28,5 @@ jobs:
- name: Run script
run: |
python './.github/workflows/scan_and_suggest.py'
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

0 comments on commit 04804a0

Please sign in to comment.