[SPARK-39610][INFRA] Add GITHUB_WORKSPACE to git trust safe.directory for container based job
[SPARK-39610][INFRA] Add GITHUB_WORKSPACE to git trust safe.directory for container based job

### What changes were proposed in this pull request?
This patch add GITHUB_WORKSPACE to git trust safe.directory for container based job.

There are 3 container based job in Spark Infra:
- sparkr
- lint
- pyspark

### Why are the changes needed?

When upgrade `git >= 2.35.2` (such as latest dev docker image in my case), fix a [CVE-2022-24765](https://github.blog/2022-04-12-git-security-vulnerability-announced/#cve-2022-24765) , and it has been backported [latest ubuntu git](https://github.com/actions/checkout/issues/760#issuecomment-1099355820)

The `GITHUB_WORKSPACE` is belong to action user (in host), but the container user is `root` (in container) (root is required in our spark job), so cause the error like:
```
fatal: unsafe repository ('/__w/spark/spark' is owned by someone else)
To add an exception for this directory, call:
    git config --global --add safe.directory /__w/spark/spark
fatal: unsafe repository ('/__w/spark/spark' is owned by someone else)
To add an exception for this directory, call:
    git config --global --add safe.directory /__w/spark/spark
```

The solution is from `action/checkout` https://github.com/actions/checkout/issues/760 , just add `GITHUB_WORKSPACE` to git trust safe.directory to make container user can checkout successfully.

### Does this PR introduce _any_ user-facing change?
No

### How was this patch tested?
CI passed.
CI passed with latest ubuntu hosted runner, here is a simple e2e test for pyspark job https://github.com/apache/spark/pull/37005

Closes #37079 from Yikun/SPARK-39610.

Authored-by: Yikun Jiang <2206089eaa6cfa02a44178196e5767f367cbca91@gmail.com>
Signed-off-by: Hyukjin Kwon <2680965ad5aae29275c8fb10150cb10f5554e78b@apache.org>

shaneknapp/spark,dongjoon-hyun/spark,wangyum/spark,srowen/spark,witgo/spark,zzcclp/spark,srowen/spark,HyukjinKwon/spark,shaneknapp/spark,srowen/spark,apache/spark,zzcclp/spark,holdenk/spark,apache/spark,zero323/spark,zzcclp/spark,nchammas/spark,rednaxelafx/apache-spark,zero323/spark,rednaxelafx/apache-spark,nchammas/spark,nchammas/spark,vinodkc/spark,mahak/spark,vinodkc/spark,hvanhovell/spark,hvanhovell/spark,apache/spark,WeichenXu123/spark,vinodkc/spark,nchammas/spark,hvanhovell/spark,witgo/spark,nchammas/spark,shaneknapp/spark,apache/spark,holdenk/spark,gengliangwang/spark,ueshin/apache-spark,WeichenXu123/spark,zero323/spark,zzcclp/spark,hvanhovell/spark,ueshin/apache-spark,HyukjinKwon/spark,HyukjinKwon/spark,vinodkc/spark,witgo/spark,apache/spark,rednaxelafx/apache-spark,vinodkc/spark,shaneknapp/spark,nchammas/spark,WeichenXu123/spark,gengliangwang/spark,gengliangwang/spark,WeichenXu123/spark,rednaxelafx/apache-spark,mahak/spark,holdenk/spark,srowen/spark,hvanhovell/spark,nchammas/spark,wangyum/spark,zero323/spark,shaneknapp/spark,holdenk/spark,ueshin/apache-spark,gengliangwang/spark,ueshin/apache-spark,mahak/spark,srowen/spark,hvanhovell/spark,zzcclp/spark,HyukjinKwon/spark,shaneknapp/spark,witgo/spark,WeichenXu123/spark,zero323/spark,mahak/spark,holdenk/spark,ueshin/apache-spark,apache/spark,wangyum/spark,shaneknapp/spark,srowen/spark,zero323/spark,rednaxelafx/apache-spark,dongjoon-hyun/spark,zzcclp/spark,WeichenXu123/spark,mahak/spark,WeichenXu123/spark,wangyum/spark,ueshin/apache-spark,gengliangwang/spark,holdenk/spark,witgo/spark,wangyum/spark,vinodkc/spark,wangyum/spark,wangyum/spark,witgo/spark,HyukjinKwon/spark,dongjoon-hyun/spark,rednaxelafx/apache-spark,srowen/spark,gengliangwang/spark,hvanhovell/spark,gengliangwang/spark,dongjoon-hyun/spark,zzcclp/spark,vinodkc/spark,dongjoon-hyun/spark,rednaxelafx/apache-spark,zero323/spark,dongjoon-hyun/spark,mahak/spark,dongjoon-hyun/spark,mahak/spark,HyukjinKwon/spark,holdenk/spark,HyukjinKwon/spark,witgo/spark,apache/spark,ueshin/apache-spark