Make WordPress Core


Ignore:
Timestamp:
09/08/2022 11:39:17 PM (20 months ago)
Author:
desrosj
Message:

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.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/.github/workflows/test-old-branches.yml

    r53947 r54108  
    7171        if: ${{ github.event_name == 'push' || github.event.schedule == '0 0 15 * *' || matrix.branch == '6.0' }}
    7272        with:
    73           github-token: ${{ secrets.GHA_WORKFLOW_DISPATCH }}
    7473          script: |
    7574            github.rest.actions.createWorkflowDispatch({
Note: See TracChangeset for help on using the changeset viewer.