mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-03-28 01:04:35 +00:00
Build/Test Tools: Use the default GITHUB_TOKEN instead of a personal access token.
Previously, it was not possible to use the default `GITHUB_TOKEN` token to create new workflow runs in an effort to prevent accidental recursive workflows. This has changed, and the `workflow_dispatch` is now one of two exceptions to this rule. Using `GITHUB_TOKEN` is preferred whenever possible to avoid the need for a PAT (personal access token), which expires (when created using the recommended security best practices), and is tied to an individual user. See https://github.blog/changelog/2022-09-08-github-actions-use-github_token-with-workflow_dispatch-and-repository_dispatch/. See #55652. git-svn-id: https://develop.svn.wordpress.org/trunk@54108 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
1
.github/workflows/javascript-tests.yml
vendored
1
.github/workflows/javascript-tests.yml
vendored
@@ -116,7 +116,6 @@ jobs:
|
||||
- name: Dispatch workflow run
|
||||
uses: actions/github-script@c713e510dbd7d213d92d41b7a7805a986f4c5c66 # v6.2.0
|
||||
with:
|
||||
github-token: ${{ secrets.GHA_WORKFLOW_DISPATCH }}
|
||||
script: |
|
||||
github.rest.actions.createWorkflowDispatch({
|
||||
owner: context.repo.owner,
|
||||
|
||||
Reference in New Issue
Block a user