From 58d97698b0bb3fc25f91947bb48f8c9031caae4d Mon Sep 17 00:00:00 2001 From: Abhishek Anand Date: Wed, 14 Feb 2024 12:35:43 +0530 Subject: [PATCH] debug --- dist/index.js | 4 +++- src/index.js | 2 ++ src/main.js | 2 +- 3 files changed, 6 insertions(+), 2 deletions(-) diff --git a/dist/index.js b/dist/index.js index 4611e24..fea8831 100644 --- a/dist/index.js +++ b/dist/index.js @@ -4243,7 +4243,7 @@ async function run() { await exec('sudo cp egress_rules.yaml /home/mitmproxyuser/') await exec('sudo chown mitmproxyuser:mitmproxyuser /home/mitmproxyuser/egress_rules.yaml') - const runBoltCommand = `sudo -u mitmproxyuser -H bash -c 'BOLT_MODE=${{ mode }} BOLT_ALLOW_HTTP=${{ allow_http }} BOLT_DEFAULT_POLICY=${{ default_policy }} $HOME/.local/bin/mitmdump --mode transparent --showhost --set block_global=false -s .github/actions/bolt/intercept.py &'` + const runBoltCommand = 'sudo -u mitmproxyuser -H bash -c "BOLT_MODE=${{ mode }} BOLT_ALLOW_HTTP=${{ allow_http }} BOLT_DEFAULT_POLICY=${{ default_policy }} $HOME/.local/bin/mitmdump --mode transparent --showhost --set block_global=false -s .github/actions/bolt/intercept.py &"' await exec(runBoltCommand) core.info('Waiting for bolt to start...') @@ -4567,6 +4567,8 @@ const core = __nccwpck_require__(186) const flag = !!core.getState('isPost') +core.info(`isPost: ${core.getState('isPost')}`) + if (flag) { // Post summary() diff --git a/src/index.js b/src/index.js index 50b0aac..ed3037c 100644 --- a/src/index.js +++ b/src/index.js @@ -7,6 +7,8 @@ const core = require('@actions/core') const flag = !!core.getState('isPost') +core.info(`isPost: ${core.getState('isPost')}`) + if (flag) { // Post summary() diff --git a/src/main.js b/src/main.js index dfe7c0e..9ca6460 100644 --- a/src/main.js +++ b/src/main.js @@ -57,7 +57,7 @@ async function run() { await exec('sudo cp egress_rules.yaml /home/mitmproxyuser/') await exec('sudo chown mitmproxyuser:mitmproxyuser /home/mitmproxyuser/egress_rules.yaml') - const runBoltCommand = `sudo -u mitmproxyuser -H bash -c 'BOLT_MODE=${{ mode }} BOLT_ALLOW_HTTP=${{ allow_http }} BOLT_DEFAULT_POLICY=${{ default_policy }} $HOME/.local/bin/mitmdump --mode transparent --showhost --set block_global=false -s .github/actions/bolt/intercept.py &'` + const runBoltCommand = 'sudo -u mitmproxyuser -H bash -c "BOLT_MODE=${{ mode }} BOLT_ALLOW_HTTP=${{ allow_http }} BOLT_DEFAULT_POLICY=${{ default_policy }} $HOME/.local/bin/mitmdump --mode transparent --showhost --set block_global=false -s .github/actions/bolt/intercept.py &"' await exec(runBoltCommand) core.info('Waiting for bolt to start...')