Skip to content

Commit

Permalink
debug
Browse files Browse the repository at this point in the history
  • Loading branch information
raianand committed Feb 14, 2024
1 parent 8edc0c2 commit 58d9769
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 2 deletions.
4 changes: 3 additions & 1 deletion dist/index.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 2 additions & 0 deletions src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,8 @@ const core = require('@actions/core')

const flag = !!core.getState('isPost')

core.info(`isPost: ${core.getState('isPost')}`)

if (flag) {
// Post
summary()
Expand Down
2 changes: 1 addition & 1 deletion src/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -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')

Check failure on line 58 in src/main.js

View workflow job for this annotation

GitHub Actions / Lint Codebase

Replace `'sudo·chown·mitmproxyuser:mitmproxyuser·/home/mitmproxyuser/egress_rules.yaml'` with `⏎······'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 &"'

Check failure on line 60 in src/main.js

View workflow job for this annotation

GitHub Actions / Lint Codebase

Insert `⏎·····`
await exec(runBoltCommand)

core.info('Waiting for bolt to start...')
Expand Down

0 comments on commit 58d9769

Please sign in to comment.