I'm running Moodle 4.1.3+ (Boost theme) and recently noticed an error in the Site Admin > Reports > Security checks > "Check all public / private paths" area.
When I click "More info", I see the following:
Error > ".git/HEAD" | Category: ^\..* | Details: ^\..* files should not be public
Expected permissions = 404
Actual permissions = 400
Here is a screenshot:
I initially thought this might have something to do with the code mentioned here: https://docs.moodle.org/401/en/Apache#Hiding_internal_paths, but I already have this block of "mod_rewrite" code in my .htaccess file. Next, I thought I could try to adjust the permissions to 404 to match the "expected" value of "400" but I haven't been able to find any .git/HEAD file on my site.