Patching docroot htaccess: file not found
Look your patch already has the path to web/ in it:
--- a/web/.htaccess
+++ b/web/.htaccess

Just remove the cd web &amp;&amp;  and adjust the path to the patch accordingly.
&quot;post-drupal-scaffold-cmd&quot;: [
     &quot;patch -p1 &lt; patches/htaccess.patch&quot;
]