Executing `gradle spotlessApply` changes permission on the changed files from `644` to `755`

summary of problem

Executing gradle spotlessApply changes permission on the changed files from 644 to 755

gradle or maven version

Gradle 6.5.1

spotless version

plugins {
    id 'com.diffplug.spotless' version '5.1.0'
}

operating system and version

Running MSYS2 on Windows 10

full Spotless configuration block(s)

    spotless {
        format 'misc', {
            target '*.gradle', '*.md', '*.txt', '.gitignore', '.gitattributes'
            trimTrailingWhitespace()
            indentWithSpaces()
            endWithNewline()
        }
        project.plugins.withType(JavaPlugin) {
            java {
                licenseHeaderFile(rootProject.file('copyright.txt'))
                removeUnusedImports()
            }
        }
    }

git config

$ git config --list --show-origin
...
file:.git/config        core.filemode=true
file:.git/config        core.repositoryformatversion=0
file:.git/config        core.bare=false
file:.git/config        core.logallrefupdates=true
file:.git/config        core.symlinks=false
file:.git/config        core.ignorecase=true
...

Note that the result is the same with core.filemode set to false.