Make WordPress Core

Changeset 54108


Ignore:
Timestamp:
09/08/2022 11:39:17 PM (2 years 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.

Location:
trunk/.github/workflows
Files:
8 edited

Legend:

Unmodified
Added
Removed
  • trunk/.github/workflows/coding-standards.yml

    r54039 r54108  
    193193        uses: actions/github-script@c713e510dbd7d213d92d41b7a7805a986f4c5c66 # v6.2.0
    194194        with:
    195           github-token: ${{ secrets.GHA_WORKFLOW_DISPATCH }}
    196195          script: |
    197196            github.rest.actions.createWorkflowDispatch({
  • trunk/.github/workflows/end-to-end-tests.yml

    r54039 r54108  
    149149        uses: actions/github-script@c713e510dbd7d213d92d41b7a7805a986f4c5c66 # v6.2.0
    150150        with:
    151           github-token: ${{ secrets.GHA_WORKFLOW_DISPATCH }}
    152151          script: |
    153152            github.rest.actions.createWorkflowDispatch({
  • trunk/.github/workflows/javascript-tests.yml

    r54039 r54108  
    117117        uses: actions/github-script@c713e510dbd7d213d92d41b7a7805a986f4c5c66 # v6.2.0
    118118        with:
    119           github-token: ${{ secrets.GHA_WORKFLOW_DISPATCH }}
    120119          script: |
    121120            github.rest.actions.createWorkflowDispatch({
  • trunk/.github/workflows/php-compatibility.yml

    r54039 r54108  
    133133        uses: actions/github-script@c713e510dbd7d213d92d41b7a7805a986f4c5c66 # v6.2.0
    134134        with:
    135           github-token: ${{ secrets.GHA_WORKFLOW_DISPATCH }}
    136135          script: |
    137136            github.rest.actions.createWorkflowDispatch({
  • trunk/.github/workflows/phpunit-tests.yml

    r54072 r54108  
    264264        uses: actions/github-script@c713e510dbd7d213d92d41b7a7805a986f4c5c66 # v6.2.0
    265265        with:
    266           github-token: ${{ secrets.GHA_WORKFLOW_DISPATCH }}
    267266          script: |
    268267            github.rest.actions.createWorkflowDispatch({
  • trunk/.github/workflows/test-coverage.yml

    r54039 r54108  
    212212        uses: actions/github-script@c713e510dbd7d213d92d41b7a7805a986f4c5c66 # v6.2.0
    213213        with:
    214           github-token: ${{ secrets.GHA_WORKFLOW_DISPATCH }}
    215214          script: |
    216215            github.rest.actions.createWorkflowDispatch({
  • trunk/.github/workflows/test-npm.yml

    r54039 r54108  
    191191        uses: actions/github-script@c713e510dbd7d213d92d41b7a7805a986f4c5c66 # v6.2.0
    192192        with:
    193           github-token: ${{ secrets.GHA_WORKFLOW_DISPATCH }}
    194193          script: |
    195194            github.rest.actions.createWorkflowDispatch({
  • 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.