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

Can't touch: cannot touch '/Project.tmp/gitlab_runner_env':Permission denied Can't run on default Gitlab CI/CD setting provided in documentation #1722

Open
ChattySmartBot opened this issue Dec 4, 2024 · 0 comments
Labels
bug Something isn't working

Comments

@ChattySmartBot
Copy link

ChattySmartBot commented Dec 4, 2024

Description & Reproduction

Ran a Gitlab CI/CD Pipeline with the following configuration:
Used the following job configuration for Gitlab CI/CD taken from https://docs.bearer.com/guides/gitlab/:

bearer:
  image:
    name: bearer/bearer
    entrypoint: [""]
  script:
    - bearer scan . --format gitlab-sast --output gl-sast-report.json
  artifacts:
    reports:
      sast: gl-sast-report.json

But I keep getting an error seemingly saying that the job is trying to access/write files outside its designated directory:

 Can't touch: cannot touch '/Project.tmp/gitlab_runner_env':Permission denied 

Expected Behavior

Actual Behavior

Possible Fix

Your Environment

  • Operating System and version: Windows 11
  • Output of 'bearer version':
    Can't touch: cannot touch '/Project.tmp/gitlab_runner_env':Permission denied
    bearer version: 1.47.0
    sha: Using docker image sha256:af4adf345a11b01f8287649491affb0916e32efa42fedc9a42a6f36a9d1f4fe6 for bearer/bearer with digest bearer/bearer@sha256:26a33a799b66258a402cd472b5cc5250b654d88374c1648f0620cfec1545060a
@ChattySmartBot ChattySmartBot added the bug Something isn't working label Dec 4, 2024
@ChattySmartBot ChattySmartBot changed the title Can't touch: cannot touch '/Project..tmp/gitlab_runner_env':Permission denied Can't run on default Gitlab CI/CD setting provided in documentation Can't touch: cannot touch '/Project.tmp/gitlab_runner_env':Permission denied Can't run on default Gitlab CI/CD setting provided in documentation Dec 4, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant