secure-inline-scan icon indicating copy to clipboard operation
secure-inline-scan copied to clipboard

$REPO does not appear to be set to include full value

Open dylanzt opened this issue 5 years ago • 0 comments

Noticed while poking around in source that the value for repo is set in such a way that repos with a path are not included in full. See https://github.com/sysdiglabs/secure-inline-scan/blob/master/inline_scan.sh#L426.

Unsure if there is some rationale for this I'm unaware of. To my mind the preferred approach would be to change the pipe from:

$ echo example.com.au:8080/path/to/image:v10.32.12-rc-1 | rev |  cut -d / -f 2 | rev
to

to:

$ echo example.com.au:8080/path/to/image:v10.32.12-rc-1 | rev |  cut -d / -f 2- | rev
example.com.au:8080/path/to

dylanzt avatar Jun 30 '20 06:06 dylanzt