Skip to content

feat: Run trivy container scan#192

Closed
franciscoovazevedo wants to merge 8 commits into
mainfrom
run-trivy-container-scan
Closed

feat: Run trivy container scan#192
franciscoovazevedo wants to merge 8 commits into
mainfrom
run-trivy-container-scan

add tests and codacy vulns fixed

d4d0d2c
Select commit
Loading
Failed to load commit list.
Codacy Production / Codacy Static Code Analysis required action Jan 26, 2026 in 0s

2 new security issues (0 max.).

Codacy Here is an overview of what got changed by this pull request:

Issues
======
- Added 3
           

Complexity increasing per file
==============================
- cli-v2.go  1
- cmd/container_scan.go  34
- cmd/container_scan_test.go  68
         

Clones added
============
- cmd/container_scan_test.go  13
         

See the complete overview on Codacy

Annotations

Check failure on line 42 in cmd/container_scan.go

See this annotation in the file changed.

@codacy-production codacy-production / Codacy Static Code Analysis

cmd/container_scan.go#L42

Detected non-static command inside Command.

Check failure on line 42 in cmd/container_scan.go

See this annotation in the file changed.

@codacy-production codacy-production / Codacy Static Code Analysis

cmd/container_scan.go#L42

OS command injection is a critical vulnerability that can lead to a full system compromise as it may allow an adversary to pass in arbitrary commands or arguments to be executed.

Check warning on line 1 in cmd/container_scan_test.go

See this annotation in the file changed.

@codacy-production codacy-production / Codacy Static Code Analysis

cmd/container_scan_test.go#L1

File cmd/container_scan_test.go has 514 non-comment lines of code