File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1616# Please provide the output of `grype koalaman/shellcheck@sha256:<newhash>`
1717# in your PR when bumping. Referenced by SHA for safety.
1818DefaultShellCheckImage = "koalaman/shellcheck@sha256:652a5a714dc2f5f97e36f565d4f7d2322fea376734f3ec1b04ed54ce2a0b124f"
19+ MelangeImage = "cgr.dev/chainguard/melange:latest"
1920
2021
2122# Returns False if shellcheck reports issues
@@ -110,11 +111,14 @@ def main(argv: Sequence[str] | None = None) -> int:
110111 ) as compiled_out :
111112 subprocess .check_call (
112113 [
113- "melange" ,
114+ "docker" ,
115+ "run" ,
116+ f"--volume={ os .getcwd ()} :/work" ,
117+ "--rm" ,
118+ MelangeImage ,
114119 "compile" ,
115- "--arch=x86_64 " ,
120+ f "--arch={ os . uname (). machine } " ,
116121 "--pipeline-dir=./pipelines" ,
117- filename ,
118122 ],
119123 stdout = compiled_out ,
120124 )
You can’t perform that action at this time.
0 commit comments