Skip to content

Security events#32

Merged
dewitt4 merged 6 commits intomainfrom
security-events
Oct 29, 2025
Merged

Security events#32
dewitt4 merged 6 commits intomainfrom
security-events

Conversation

@dewitt4
Copy link
Copy Markdown
Contributor

@dewitt4 dewitt4 commented Oct 29, 2025

No description provided.

@dewitt4 dewitt4 self-assigned this Oct 29, 2025
Copilot AI review requested due to automatic review settings October 29, 2025 18:57
@dewitt4 dewitt4 added the bug Something isn't working label Oct 29, 2025
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This PR enhances the Trivy security scanning workflow by adding table-format output for better log visibility and improving the upload conditions for security results.

  • Added security-events: write permission to enable security tab uploads
  • Added parallel Trivy scans in table format for human-readable logs alongside SARIF output
  • Restricted security tab uploads to main branch only and added error resilience with continue-on-error

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment on lines +83 to +85
- name: Run Trivy scanner in table format for logs
if: github.event_name != 'pull_request'
uses: aquasecurity/trivy-action@master
Copy link

Copilot AI Oct 29, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Running Trivy twice on the same image doubles scanning time. Consider using a single Trivy scan and processing/formatting the output differently, or leverage Trivy's ability to output multiple formats simultaneously if supported in newer versions.

Copilot uses AI. Check for mistakes.
Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@copilot open a new pull request to apply changes based on this feedback

Comment on lines +158 to +160
- name: Run Trivy scanner in table format for logs
if: github.event_name != 'pull_request'
uses: aquasecurity/trivy-action@master
Copy link

Copilot AI Oct 29, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Running Trivy twice on the same image doubles scanning time. Consider using a single Trivy scan and processing/formatting the output differently, or leverage Trivy's ability to output multiple formats simultaneously if supported in newer versions.

Copilot uses AI. Check for mistakes.

- name: Run Trivy scanner in table format for logs
if: github.event_name != 'pull_request'
uses: aquasecurity/trivy-action@master
Copy link

Copilot AI Oct 29, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Using @master for action versions is not recommended as it can lead to unexpected breaking changes. Pin to a specific version tag (e.g., @0.24.0) or use a major version reference (e.g., @v0) for stability.

Copilot uses AI. Check for mistakes.
Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@copilot open a new pull request to apply changes based on this feedback


- name: Run Trivy scanner in table format for logs
if: github.event_name != 'pull_request'
uses: aquasecurity/trivy-action@master
Copy link

Copilot AI Oct 29, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Using @master for action versions is not recommended as it can lead to unexpected breaking changes. Pin to a specific version tag (e.g., @0.24.0) or use a major version reference (e.g., @v0) for stability.

Copilot uses AI. Check for mistakes.
Copy link
Copy Markdown
Contributor

Copilot AI commented Oct 29, 2025

@dewitt4 I've opened a new pull request, #33, to work on those changes. Once the pull request is ready, I'll request review from you.

Copy link
Copy Markdown
Contributor

Copilot AI commented Oct 29, 2025

@dewitt4 I've opened a new pull request, #34, to work on those changes. Once the pull request is ready, I'll request review from you.

[WIP] Address feedback on Security events pull request
[WIP] Update implementation based on security events feedback
@dewitt4 dewitt4 merged commit 006f999 into main Oct 29, 2025
9 checks passed
@dewitt4 dewitt4 deleted the security-events branch October 29, 2025 19:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants