diff --git a/DEVELOPING.md b/DEVELOPING.md index 91a3b33c..ba6a44ef 100644 --- a/DEVELOPING.md +++ b/DEVELOPING.md @@ -8,6 +8,10 @@ If you would like to get more extensive debug logging, it is possible to enable this as [described here](https://github.com/actions/toolkit/blob/master/docs/action-debugging.md) by setting a secret in your repository of `ACTIONS_STEP_DEBUG` to `true`. +## Update `dist/` + +Updates to `dist/` and handled via a commit hook. Install the hook by running `npm install`. + ## Tests To run tests locally, you will need a local docker instance and registry along with a few diff --git a/dist/attachReleaseAssets/index.js b/dist/attachReleaseAssets/index.js index abe221a6..674c47b5 100644 --- a/dist/attachReleaseAssets/index.js +++ b/dist/attachReleaseAssets/index.js @@ -24024,9 +24024,7 @@ function executeSyft(_a) { return __awaiter(this, void 0, void 0, function* () { let stdout = ""; const cmd = yield getSyftCommand(); - const env = { - SYFT_CHECK_FOR_APP_UPDATE: "false", - }; + const env = Object.assign(Object.assign({}, process.env), { SYFT_CHECK_FOR_APP_UPDATE: "false" }); const registryUser = core.getInput("registry-username"); const registryPass = core.getInput("registry-password"); if (registryUser) { diff --git a/dist/downloadSyft/index.js b/dist/downloadSyft/index.js index eaee8bd3..411f5feb 100644 --- a/dist/downloadSyft/index.js +++ b/dist/downloadSyft/index.js @@ -24072,9 +24072,7 @@ function executeSyft(_a) { return __awaiter(this, void 0, void 0, function* () { let stdout = ""; const cmd = yield getSyftCommand(); - const env = { - SYFT_CHECK_FOR_APP_UPDATE: "false", - }; + const env = Object.assign(Object.assign({}, process.env), { SYFT_CHECK_FOR_APP_UPDATE: "false" }); const registryUser = core.getInput("registry-username"); const registryPass = core.getInput("registry-password"); if (registryUser) { diff --git a/dist/runSyftAction/index.js b/dist/runSyftAction/index.js index b6936038..bdca9e0f 100644 --- a/dist/runSyftAction/index.js +++ b/dist/runSyftAction/index.js @@ -24024,9 +24024,7 @@ function executeSyft(_a) { return __awaiter(this, void 0, void 0, function* () { let stdout = ""; const cmd = yield getSyftCommand(); - const env = { - SYFT_CHECK_FOR_APP_UPDATE: "false", - }; + const env = Object.assign(Object.assign({}, process.env), { SYFT_CHECK_FOR_APP_UPDATE: "false" }); const registryUser = core.getInput("registry-username"); const registryPass = core.getInput("registry-password"); if (registryUser) { diff --git a/src/github/SyftGithubAction.ts b/src/github/SyftGithubAction.ts index 45145c3b..9c2daa40 100644 --- a/src/github/SyftGithubAction.ts +++ b/src/github/SyftGithubAction.ts @@ -109,6 +109,7 @@ async function executeSyft({ const cmd = await getSyftCommand(); const env: { [key: string]: string } = { + ...process.env, SYFT_CHECK_FOR_APP_UPDATE: "false", };