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(action): trivy failure #20

Merged
merged 1 commit into from
Nov 12, 2024
Merged

fix(action): trivy failure #20

merged 1 commit into from
Nov 12, 2024

Conversation

m-mizutani
Copy link
Owner

This pull request updates the .github/workflows/trivy.yml file to enhance the Trivy vulnerability scanning workflow. The key changes include renaming the workflow, modifying the trigger events, updating the permissions, and refining the steps for running and uploading the scan results.

Workflow updates:

  • Renamed the workflow from "Vulnerability scan" to "trivy".
  • Modified the trigger events to include push, a scheduled cron job, and workflow_dispatch.

Permissions and steps updates:

  • Added specific permissions for security-events, actions, and contents.
  • Updated the actions/checkout and aquasecurity/trivy-action to specific commit references for better stability.
  • Changed the Trivy scan output format to sarif and added TRIVY_DB_REPOSITORY environment variable.
  • Added a conditional step to upload Trivy scan results to GitHub Security tab only if the scan fails.

@m-mizutani m-mizutani merged commit 0077b46 into main Nov 12, 2024
5 checks passed
@m-mizutani m-mizutani deleted the fix/trivy-action branch November 12, 2024 10:54
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.

1 participant