Make WordPress Core


Ignore:
Timestamp:
04/21/2026 04:56:34 PM (7 months ago)
Author:
johnbillion
Message:

Build/Test Tools: Address some issues in GitHub Actions workflow files as reported by Zizmor.

This removes unnecessarily broad inheritance of secrets, replaces some GitHub Actions expressions with environment variables, removes git credential persistence, and adds documentation to the readme.

See #64227

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/.github/workflows/commit-built-file-changes.yml

    r61663 r62251  
    132132          show-progress: ${{ runner.debug == '1' && 'true' || 'false' }}
    133133          token: ${{ env.ACCESS_TOKEN }}
     134          persist-credentials: true
    134135
    135136      - name: Apply patch
    136137        if: ${{ steps.artifact-check.outputs.exists == 'true' }}
    137138        working-directory: 'pr-repo'
    138         run: git apply ${{ github.workspace }}/changes.diff
     139        run: git apply "$GITHUB_WORKSPACE/changes.diff"
    139140
    140141      - name: Display changes to versioned files
    … …  
    150151        run: |
    151152          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.com
     153          git config user.email "${GH_APP_ID}+wordpress-develop-pr-bot[bot]@users.noreply.github.com"
    153154
    154155      - name: Stage changes
Note: See TracChangeset for help on using the changeset viewer.