Skip to content

[FEATURE] Add Trivy CI snippet#23

Merged
prog-time merged 3 commits into
mainfrom
issues-8
Apr 22, 2026
Merged

[FEATURE] Add Trivy CI snippet#23
prog-time merged 3 commits into
mainfrom
issues-8

Conversation

@prog-time
Copy link
Copy Markdown
Owner

Summary

Adds a Trivy CI snippet to the security category — a universal vulnerability scanner covering filesystem, container images, and language-specific dependency manifests (npm, pip, go.mod, Gemfile.lock, composer.lock, Cargo.lock). Follows the three-layer pattern (shell script → source YAML → assembled YAML) established by gitleaks, with actions/cache@v4 for ~/.cache/trivy to avoid redundant DB downloads.

Changes

  • issues-8|add trivy CI snippetscripts/shell/security/trivy.sh, scripts/CI/security/trivy.yml, CI/security/trivy.yml
  • issues-8|add BATS tests for trivy — 4 tests (missing binary, clean scan, vulnerable scan, info message)
  • issues-8|document trivy in README — Snippets table, Security section, project structure tree

Test plan

  • bats tests/security/trivy.bats — 4/4 pass
  • yamllint clean on both new YAML files
  • CI green on this PR

Closes #8

@prog-time prog-time merged commit 3376ade into main Apr 22, 2026
5 checks passed
@prog-time prog-time deleted the issues-8 branch April 22, 2026 17:39
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.

[FEATURE] Add Trivy CI snippet

1 participant