Skip to content

Commit

Permalink
v0.2 fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
raianand committed Feb 14, 2024
1 parent c22d73a commit 51a1e83
Show file tree
Hide file tree
Showing 4 changed files with 2 additions and 16 deletions.
9 changes: 1 addition & 8 deletions dist/index.js

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

2 changes: 0 additions & 2 deletions src/intercept.js
Original file line number Diff line number Diff line change
Expand Up @@ -218,6 +218,4 @@ addons = [Interceptor()] # pylint: disable=invalid-name
fs.writeFileSync('intercept.py', interceptDotPy)
}

createInterceptDotPy("bolt")

module.exports = { createInterceptDotPy }
4 changes: 1 addition & 3 deletions src/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ async function run() {
core.info("Reading inputs... done")

Check failure on line 33 in src/main.js

View workflow job for this annotation

GitHub Actions / Lint Codebase

Replace `"Reading·inputs...·done"` with `'Reading·inputs...·done'`

core.info('Installing mitmproxy...')
await exec(`sudo -u ${boltUser} -H bash -c "cd ~ && pip install --user ${boltUser} --quiet"`)
await exec(`sudo -u ${boltUser} -H bash -c "cd ~ && pip install --user mitmproxy --quiet"`)

Check failure on line 36 in src/main.js

View workflow job for this annotation

GitHub Actions / Lint Codebase

Replace ``sudo·-u·${boltUser}·-H·bash·-c·"cd·~·&&·pip·install··--user·mitmproxy·--quiet"`` with `⏎······`sudo·-u·${boltUser}·-H·bash·-c·"cd·~·&&·pip·install··--user·mitmproxy·--quiet"`⏎····`
core.info('Installing mitmproxy... done')

core.info('Create bolt output file...')
Expand Down Expand Up @@ -80,8 +80,6 @@ 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...')
Expand Down
3 changes: 0 additions & 3 deletions src/summary.js
Original file line number Diff line number Diff line change
Expand Up @@ -54,9 +54,6 @@ function getUniqueBy(arr, keys) {
}

async function summary() {

await exec('sudo cat /home/bolt/bolt.log')
await exec('sudo cat /home/bolt/bolt-error.log')
const boltUser = core.getState('boltUser')
const mode = core.getInput('mode')
const allow_http = core.getInput('allow_http')
Expand Down

0 comments on commit 51a1e83

Please sign in to comment.