Skip to content

Adding nightly and PR trivy scans #17

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

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open

Adding nightly and PR trivy scans #17

wants to merge 1 commit into from

Conversation

jmfiola
Copy link
Collaborator

@jmfiola jmfiola commented Jun 9, 2025

Automated Trivy Security Scans

This PR adds automated Trivy scans to every pull request targeting main and sets up a nightly job that runs the same scan directly against the main branch.


 Key Changes

Workflow Frequency Behaviour
Pull Request Every PR to main Fails if any HIGH or CRITICAL vulnerabilities, or secrets are detected.
Nightly (main) Daily ‑ 03:00 UTC Runs on main; when the scan fails on HIGH or CRITICAL findings, the workflow opens  or re‑uses  a GitHub issue.
Example: Issue #13.

Type of Change

New feature – adds preventive security gates and continuous monitoring.


Validation & Testing

Pull‑Request Pipeline

  • Tested with branches containing known HIGH/CRITICAL findings → workflow failed as expected.
  • Tested with a clean branch → workflow passed.

Nightly Workflow

  • Temporarily removed branch/schedule guard to trigger issue‑creation logic.
  • Confirmed:
    • A single issue is opened on first failure.
    • Subsequent failures detect the open issue and do not create duplicates.

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