Skip to content

Commit

Permalink
PATの代わりにGitHubトークンを使用するように変更
Browse files Browse the repository at this point in the history
  • Loading branch information
Gakuto1112 committed Apr 7, 2024
1 parent d77096e commit 44b1997
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion .github/workflows/call_dispatcher.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,8 @@ jobs:
call:
name: Call dispatchers
runs-on: ubuntu-latest
permissions:
contents: write
strategy:
matrix:
target-repository: ${{ fromJSON(vars.TARGET_REPOSITORIES) }}
Expand All @@ -22,5 +24,5 @@ jobs:
curl https://api.github.com/repos/Gakuto1112/${{ matrix.target-repository }}/dispatches \
-X POST \
-H 'Accept: application/vnd.github+json' \
-H 'Authorization: Bearer ${{ secrets.DISPATCH_TOKEN }}' \
-H 'Authorization: Bearer ${{ github.token }}' \
-d '{"event_type": "dispatch_readme"}'

0 comments on commit 44b1997

Please sign in to comment.