bug: docker history analyzer exports instructions with build arguments without processing #8277
Labels
kind/bug
Categorizes issue or PR as related to a bug.
scan/misconfiguration
Issues relating to misconfiguration scanning
Milestone
Discussed in #8276
Originally posted by nikpivkin January 22, 2025
Description
If the instruction uses build arguments, the analyzer does not cut the
|1 NAME= /bin/sh -c
prefix, and the value passed to Rego has the following form:|1 NAME= /bin/sh -c echo $NAME
.Example for the RUN instruction:
Desired Behavior
Instructions must be exported without the prefix
|1 NAME= /bin/sh -c
.Actual Behavior
Instructions are exported in full
Reproduction Steps
Target
None
Scanner
None
Output Format
None
Mode
None
Debug Output
Operating System
m1
Version
Checklist
trivy clean --all
The text was updated successfully, but these errors were encountered: