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

fix: Use .trivyignore from the terraform directory being checked instead repo root #2274

Conversation

pravindahal
Copy link
Contributor

@pravindahal pravindahal commented Oct 24, 2024

It seems that trivyignore is not working as expected (as we have tried to use in cloud-projects: https://github.com/coopnorge/cloud-projects/pull/5160). It expects .trivyignore in project root. We want to have it in the terraform directory (directories where the terraform files are).

@pravindahal pravindahal marked this pull request as ready for review October 24, 2024 11:55
@pravindahal pravindahal changed the title fix: Use .trivyignore from directory instead of pwd fix: Use .trivyignore from the terraform directory being checked instead of pwd (which is root) Oct 24, 2024
@pravindahal pravindahal changed the title fix: Use .trivyignore from the terraform directory being checked instead of pwd (which is root) fix: Use .trivyignore from the terraform directory being checked instead of pwd (which is repo root) Oct 24, 2024
@pravindahal pravindahal force-pushed the pravindahal/feat/implement-looing-for-trivyignore-in-terraform-directory branch from 8c856e8 to 8ec7289 Compare October 25, 2024 08:48
@pravindahal pravindahal enabled auto-merge (squash) October 25, 2024 09:05
@pravindahal pravindahal changed the title fix: Use .trivyignore from the terraform directory being checked instead of pwd (which is repo root) fix: Use .trivyignore from the terraform directory being checked instead repo root Oct 28, 2024
@pravindahal pravindahal merged commit 1c9631a into main Oct 28, 2024
29 checks passed
@pravindahal pravindahal deleted the pravindahal/feat/implement-looing-for-trivyignore-in-terraform-directory branch October 28, 2024 10:10
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

Successfully merging this pull request may close these issues.

3 participants