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-coding-standards-php.yml

    r59354 r59679  
    1717        type: 'boolean'
    1818        default: false
     19
     20# Disable permissions for all available scopes by default.
     21# Any needed permissions should be configured at the job level.
     22permissions: {}
    1923
    2024jobs:
     
    4650        with:
    4751          show-progress: ${{ runner.debug == '1' && 'true' || 'false' }}
     52          persist-credentials: false
    4853
    4954      - name: Set up PHP
     
    5863      - name: "Get last Monday's date"
    5964        id: get-date
    60         run: echo "date=$(/bin/date -u --date='last Mon' "+%F")" >> $GITHUB_OUTPUT
     65        run: echo "date=$(/bin/date -u --date='last Mon' "+%F")" >> "$GITHUB_OUTPUT"
    6166
    6267      - name: Cache PHPCS scan cache
     
    7681
    7782      - name: Make Composer packages available globally
    78         run: echo "${PWD}/vendor/bin" >> $GITHUB_PATH
     83        run: echo "${PWD}/vendor/bin" >> "$GITHUB_PATH"
    7984
    8085      - name: Run PHPCS on all Core files
Note: See TracChangeset for help on using the changeset viewer.