Skip to content

chore: show log on scan jobs - #2591

Merged
simar7 merged 10 commits into
aquasecurity:mainfrom
afdesk:chore/add-scan-job-logs
Jun 13, 2025
Merged

simar7 merged 10 commits into
aquasecurity:mainfrom
afdesk:chore/add-scan-job-logs

Conversation

@afdesk

@afdesk afdesk commented Jun 5, 2025 •

Copy link
Copy Markdown
Contributor

Description

This PR uses --output flag for save JSON reports, instead of output redirection to a file. So we don't need sync command anymore (it was added #2191).

Also it adds a log keeping on scanning pods: Trivy prints logs in stderr, so we can redirect this output into a file:

... 2>/tmp/scan/%s.log

Related issues

Checklist

  • I've read the guidelines for contributing to this repository.
  • I've added tests that prove my fix is effective or that my feature works.
  • I've updated the documentation with the relevant information (if needed).
  • I've added usage information (if the PR introduces new options)
  • I've included a "before" and "after" example to the description (if the PR is a user interface change).

@github-actions github-actions Bot added the misc label Jun 5, 2025
@afdesk
afdesk marked this pull request as ready for review June 10, 2025 13:15
@afdesk
afdesk requested a review from simar7 as a code owner June 10, 2025 13:15
@simar7
simar7 merged commit 83744f1 into aquasecurity:main Jun 13, 2025
@afdesk
afdesk deleted the chore/add-scan-job-logs branch June 16, 2025 05:07
@afdesk afdesk mentioned this pull request Aug 28, 2025
5 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Require help in troubleshooting Trivy scan pods that are stuck in terminating stage Invalid character "S" while parsing vulnerability report output

2 participants