Make WordPress Core


Ignore:
Timestamp:
01/22/2025 03:13:21 PM (15 months ago)
Author:
johnbillion
Message:

Build/Test Tools: Improve the security and correctness of the GitHub Actions workflows files.

This includes removing use of dangerous inline GitHub Actions expressions, preventing word splitting, further tightening permissions, and generally improving many aspects of the workflows.

This also introduces a new workflow that runs Actionlint to detect incorrect and insecure code and configuration in workflow files.

Props johnbillion, swissspidy, flixos90, desrosj.

See #62221

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/.github/workflows/reusable-php-compatibility.yml

    r59354 r59679  
    1212        type: 'string'
    1313        default: 'latest'
     14
     15# Disable permissions for all available scopes by default.
     16# Any needed permissions should be configured at the job level.
     17permissions: {}
    1418
    1519jobs:
     
    4044        with:
    4145          show-progress: ${{ runner.debug == '1' && 'true' || 'false' }}
     46          persist-credentials: false
    4247
    4348      - name: Set up PHP
     
    5661      - name: "Get last Monday's date"
    5762        id: get-date
    58         run: echo "date=$(/bin/date -u --date='last Mon' "+%F")" >> $GITHUB_OUTPUT
     63        run: echo "date=$(/bin/date -u --date='last Mon' "+%F")" >> "$GITHUB_OUTPUT"
    5964
    6065      - name: Cache PHP compatibility scan cache
     
    7277
    7378      - name: Make Composer packages available globally
    74         run: echo "${PWD}/vendor/bin" >> $GITHUB_PATH
     79        run: echo "${PWD}/vendor/bin" >> "$GITHUB_PATH"
    7580
    7681      - name: Run PHP compatibility tests
Note: See TracChangeset for help on using the changeset viewer.