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

Feature Request: Allow config_path as input for trivy-config-action in tfaction/test #2165

Closed
falcon-tech opened this issue Dec 29, 2024 · 2 comments
Labels
enhancement New feature or request

Comments

@falcon-tech
Copy link

Feature Overview

Allow config_path as input for trivy-config-action in tfaction/test

https://github.com/suzuki-shunsuke/tfaction/blob/main/test/action.yaml#L46-L51

Why is the feature needed?

Currently, when calling trivy-config-action from tfaction/test, there is no option to specify the config_path as an input value. This limits the flexibility of configuring Trivy for different use cases.

Example Code

No response

Note

No response

@falcon-tech falcon-tech added the enhancement New feature or request label Dec 29, 2024
@suzuki-shunsuke
Copy link
Owner

suzuki-shunsuke commented Dec 29, 2024

https://github.com/suzuki-shunsuke/tfaction/releases/tag/v1.1.1

You can specify Trivy's configuration file path by the environment variable TRIVY_CONFIG in GitHub Actions Workflows.

env:
  TRIVY_CONFIG: ${{ github.workspace }}/trivy.yaml

@falcon-tech
Copy link
Author

Sorry! I missed the release notes. Thank you very much for the notice!

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

No branches or pull requests

2 participants