Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 0 additions & 2 deletions .github/workflows/audit-php.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@ jobs:
- uses: actions/checkout@v6
with:
sparse-checkout: composer.json
Copy link

Copilot AI Dec 8, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Removing sparse-checkout-cone-mode: false may cause issues with checking out composer.json. In cone mode (the new default), sparse-checkout patterns are treated as directory paths, not file patterns. This means composer.json may not be checked out as expected.

To check out a specific file in cone mode, you typically need to either:

  1. Keep sparse-checkout-cone-mode: false to use non-cone mode (original behavior)
  2. Change the pattern to include the parent directory (e.g., use / to checkout the root and then specify files)
Suggested change
sparse-checkout: composer.json
sparse-checkout: composer.json
sparse-checkout-cone-mode: false

Copilot uses AI. Check for mistakes.
sparse-checkout-cone-mode: false

- uses: typisttech/php-matrix-action@v2
id: php-matrix
Expand All @@ -43,7 +42,6 @@ jobs:
sparse-checkout: |
composer.json
composer.lock
Copy link

Copilot AI Dec 8, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Removing sparse-checkout-cone-mode: false may cause issues with checking out composer.json and composer.lock. In cone mode (the new default), sparse-checkout patterns are treated as directory paths, not file patterns. This means these files may not be checked out as expected.

To check out specific files in cone mode, you typically need to either:

  1. Keep sparse-checkout-cone-mode: false to use non-cone mode (original behavior)
  2. Change the pattern to include the parent directory (e.g., use / to checkout the root and then specify files)
Suggested change
composer.lock
composer.lock
sparse-checkout-cone-mode: false

Copilot uses AI. Check for mistakes.
sparse-checkout-cone-mode: false

- uses: shivammathur/setup-php@v2
with:
Expand Down
1 change: 0 additions & 1 deletion .github/workflows/lint-php.yml
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,6 @@ jobs:
- uses: actions/checkout@v6
with:
sparse-checkout: composer.json
Copy link

Copilot AI Dec 8, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Removing sparse-checkout-cone-mode: false may cause issues with checking out composer.json. In cone mode (the new default), sparse-checkout patterns are treated as directory paths, not file patterns. This means composer.json may not be checked out as expected.

To check out a specific file in cone mode, you typically need to either:

  1. Keep sparse-checkout-cone-mode: false to use non-cone mode (original behavior)
  2. Change the pattern to include the parent directory (e.g., use / to checkout the root and then specify files)

The same issue applies to the other occurrences in audit-php.yml.

Suggested change
sparse-checkout: composer.json
sparse-checkout: composer.json
sparse-checkout-cone-mode: false

Copilot uses AI. Check for mistakes.
sparse-checkout-cone-mode: false

- uses: typisttech/php-matrix-action@v2
id: php-matrix
Expand Down