fix: bound pathless batch action lookup (#3083) #4169
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: Homeboy | |
| on: | |
| pull_request: | |
| branches: [main] | |
| push: | |
| branches: [main] | |
| workflow_dispatch: | |
| concurrency: | |
| group: homeboy-${{ github.event.pull_request.number || github.ref }} | |
| cancel-in-progress: true | |
| permissions: | |
| contents: write | |
| pull-requests: write | |
| issues: write | |
| jobs: | |
| # This audit is repository policy, so run it directly instead of relying on Homeboy test discovery. | |
| prefix-policy: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v6 | |
| - uses: shivammathur/setup-php@v2 | |
| with: | |
| php-version: '8.2' | |
| - name: Audit WordPress identifier prefixes | |
| run: php tests/prefix-policy-audit.php | |
| homeboy: | |
| if: ${{ github.event_name != 'push' || !startsWith(github.event.head_commit.message, 'release:') }} | |
| uses: Extra-Chill/homeboy-action/.github/workflows/ci.yml@v2 | |
| with: | |
| # Autofix on PRs is expressed by adding `refactor lint` to the commands | |
| # list — ci.yml@v2 has no `autofix`/`autofix-commands` inputs, and passing | |
| # undeclared inputs to a reusable workflow is a hard startup_failure. | |
| commands: ${{ github.event_name == 'pull_request' && 'review audit,review lint,review test,refactor lint' || github.event_name == 'workflow_dispatch' && 'review audit,review lint,review test' || 'review test' }} | |
| expected-commands: ${{ github.event_name == 'pull_request' && 'review audit,review lint,review test' || github.event_name == 'workflow_dispatch' && 'review audit,review lint,review test' || 'review test' }} | |
| secrets: inherit |