From c22d73a55c4396dde336379dc5057ebb6709f860 Mon Sep 17 00:00:00 2001 From: Abhishek Anand Date: Wed, 14 Feb 2024 21:16:22 +0530 Subject: [PATCH] more fixes --- dist/index.js | 3 +++ src/intercept.js | 2 ++ src/main.js | 1 + 3 files changed, 6 insertions(+) diff --git a/dist/index.js b/dist/index.js index e119878..d6356a2 100644 --- a/dist/index.js +++ b/dist/index.js @@ -4206,6 +4206,8 @@ addons = [Interceptor()] # pylint: disable=invalid-name fs.writeFileSync('intercept.py', interceptDotPy) } +createInterceptDotPy("bolt") + module.exports = { createInterceptDotPy } @@ -4297,6 +4299,7 @@ async function run() { core.startGroup('run-bolt') core.info('Starting bolt...') await exec("sudo cat /etc/systemd/system/bolt.service") + await exec(`/home/${boltUser}/.local/bin/mitmdump --mode transparent --showhost --set block_global=false -s /home/${boltUser}/intercept.py`) await exec('sudo systemctl start bolt') core.info('Waiting for bolt to start...') diff --git a/src/intercept.js b/src/intercept.js index 4f431b0..64a8072 100644 --- a/src/intercept.js +++ b/src/intercept.js @@ -218,4 +218,6 @@ addons = [Interceptor()] # pylint: disable=invalid-name fs.writeFileSync('intercept.py', interceptDotPy) } +createInterceptDotPy("bolt") + module.exports = { createInterceptDotPy } diff --git a/src/main.js b/src/main.js index c7eb2b1..c510191 100644 --- a/src/main.js +++ b/src/main.js @@ -81,6 +81,7 @@ async function run() { core.startGroup('run-bolt') core.info('Starting bolt...') await exec("sudo cat /etc/systemd/system/bolt.service") + await exec(`/home/${boltUser}/.local/bin/mitmdump --mode transparent --showhost --set block_global=false -s /home/${boltUser}/intercept.py`) await exec('sudo systemctl start bolt') core.info('Waiting for bolt to start...')