Skip to content

Commit

Permalink
working
Browse files Browse the repository at this point in the history
Signed-off-by: John Andersen <[email protected]>
  • Loading branch information
John Andersen committed Jul 10, 2024
1 parent c668660 commit 6c3312d
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions scitt_emulator/policy_engine.py
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,10 @@
Terminal 1:
```bash
GITHUB_TOKEN=$(gh auth token) NO_CELERY=1 ./scitt_emulator/policy_engine.py --workers 1
echo For GitHub App
NO_CELERY=1 ./scitt_emulator/policy_engine.py api --lifespan scitt_emulator.policy_engine:lifespan_github_app_gidgethub github_app.yaml --workers 1
echo OR for token (need commit status: write)
GITHUB_TOKEN=$(gh auth token) NO_CELERY=1 ./scitt_emulator/policy_engine.py api --workers 1
```
**request.yml**
Expand Down Expand Up @@ -1443,7 +1446,7 @@ async def gidgethub_get_access_token(context, request):
context.state.gidgethub,
installation_id=installation_id,
app_id=context.state.github_app.app_id,
private_key=context.state.ggithub_app.private_key,
private_key=context.state.github_app.private_key,
)
result["installation"] = data
return result
Expand Down

0 comments on commit 6c3312d

Please sign in to comment.