Fix commit-code-check.sh on DrupalCI

Created on 21 February 2023, over 1 year ago
Updated 22 February 2023, over 1 year ago

Problem/Motivation

Currently core/scripts/dev/commit-code-check.sh is broken on DrupalCI due git security improvements and our CI. Let's fix this.

It fails due to:

16:35:03 Container command.
16:35:03 core/scripts/dev/commit-code-check.sh --drupalci
16:35:03 fatal: detected dubious ownership in repository at '/var/www/html'
16:35:03 To add an exception for this directory, call:
16:35:03 
16:35:03 	git config --global --add safe.directory /var/www/html
16:35:03 Creating list of files to check by comparing branch to 10.1.x
16:35:03 error: Could not access 'HEAD~1'
16:35:03 fatal: detected dubious ownership in repository at '/var/www/html'
16:35:03 To add an exception for this directory, call:
16:35:03 
16:35:03 	git config --global --add safe.directory /var/www/html
16:35:03 There are no files to check. If you have staged a commit use the --cached option.

https://dispatcher.drupalci.org/job/drupal8_core_regression_tests/77420/...

Proposed resolution

I think using the www-data to run git commands.

Remaining tasks

User interface changes

API changes

Data model changes

Release notes snippet

๐Ÿ› Bug report
Status

Fixed

Version

10.1 โœจ

Component
Otherย  โ†’

Last updated about 9 hours ago

Created by

๐Ÿ‡ฌ๐Ÿ‡งUnited Kingdom alexpott ๐Ÿ‡ช๐Ÿ‡บ๐ŸŒ

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Production build 0.71.5 2024