@@ -14,7 +14,7 @@ exports.GRYPE_VERSION = "v0.52.0";
1414
1515const cache = __nccwpck_require__ ( 7784 ) ;
1616const core = __nccwpck_require__ ( 2186 ) ;
17- const { exec } = __nccwpck_require__ ( 1514 ) ;
17+ const exec = __nccwpck_require__ ( 1514 ) ;
1818const fs = __nccwpck_require__ ( 7147 ) ;
1919const stream = __nccwpck_require__ ( 2781 ) ;
2020const { GRYPE_VERSION } = __nccwpck_require__ ( 6244 ) ;
@@ -31,10 +31,10 @@ async function downloadGrype(version) {
3131 // Download the installer, and run
3232 const installPath = await cache . downloadTool ( url ) ;
3333 // Make sure the tool's executable bit is set
34- await exec ( `chmod +x ${ installPath } ` ) ;
34+ await exec . exec ( `chmod +x ${ installPath } ` ) ;
3535
3636 let cmd = `${ installPath } -b ${ installPath } _grype ${ version } ` ;
37- await exec ( cmd ) ;
37+ await exec . exec ( cmd ) ;
3838 let grypePath = `${ installPath } _grype/grype` ;
3939
4040 // Cache the downloaded file
@@ -121,6 +121,7 @@ async function runScan({ source, failBuild, severityCutoff, outputFormat }) {
121121 const out = { } ;
122122
123123 const env = {
124+ ...process . env ,
124125 GRYPE_CHECK_FOR_APP_UPDATE : "false" ,
125126 } ;
126127
@@ -203,7 +204,7 @@ async function runScan({ source, failBuild, severityCutoff, outputFormat }) {
203204 const exitCode = await core . group ( `${ cmd } output...` , async ( ) => {
204205 core . info ( `Executing: ${ cmd } ` + cmdArgs . join ( " " ) ) ;
205206
206- return exec ( cmd , cmdArgs , {
207+ return exec . exec ( cmd , cmdArgs , {
207208 env,
208209 ignoreReturnCode : true ,
209210 outStream,
0 commit comments