kubescape / github-action

GitHub action to run Kubescape scans
Apache License 2.0
18 stars 20 forks source link

feat: support autofixing #28

Closed vladklokun closed 1 year ago

vladklokun commented 1 year ago

What this PR changes?

This change adds support for autofixing files. This is achieved by expanding the script that runs as the Docker entrypoint to run the kubescape fix command if a user requests it. It also validates that the prerequisites to fix the files are met: a scan must include a JSON output.

It also refactors the entry point script without breaking its functionality.