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 error for Kics Scan Result.Json : "Error: open /github/workspace/results.json: permission denied" #93

Open
dayor123 opened this issue Jun 14, 2023 · 2 comments

Comments

@dayor123
Copy link

Hello,

I am having issue running the Kics Scan in my enterprise repo. I keep getting this error "Error: open /github/workspace/results.json: permission denied". I think the container does not have the permissions to write to the github/workspace. After doing some research I noted that GitHub Actions must be run by the default Docker user (root). it there a way to specify this in my workflow to ensure the container runs as root.

Please any help with this will be appreciated

@dayor123 dayor123 changed the title Permission Denied error for Kics Scan Result.Json Permission Denied error for Kics Scan Result.Json : "Error: open /github/workspace/results.json: permission denied" Jun 14, 2023
@davidjeddy
Copy link

I have the similar erro due to using a container manager that does not require root (podman). Here is how I got around the error:

podman run -t -v .:/path checkmarx/kics scan -p /path --verbose | tee kics.log

Instead of writing the log to the container dir /report, which is a mounted volume from the host, the command outputs the log to stdOut then pipes it to tee. In turn tee writes the log on the host.

Hope this helps.

@Rafael-Schippers
Copy link

On fedora 39 and also have this problem with podman. Has there been any update on a permanent fix for this?

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

No branches or pull requests

3 participants