From 46cc0348f9e5738bd3c883adb05d5bd62385f69c Mon Sep 17 00:00:00 2001 From: Ju4tCode <42488585+yanyongyu@users.noreply.github.com> Date: Mon, 1 Jan 2024 15:38:51 +0800 Subject: [PATCH] :memo: update action auth doc --- README.md | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/README.md b/README.md index 713a62c4f..263fda535 100644 --- a/README.md +++ b/README.md @@ -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`: