Skip to content

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

@dylanzt

Description

@dylanzt

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions