본문 바로가기
개발/ETC

Error: Gradle script '/home/runner/work/~' is not executable. 해결

by devhooney 2023. 3. 9.
728x90

spring boot 프로젝트를 github action을 이용해서 CI는 중 에러가 발생했다.

 

찾아보니 해결책이 3개 였는데,

 

3번째는 제외했다.

 

script에서 권한을 주는 방법.

 

- name: Run chmod to make gradlew executable
  run: chmod +x ./gradlew

 

git 자체에 권한을 주는 방법(터미널로 프로젝트 경로에서 명령어 입력)

git update-index --chmod=+x gradlew

 

 

- 참고

https://spacetech.dk/error-gradle-script-home-runner-work-gradlew-is-not-executable.html

728x90