Skip to content

Commit

Permalink
#14 correct required scope workflow for actions automation
Browse files Browse the repository at this point in the history
  • Loading branch information
chrisjsimpson committed Jan 13, 2023
1 parent 4d78e40 commit 718c70e
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions app.py
Original file line number Diff line number Diff line change
Expand Up @@ -98,9 +98,9 @@ async def homepage(request):
state_rails = f"{secrets.token_urlsafe(30)}---rails"
state_django = f"{secrets.token_urlsafe(30)}---django"
state_flask = f"{secrets.token_urlsafe(30)}---flask"
github_authorize_url = f"https://github.com/login/oauth/authorize?client_id={client_id}&state={state}&scope=repo%20user:email" # noqa: E501
github_authorize_url_rails = f"https://github.com/login/oauth/authorize?client_id={client_id}&state={state_rails}&scope=repo%20user:email" # noqa: E501
github_authorize_url_django = f"https://github.com/login/oauth/authorize?client_id={client_id}&state={state_django}&scope=repo%20user:email" # noqa: E501
github_authorize_url = f"https://github.com/login/oauth/authorize?client_id={client_id}&state={state}&scope=workflow%20repo%20user:email" # noqa: E501
github_authorize_url_rails = f"https://github.com/login/oauth/authorize?client_id={client_id}&state={state_rails}&scope=workflow%20repo%20user:email" # noqa: E501
github_authorize_url_django = f"https://github.com/login/oauth/authorize?client_id={client_id}&state={state_django}&scope=workflow%20repo%20user:email" # noqa: E501
github_authorize_url_flask = f"https://github.com/login/oauth/authorize?client_id={client_id}&state={state_flask}&scope=workflow%20repo%20user:email" # noqa: E501

return templates.TemplateResponse(
Expand Down

0 comments on commit 718c70e

Please sign in to comment.