Make WordPress Core

Changeset 51924


Ignore:
Timestamp:
10/20/2021 07:25:12 PM (3 years ago)
Author:
desrosj
Message:

Build/Test Tools: Pass required secrets to the Slack notifications workflow.

Secrets are not available within callable workflows by default. They must be defined within the callable workflow, and passed from the calling workflow.

Follow up to [51921-51922].

See #53363.

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

Legend:

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

    r51921 r51924  
    153153    needs: [ phpcs, jshint ]
    154154    if: ${{ always() }}
     155    with:
     156      SLACK_GHA_SUCCESS_WEBHOOK: ${{ secrets.SLACK_GHA_SUCCESS_WEBHOOK }}
     157      SLACK_GHA_CANCELLED_WEBHOOK: ${{ secrets.SLACK_GHA_CANCELLED_WEBHOOK }}
     158      SLACK_GHA_FIXED_WEBHOOK: ${{ secrets.SLACK_GHA_FIXED_WEBHOOK }}
     159      SLACK_GHA_FAILURE_WEBHOOK: ${{ secrets.SLACK_GHA_FAILURE_WEBHOOK }}
  • trunk/.github/workflows/end-to-end-tests.yml

    r51921 r51924  
    123123    needs: [ e2e-tests ]
    124124    if: ${{ always() }}
     125    secrets:
     126      SLACK_GHA_SUCCESS_WEBHOOK: ${{ secrets.SLACK_GHA_SUCCESS_WEBHOOK }}
     127      SLACK_GHA_CANCELLED_WEBHOOK: ${{ secrets.SLACK_GHA_CANCELLED_WEBHOOK }}
     128      SLACK_GHA_FIXED_WEBHOOK: ${{ secrets.SLACK_GHA_FIXED_WEBHOOK }}
     129      SLACK_GHA_FAILURE_WEBHOOK: ${{ secrets.SLACK_GHA_FAILURE_WEBHOOK }}
  • trunk/.github/workflows/javascript-tests.yml

    r51921 r51924  
    9292    needs: [ test-js ]
    9393    if: ${{ always() }}
     94    secrets:
     95      SLACK_GHA_SUCCESS_WEBHOOK: ${{ secrets.SLACK_GHA_SUCCESS_WEBHOOK }}
     96      SLACK_GHA_CANCELLED_WEBHOOK: ${{ secrets.SLACK_GHA_CANCELLED_WEBHOOK }}
     97      SLACK_GHA_FIXED_WEBHOOK: ${{ secrets.SLACK_GHA_FIXED_WEBHOOK }}
     98      SLACK_GHA_FAILURE_WEBHOOK: ${{ secrets.SLACK_GHA_FAILURE_WEBHOOK }}
  • trunk/.github/workflows/php-compatibility.yml

    r51921 r51924  
    9494    needs: [ php-compatibility ]
    9595    if: ${{ always() }}
     96    secrets:
     97      SLACK_GHA_SUCCESS_WEBHOOK: ${{ secrets.SLACK_GHA_SUCCESS_WEBHOOK }}
     98      SLACK_GHA_CANCELLED_WEBHOOK: ${{ secrets.SLACK_GHA_CANCELLED_WEBHOOK }}
     99      SLACK_GHA_FIXED_WEBHOOK: ${{ secrets.SLACK_GHA_FIXED_WEBHOOK }}
     100      SLACK_GHA_FAILURE_WEBHOOK: ${{ secrets.SLACK_GHA_FAILURE_WEBHOOK }}
  • trunk/.github/workflows/phpunit-tests.yml

    r51921 r51924  
    249249    needs: [ test-php ]
    250250    if: ${{ always() }}
     251    secrets:
     252      SLACK_GHA_SUCCESS_WEBHOOK: ${{ secrets.SLACK_GHA_SUCCESS_WEBHOOK }}
     253      SLACK_GHA_CANCELLED_WEBHOOK: ${{ secrets.SLACK_GHA_CANCELLED_WEBHOOK }}
     254      SLACK_GHA_FIXED_WEBHOOK: ${{ secrets.SLACK_GHA_FIXED_WEBHOOK }}
     255      SLACK_GHA_FAILURE_WEBHOOK: ${{ secrets.SLACK_GHA_FAILURE_WEBHOOK }}
  • trunk/.github/workflows/slack-notifications.yml

    r51922 r51924  
    88on:
    99  workflow_call:
     10    secrets:
     11      SLACK_GHA_SUCCESS_WEBHOOK:
     12        description: 'The Slack webhook URL for a successful build.'
     13        required: true
     14      SLACK_GHA_CANCELLED_WEBHOOK:
     15        description: 'The Slack webhook URL for a cancelled build.'
     16        required: true
     17      SLACK_GHA_FIXED_WEBHOOK:
     18        description: 'The Slack webhook URL for a fixed build.'
     19        required: true
     20      SLACK_GHA_FAILURE_WEBHOOK:
     21        description: 'The Slack webhook URL for a failed build.'
     22        required: true
    1023
    1124jobs:
  • trunk/.github/workflows/test-coverage.yml

    r51921 r51924  
    175175    needs: [ test-coverage-report ]
    176176    if: ${{ always() }}
     177    secrets:
     178      SLACK_GHA_SUCCESS_WEBHOOK: ${{ secrets.SLACK_GHA_SUCCESS_WEBHOOK }}
     179      SLACK_GHA_CANCELLED_WEBHOOK: ${{ secrets.SLACK_GHA_CANCELLED_WEBHOOK }}
     180      SLACK_GHA_FIXED_WEBHOOK: ${{ secrets.SLACK_GHA_FIXED_WEBHOOK }}
     181      SLACK_GHA_FAILURE_WEBHOOK: ${{ secrets.SLACK_GHA_FAILURE_WEBHOOK }}
  • trunk/.github/workflows/test-npm.yml

    r51921 r51924  
    161161    needs: [ test-npm, test-npm-macos ]
    162162    if: ${{ always() }}
     163    secrets:
     164      SLACK_GHA_SUCCESS_WEBHOOK: ${{ secrets.SLACK_GHA_SUCCESS_WEBHOOK }}
     165      SLACK_GHA_CANCELLED_WEBHOOK: ${{ secrets.SLACK_GHA_CANCELLED_WEBHOOK }}
     166      SLACK_GHA_FIXED_WEBHOOK: ${{ secrets.SLACK_GHA_FIXED_WEBHOOK }}
     167      SLACK_GHA_FAILURE_WEBHOOK: ${{ secrets.SLACK_GHA_FAILURE_WEBHOOK }}
  • trunk/.github/workflows/test-old-branches.yml

    r51921 r51924  
    7676    needs: [ dispatch-workflows-for-old-branches ]
    7777    if: ${{ always() }}
     78    secrets:
     79      SLACK_GHA_SUCCESS_WEBHOOK: ${{ secrets.SLACK_GHA_SUCCESS_WEBHOOK }}
     80      SLACK_GHA_CANCELLED_WEBHOOK: ${{ secrets.SLACK_GHA_CANCELLED_WEBHOOK }}
     81      SLACK_GHA_FIXED_WEBHOOK: ${{ secrets.SLACK_GHA_FIXED_WEBHOOK }}
     82      SLACK_GHA_FAILURE_WEBHOOK: ${{ secrets.SLACK_GHA_FAILURE_WEBHOOK }}
Note: See TracChangeset for help on using the changeset viewer.