-
Notifications
You must be signed in to change notification settings - Fork 139
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
allow first add statement in config files (#229)
- Loading branch information
1 parent
a8fc623
commit 53e0295
Showing
4 changed files
with
271 additions
and
50 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
62 changes: 62 additions & 0 deletions
62
pkg/assessor/manifest/testdata/add_with_arg_statement.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,62 @@ | ||
{ | ||
"architecture": "arm64", | ||
"config": { | ||
"Env": [ | ||
"PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin" | ||
], | ||
"Cmd": [ | ||
"/bin/bash" | ||
], | ||
"Labels": { | ||
"org.opencontainers.image.ref.name": "ubuntu", | ||
"org.opencontainers.image.version": "22.04" | ||
}, | ||
"OnBuild": null | ||
}, | ||
"created": "2023-07-06T14:45:51.166292881Z", | ||
"history": [ | ||
{ | ||
"created": "2023-06-28T08:42:48.423710828Z", | ||
"created_by": "/bin/sh -c #(nop) ARG RELEASE", | ||
"empty_layer": true | ||
}, | ||
{ | ||
"created": "2023-06-28T08:42:48.499325674Z", | ||
"created_by": "/bin/sh -c #(nop) ARG LAUNCHPAD_BUILD_ARCH", | ||
"empty_layer": true | ||
}, | ||
{ | ||
"created": "2023-06-28T08:42:48.566770422Z", | ||
"created_by": "/bin/sh -c #(nop) LABEL org.opencontainers.image.ref.name=ubuntu", | ||
"empty_layer": true | ||
}, | ||
{ | ||
"created": "2023-06-28T08:42:48.653381453Z", | ||
"created_by": "/bin/sh -c #(nop) LABEL org.opencontainers.image.version=22.04", | ||
"empty_layer": true | ||
}, | ||
{ | ||
"created": "2023-06-28T08:42:50.199969775Z", | ||
"created_by": "/bin/sh -c #(nop) ADD file:262490f82459c14632f5c9a6d6a5cf6c07b4f307e8fd380fa764662cda46e88f in / " | ||
}, | ||
{ | ||
"created": "2023-06-28T08:42:50.42500211Z", | ||
"created_by": "/bin/sh -c #(nop) CMD [\"/bin/bash\"]", | ||
"empty_layer": true | ||
}, | ||
{ | ||
"created": "2023-07-06T14:45:51.166292881Z", | ||
"created_by": "RUN /bin/sh -c echo \"hello\" # buildkit", | ||
"comment": "buildkit.dockerfile.v0" | ||
} | ||
], | ||
"os": "linux", | ||
"rootfs": { | ||
"type": "layers", | ||
"diff_ids": [ | ||
"sha256:c5ca84f245d30117a9a2720cb4297cedf3642816471d4d699f4d77e39e13a39c", | ||
"sha256:5f70bf18a086007016e948b04aed3b82103a36bea41755b6cddfaf10ace3c6ef" | ||
] | ||
}, | ||
"variant": "v8" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,70 @@ | ||
{ | ||
"architecture": "arm64", | ||
"config": { | ||
"Env": [ | ||
"PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin" | ||
], | ||
"Cmd": [ | ||
"/bin/bash" | ||
], | ||
"Labels": { | ||
"org.opencontainers.image.ref.name": "ubuntu", | ||
"org.opencontainers.image.version": "22.04" | ||
}, | ||
"OnBuild": null | ||
}, | ||
"created": "2023-07-06T14:45:51.166292881Z", | ||
"history": [ | ||
{ | ||
"created": "2023-06-28T08:42:48.423710828Z", | ||
"created_by": "/bin/sh -c #(nop) ARG RELEASE", | ||
"empty_layer": true | ||
}, | ||
{ | ||
"created": "2023-06-28T08:42:48.499325674Z", | ||
"created_by": "/bin/sh -c #(nop) ARG LAUNCHPAD_BUILD_ARCH", | ||
"empty_layer": true | ||
}, | ||
{ | ||
"created": "2023-06-28T08:42:48.566770422Z", | ||
"created_by": "/bin/sh -c #(nop) LABEL org.opencontainers.image.ref.name=ubuntu", | ||
"empty_layer": true | ||
}, | ||
{ | ||
"created": "2023-06-28T08:42:48.653381453Z", | ||
"created_by": "/bin/sh -c #(nop) LABEL org.opencontainers.image.version=22.04", | ||
"empty_layer": true | ||
}, | ||
{ | ||
"created": "2023-06-28T08:42:50.199969775Z", | ||
"created_by": "/bin/sh -c #(nop) ADD file:262490f82459c14632f5c9a6d6a5cf6c07b4f307e8fd380fa764662cda46e88f in / " | ||
}, | ||
{ | ||
"created": "2023-06-28T08:42:50.42500211Z", | ||
"created_by": "/bin/sh -c #(nop) CMD [\"/bin/bash\"]", | ||
"empty_layer": true | ||
}, | ||
{ | ||
"created": "2023-07-06T14:45:51.166292881Z", | ||
"created_by": "RUN /bin/sh -c echo \"hello\" # buildkit", | ||
"comment": "buildkit.dockerfile.v0" | ||
}, | ||
{ | ||
"created": "2023-06-28T08:42:50.199969775Z", | ||
"created_by": "/bin/sh -c #(nop) ADD file:262490f82459c14632f5c9a6d6a5cf6c07b4f307e8fd380fa764662cda46e88f in / " | ||
}, | ||
{ | ||
"created": "2023-06-28T08:42:50.199969775Z", | ||
"created_by": "/bin/sh -c #(nop) ADD file:262490f82459c14632f5c9a6d6a5cf6c07b4f307e8fd380fa764662cda46e88f in / " | ||
} | ||
], | ||
"os": "linux", | ||
"rootfs": { | ||
"type": "layers", | ||
"diff_ids": [ | ||
"sha256:c5ca84f245d30117a9a2720cb4297cedf3642816471d4d699f4d77e39e13a39c", | ||
"sha256:5f70bf18a086007016e948b04aed3b82103a36bea41755b6cddfaf10ace3c6ef" | ||
] | ||
}, | ||
"variant": "v8" | ||
} |