Skip to content

Refactor container scan command to accept a single image argument and…

3635fa0
Select commit
Loading
Failed to load commit list.
Open

feat: Run trivy container scan #192

Refactor container scan command to accept a single image argument and…
3635fa0
Select commit
Loading
Failed to load commit list.
Codacy Production / Codacy Static Code Analysis required action Jan 30, 2026 in 0s

2 new security issues (0 max.).

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

Issues
======
- Added 2
           

Complexity increasing per file
==============================
- cli-v2.go  1
- cmd/container_scan.go  25
- cmd/container_scan_test.go  52
         

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

See the complete overview on Codacy

Annotations

Check failure on line 41 in cmd/container_scan.go

See this annotation in the file changed.

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

cmd/container_scan.go#L41

Detected non-static command inside Command.

Check failure on line 41 in cmd/container_scan.go

See this annotation in the file changed.

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

cmd/container_scan.go#L41

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.