Skip to content

Commit

Permalink
GitHub Action: 删除actions/checkout多余的token设置, 使用GraphQL Api提交不需要
Browse files Browse the repository at this point in the history
使用`GraphQL Api`提交不需要设置`actions/checkout`中的`token`为`PAT`令牌, 来绕过分支保护规则
  • Loading branch information
maboloshi committed Nov 26, 2023
1 parent ed06e12 commit ca9e208
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 5 deletions.
2 changes: 0 additions & 2 deletions .github/workflows/main.user.js_version_update.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,6 @@ jobs:
steps:
- name: Checkout repository
uses: actions/checkout@v4
with:
token: ${{ secrets.CI_GITHUB_TOKEN }} # 要绕过分支保护规则此处不可少

- name: Get latest tag commit SHA
run: echo "LATEST_TAG_COMMIT_SHA=$(git rev-list --tags --max-count=1)" >> $GITHUB_ENV
Expand Down
5 changes: 2 additions & 3 deletions .github/workflows/update_contributors_images.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,8 @@ jobs:
build-deploy:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
token: ${{ secrets.CI_GITHUB_TOKEN }} # 要绕过分支保护规则此处不可少
- name: Checkout repository
uses: actions/checkout@v4

- name: Generate Contributors Images
uses: jaywcjlove/[email protected]
Expand Down

0 comments on commit ca9e208

Please sign in to comment.