Jobs fail when the project directory structure contains same folder as _WEB_ROOT

Issue information

From user: damian.skiba

Related to !348 (merged)

Contribution record

Fork management

Problem/Motivation

When a project includes a composer.json file with dependencies (e.g., drupal/core or other modules), tools like PHPCS and PHPStan perform checks and validations on these dependencies as well.
For example:

This issue seems related to this task on drupal.org, as these problems have persisted for two days.

Steps to reproduce

1. Use the following composer.json configuration:

  "require": {
    "php": ">=8.1",
    "bower-asset/colorbox": "^1.6",
    "bower-asset/masonry": "^4.2",
    "composer/installers": "^2.2",
    "cweagans/composer-patches": "^1.6",
    "drupal/admin_toolbar": "^3.0",
    "drupal/ala": "^2.5",
    "drupal/better_exposed_filters": "^7.0",
    "drupal/block_field": "^1.0@RC",
    "drupal/bootstrap_layout_builder": "^2.1",
    "drupal/checklistapi": "^2.0",
    "drupal/coffee": "^2.0",
    "drupal/color_field": "^3.0",
    "drupal/colorbox": "^2.0",
    "drupal/components": "^3.0",
    "drupal/conditional_fields": "^4.0@alpha",
    "drupal/config_update": "2.0.x-dev@dev",
    "drupal/contact_formatter": "^2.0",
    "drupal/core-composer-scaffold": "^10.0",
    "drupal/core-recommended": "^10.0",
    "drupal/dashboard": "^2.0",
    "drupal/default_content": "^2.0@alpha",
    "drupal/emulsify_twig": "^5.0",
    "drupal/entity_reference_display": "^2.0",
    "drupal/entity_reference_revisions": "^1.3",
    "drupal/facets": "^2.0",
    "drupal/field_group": "^3.0",
    "drupal/field_validation": "^1.1",
    "drupal/frontend_editing": "1.7.3",
    "drupal/gin": "^4.0",
    "drupal/gin_toolbar": "^2.0",
    "drupal/google_analytics": "^4.0",
    "drupal/google_tag": "^2.0",
    "drupal/link_attributes": "^1.1 || ^2.1",
    "drupal/menu_admin_per_menu": "^1.6",
    "drupal/metatag": "^1.2 || ^2.0",
    "drupal/paragraphs": "^1.1",
    "drupal/pathauto": "^1.0",
    "drupal/project_browser": "^1.0@beta",
    "drupal/radix": "^6.0",
    "drupal/redirect": "^1.0-beta1",
    "drupal/redis": "^1.7",
    "drupal/search_api": "^1.29",
    "drupal/simple_sitemap": "^4.1",
    "drupal/smtp": "^1.0@beta",
    "drupal/svg_image": "^3.0",
    "drupal/tvi": "2.0.x-dev@dev",
    "drupal/twig_tweak": "^3.4",
    "drupal/webform": "^6.2",
    "drush/drush": "^13",
    "npm-asset/countup": "^1.9",
    "npm-asset/in-viewport": "^3.6",
    "npm-asset/jquery-ui-touch-punch": "^0.2",
    "npm-asset/select2": "^4.0.4",
    "npm-asset/slick-carousel": "^1.8",
    "oomphinc/composer-installers-extender": "^2.0"
  },

2. Run PHPCS and PHPStan checks

Edited by drupalbot
To upload designs, you'll need to enable LFS and have an admin enable hashed storage. More information