Error: failed to write output: open tfsec_checks.markdown: permission denied #5916
Replies: 3 comments 1 reply
-
As shown in the output you shared, our efforts have moved to Trivy (aquasecurity/tfsec#1994). Have you had any issues migrating to Trivy? Furthermore I don't think this error is related to either tfsec or Trivy but rather sounds like you might have permissions issues with the directory you're working with? |
Beta Was this translation helpful? Give feedback.
-
Yes I tried trivy but doesn't seem to be working on my laptop due to some tls error:
I have not problem generating a report using the kics docker image working on the same repository
Which make me believe it comes from the tfsec docker image. Anyway I am very happy with checkov and kics results so I may just go with them. NOTE: If I want to make the trivy docker image work on my machine, I need to create a custom docker image where I copy my SSL certificate in it: FROM aquasec/trivy
COPY zscaler.pem ./zscaler.pem
RUN tee -a /etc/ssl/certs/ca-certificates.crt < ./zscaler.pem
ENV REQUESTS_CA_BUNDLE=/etc/ssl/certs/ca-certificates.crt
ENV SSL_CERT_FILE=/etc/ssl/certs/ca-certificates.crt
ENV NODE_EXTRA_CA_CERTS=/etc/ssl/certs/ca-certificates.crt |
Beta Was this translation helpful? Give feedback.
-
Hi @lhoupert ! Maybe this will help you? |
Beta Was this translation helpful? Give feedback.
-
Hi, I encountered a write permission issue when trying to output the tfsec checks.
I can run the command below succesfully:
docker run --rm -it -v "$(pwd):/src" aquasec/tfsec /src --include-ignored
But if I run
or
I receive this error:
Is there an easy way to fix this?
I had no problem running
kics
in a container an exporting the report with the command below:Thank you!
Beta Was this translation helpful? Give feedback.
All reactions