Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Permission denied on gradlew #790

Open
mcavey-arch opened this issue Nov 28, 2024 · 2 comments
Open

Permission denied on gradlew #790

mcavey-arch opened this issue Nov 28, 2024 · 2 comments
Labels
question Further information is requested

Comments

@mcavey-arch
Copy link

mcavey-arch commented Nov 28, 2024

Hi, im attempting to get Frogbot PR scanning working on a Java project in my github organisation - but whilst it detects it is gradlew that is needed, it is failing with permission issues. I have tried using chmod in a previous step to no effect.

Are there any parameters on the frogbot action that are related to this?

Any assistance would be appreciated.

10:36:16 [Info] Preforming scans on 1 targets:
  {
    "xray_version": "3.107.11",
    "xsc_version": "1.12.5",
    "jas_entitled": false,
    "command_type": "source_code",
    "start_time": "2024-11-28T10:36:15.248895194Z",
    "multi_scan_id": "9[82](https://github.com/******/actions/runs/12067188167/job/33649617256?pr=22#step:6:83)21207-ad74-11ef-99fe-62877ead494e",
    "targets": [
      {
        "target": "/tmp/jfrog.cli.temp.-1732790175-[86](https://github.com/*******/actions/runs/12067188167/job/33649617256?pr=22#step:6:87)0464753",
        "technology": "gradle",
        "sca_scans": {
          "descriptors": [
            "/tmp/jfrog.cli.temp.-1732790175-860464753/build.gradle"
          ]
        }
      }
    ]
  }
  Error: 7 [Error] target '/tmp/jfrog.cli.temp.-1732790175-860464753 [gradle]' errors:
  Failed to build dependency tree: failed while building 'gradle' dependency tree:
  error running gradle-dep-tree: fork/exec ./gradlew: permission denied
@mcavey-arch mcavey-arch added the question Further information is requested label Nov 28, 2024
@stephen-BT
Copy link

I am also experiencing this exact issue on my gradle project.

@mcavey-arch
Copy link
Author

mcavey-arch commented Nov 28, 2024

@stephen-BT Got to the bottom of this - gradlew isnt marked as executable in git.

Resolved with:

git update-index --chmod=+x gradlew
git ls-files --stage (lists all the files - gradlew should now be 00755 rather than 00754)
git add gradlew
git commit -m "Make gradlew 0755 (executable)"

Had to do this through the command line as GitHub desktop did not recognise the change.

This is now working for me.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

2 participants