Make WordPress Core


Ignore:
Timestamp:
01/22/2025 03:13:21 PM (22 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/phpunit-tests.yml

    r59673 r59679  
    145145      memcached: ${{ matrix.memcached }}
    146146      phpunit-config: ${{ matrix.multisite && 'tests/phpunit/multisite.xml' || 'phpunit.xml.dist' }}
    147       report: ${{ matrix.report || false }}
     147      report: ${{ false }}
    148148
    149149  #
    … …  
    194194      memcached: ${{ matrix.memcached }}
    195195      phpunit-config: ${{ matrix.multisite && 'tests/phpunit/multisite.xml' || 'phpunit.xml.dist' }}
    196       report: ${{ matrix.report || false }}
     196      report: ${{ false }}
    197197
    198198  #
    … …  
    264264              ref: 'trunk',
    265265              inputs: {
    266                 run_id: '${{ github.run_id }}'
     266                run_id: context.runId,
    267267              }
    268268            });
Note: See TracChangeset for help on using the changeset viewer.