Skip to content

Commit

Permalink
more logging
Browse files Browse the repository at this point in the history
  • Loading branch information
d-co-white committed Jun 27, 2024
1 parent cd9b3d5 commit 02d6663
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
1 change: 1 addition & 0 deletions src/hawk_process.js
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@ module.exports.spawnHawk = function spawnHawk(command, args) {
// err.stderr = stderr;
// err.stdout = stdout;
reject(err);
//throw err
}
})
})
Expand Down
2 changes: 2 additions & 0 deletions src/utilities.js
Original file line number Diff line number Diff line change
Expand Up @@ -103,6 +103,7 @@ module.exports.spawnFileArgs = function spawnFileArgs(hawkPath, command) {
module.exports.runCommand = async function runCommand(hawkPath, command) {
const scanData = {};
const { file, args } = this.spawnFileArgs(hawkPath, command)
core.info("IN the command thingy")
core.info(`${file} ${args}`)
await spawnHawk(file, args)
.then(data => {
Expand All @@ -117,6 +118,7 @@ module.exports.runCommand = async function runCommand(hawkPath, command) {
/(?<=View on StackHawk platform: https:\/\/app.stackhawk.com\/scans\/)(?<group>.*)/m, 'group') || 'No scan id found';
})
.catch(error => {
core.info("really in here")
core.info(`Here is the error ${error.message}`);
core.info(`Here is the error ${error}`);
core.setFailed(error.message);
Expand Down

0 comments on commit 02d6663

Please sign in to comment.