Skip to content

Commit

Permalink
📝 update action auth doc
Browse files Browse the repository at this point in the history
  • Loading branch information
yanyongyu authored Jan 1, 2024
1 parent 2fcdbb2 commit 46cc034
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -148,6 +148,18 @@ from githubkit import GitHub, ActionAuthStrategy
github = GitHub(ActionAuthStrategy())
```

and add env or input to the step:

```yaml
- name: Some step use githubkit
with:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

- name: Some step use githubkit
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
```
### Config
githubkit is highly configurable, you can change the default config by passing config options to `GitHub`:
Expand Down

0 comments on commit 46cc034

Please sign in to comment.