Make WordPress Core


Ignore:
Timestamp:
01/22/2025 03:13:21 PM (17 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/pull-request-comments.yml

    r59441 r59679  
    9797               owner: context.repo.owner,
    9898               repo: context.repo.repo,
    99                run_id: ${{ github.event.workflow_run.id }},
     99               run_id: process.env.RUN_ID,
    100100            } );
    101101
     
    118118            const fs = require( 'fs' );
    119119            fs.writeFileSync( '${{github.workspace}}/pr-number.zip', Buffer.from( download.data ) )
     120        env:
     121          RUN_ID: ${{ github.event.workflow_run.id }}
    120122
    121123      - name: Unzip the artifact containing the PR number
Note: See TracChangeset for help on using the changeset viewer.