Changeset 62251
- Timestamp:
- 04/21/2026 04:56:34 PM (2 weeks ago)
- Location:
- trunk
- Files:
-
- 7 edited
-
.github/workflows/commit-built-file-changes.yml (modified) (2 diffs)
-
.github/workflows/install-testing.yml (modified) (1 diff)
-
.github/workflows/local-docker-environment.yml (modified) (1 diff)
-
.github/workflows/phpunit-tests.yml (modified) (5 diffs)
-
.github/workflows/reusable-check-built-files.yml (modified) (1 diff)
-
.github/workflows/reusable-cleanup-pull-requests.yml (modified) (3 diffs)
-
README.md (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/.github/workflows/commit-built-file-changes.yml
r61663 r62251 132 132 show-progress: ${{ runner.debug == '1' && 'true' || 'false' }} 133 133 token: ${{ env.ACCESS_TOKEN }} 134 persist-credentials: true 134 135 135 136 - name: Apply patch 136 137 if: ${{ steps.artifact-check.outputs.exists == 'true' }} 137 138 working-directory: 'pr-repo' 138 run: git apply ${{ github.workspace }}/changes.diff139 run: git apply "$GITHUB_WORKSPACE/changes.diff" 139 140 140 141 - name: Display changes to versioned files … … 150 151 run: | 151 152 git config user.name "wordpress-develop-pr-bot[bot]" 152 git config user.email ${{ env.GH_APP_ID }}+wordpress-develop-pr-bot[bot]@users.noreply.github.com153 git config user.email "${GH_APP_ID}+wordpress-develop-pr-bot[bot]@users.noreply.github.com" 153 154 154 155 - name: Stage changes -
trunk/.github/workflows/install-testing.yml
r62033 r62251 50 50 permissions: 51 51 contents: read 52 secrets: inherit53 52 if: ${{ github.repository == 'WordPress/wordpress-develop' }} 54 53 with: -
trunk/.github/workflows/local-docker-environment.yml
r62095 r62251 80 80 permissions: 81 81 contents: read 82 secrets: inherit83 82 if: ${{ github.repository == 'WordPress/wordpress-develop' }} 84 83 with: -
trunk/.github/workflows/phpunit-tests.yml
r61875 r62251 67 67 permissions: 68 68 contents: read 69 secrets: inherit 69 secrets: 70 CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }} 71 WPT_REPORT_API_KEY: ${{ secrets.WPT_REPORT_API_KEY }} 70 72 if: ${{ startsWith( github.repository, 'WordPress/' ) && ( github.repository == 'WordPress/wordpress-develop' || github.event_name == 'pull_request' ) }} 71 73 strategy: … … 144 146 permissions: 145 147 contents: read 146 secrets: inherit 148 secrets: 149 CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }} 150 WPT_REPORT_API_KEY: ${{ secrets.WPT_REPORT_API_KEY }} 147 151 if: ${{ startsWith( github.repository, 'WordPress/' ) && ( github.repository == 'WordPress/wordpress-develop' || github.event_name == 'pull_request' ) }} 148 152 strategy: … … 196 200 permissions: 197 201 contents: read 198 secrets: inherit 202 secrets: 203 CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }} 204 WPT_REPORT_API_KEY: ${{ secrets.WPT_REPORT_API_KEY }} 199 205 if: ${{ startsWith( github.repository, 'WordPress/' ) && ( github.repository == 'WordPress/wordpress-develop' || github.event_name == 'pull_request' ) }} 200 206 strategy: … … 239 245 permissions: 240 246 contents: read 241 secrets: inherit 247 secrets: 248 CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }} 249 WPT_REPORT_API_KEY: ${{ secrets.WPT_REPORT_API_KEY }} 242 250 if: ${{ startsWith( github.repository, 'WordPress/' ) && ( github.repository == 'WordPress/wordpress-develop' || github.event_name == 'pull_request' ) }} 243 251 strategy: … … 268 276 permissions: 269 277 contents: read 270 secrets: inherit 278 secrets: 279 CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }} 280 WPT_REPORT_API_KEY: ${{ secrets.WPT_REPORT_API_KEY }} 271 281 if: ${{ ! startsWith( github.repository, 'WordPress/' ) && github.event_name == 'pull_request' }} 272 282 strategy: -
trunk/.github/workflows/reusable-check-built-files.yml
r62033 r62251 41 41 with: 42 42 show-progress: ${{ runner.debug == '1' && 'true' || 'false' }} 43 persist-credentials: false 43 44 44 45 - name: Set up Node.js -
trunk/.github/workflows/reusable-cleanup-pull-requests.yml
r61209 r62251 20 20 # - Parse the SVN revision from the commit message. 21 21 # - Searches for pull requests referencing any fixed tickets. 22 # - Leaves a comment on each PRbefore closing.22 # - Comments on pull requests referencing any fixed tickets before closing. 23 23 close-prs: 24 24 name: Find and close PRs … … 44 44 echo "svn_revision_number=$(echo "$COMMIT_MESSAGE" | sed -n 's/.*git-svn-id: https:\/\/develop.svn.wordpress.org\/[^@]*@\([0-9]*\) .*/\1/p')" >> "$GITHUB_OUTPUT" 45 45 46 - name: Find pull requests 47 id: linked-prs 46 - name: Find, comment on, and close pull requests 48 47 if: ${{ steps.trac-tickets.outputs.fixed_list != '' && steps.git-svn-id.outputs.svn_revision_number != '' }} 49 48 uses: actions/github-script@ed597411d8f924073f98dfc5c65a23a2325f34cd # v8.0.0 49 env: 50 FIXED_LIST: ${{ steps.trac-tickets.outputs.fixed_list }} 51 SVN_REVISION_NUMBER: ${{ steps.git-svn-id.outputs.svn_revision_number }} 50 52 with: 51 53 script: | 52 const fixedList = "${{ steps.trac-tickets.outputs.fixed_list }}".split(' ').filter(Boolean); 54 const fixedList = process.env.FIXED_LIST.split(' ').filter(Boolean); 55 const svnRevisionNumber = process.env.SVN_REVISION_NUMBER; 56 const githubSha = process.env.GITHUB_SHA; 53 57 let prNumbers = []; 54 58 … … 87 91 } 88 92 89 return prNumbers;90 91 - name: Comment and close pull requests92 if: ${{ steps.trac-tickets.outputs.fixed_list != '' && steps.git-svn-id.outputs.svn_revision_number != '' }}93 uses: actions/github-script@ed597411d8f924073f98dfc5c65a23a2325f34cd # v8.0.094 with:95 script: |96 const prNumbers = ${{ steps.linked-prs.outputs.result }};97 98 93 const commentBody = `A commit was made that fixes the Trac ticket referenced in the description of this pull request. 99 94 100 SVN changeset: [${ { steps.git-svn-id.outputs.svn_revision_number }}](https://core.trac.wordpress.org/changeset/${{ steps.git-svn-id.outputs.svn_revision_number }})101 GitHub commit: https://github.com/WordPress/wordpress-develop/commit/${ { github.sha }}95 SVN changeset: [${svnRevisionNumber}](https://core.trac.wordpress.org/changeset/${svnRevisionNumber}) 96 GitHub commit: https://github.com/WordPress/wordpress-develop/commit/${githubSha} 102 97 103 98 This PR will be closed, but please confirm the accuracy of this and reopen if there is more work to be done.`; -
trunk/README.md
r61203 r62251 98 98 ``` 99 99 100 #### To lint the workflow files 101 102 GitHub Actions workflows operate in a privileged software supply chain environment, therefore all workflow files must adhere to a high degree of quality and security standards. 103 104 All YAML workflow files within the `.github/workflows` directory are statically scanned when modified using [Actionlint](https://github.com/rhysd/actionlint) and [Zizmor](https://github.com/zizmorcore/zizmor). It's recommended that you install both of these tools locally using a package manager to run prior to submitting changes to workflow files. 105 106 - [Actionlint installations instructions](https://github.com/rhysd/actionlint/blob/main/docs/install.md) 107 - [Zizmor installation instructions](https://docs.zizmor.sh/installation/) 108 109 To run Actionlint: 110 111 ``` 112 actionlint 113 ``` 114 115 To run Zizmor for all workflow files (note the trailing period): 116 117 ``` 118 zizmor . 119 ``` 120 121 **Note:** A workflow run failure will not occur when issues are detected by Zizmor. Instead, the generated report is submitted to GitHub Code Scanning and surfaced through a status check. Some locally reported issues may be ignored based on the repository's configured Code Scanning settings. 122 100 123 #### Generating a code coverage report 101 124 PHP code coverage reports are [generated daily](https://github.com/WordPress/wordpress-develop/actions/workflows/test-coverage.yml) and [submitted to Codecov.io](https://app.codecov.io/gh/WordPress/wordpress-develop).
Note: See TracChangeset
for help on using the changeset viewer.