This seems to be a popular question. Here's a very good and detailed answer as well:
Why when I use github actions CI for a gradle project I face "./gradlew: Permission denied" error?
Essentially, either update git, or add permissions change to the workflow file as a separate step.