Skip to content

Commit 6a75cda

Browse files
committed
remove debug
1 parent 6387308 commit 6a75cda

File tree

2 files changed

+17
-19
lines changed

2 files changed

+17
-19
lines changed

dist/index.js

Lines changed: 9 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -38505,7 +38505,6 @@ const core = __importStar(__nccwpck_require__(5127));
3850538505
const index_1 = __nccwpck_require__(4925);
3850638506
const github = __importStar(__nccwpck_require__(3134));
3850738507
const fs_1 = __nccwpck_require__(7147);
38508-
const fs_2 = __nccwpck_require__(7147);
3850938508
const cleanCollectors = (inputArr) => {
3851038509
let allowed = [];
3851138510
for (var input of inputArr) {
@@ -38632,27 +38631,26 @@ function runAction(options) {
3863238631
var _b;
3863338632
//core.info(output);
3863438633
core.info(`Scan finished with exit code: ${code}`);
38635-
core.info('Full ouput of the scan: ' + output);
38634+
core.info(output);
3863638635
//write output to file
3863738636
// writeFile('scaResults.txt', output, (err) => {
3863838637
// if (err) throw err;
3863938638
// console.log('The file has been saved!');
3864038639
// });
3864138640
try {
38642-
(0, fs_2.writeFileSync)('scaResults.txt', output);
38641+
(0, fs_1.writeFileSync)('scaResults.txt', output);
3864338642
console.log('The file has been saved!');
3864438643
}
3864538644
catch (err) {
3864638645
console.error('Error writing file:', err);
3864738646
}
38648-
core.info('reading file');
38649-
try {
38650-
const data = (0, fs_1.readFileSync)('scaResults.txt', 'utf8');
38651-
console.log('Full file output: ' + data);
38652-
}
38653-
catch (err) {
38654-
console.error(err);
38655-
}
38647+
// core.info('reading file')
38648+
// try {
38649+
// const data = readFileSync('scaResults.txt', 'utf8');
38650+
// console.log('Full file output: '+data);
38651+
// } catch (err) {
38652+
// console.error(err);
38653+
// }
3865638654
//store output files as artifacts
3865738655
core.info('Store txt Results as Artifact');
3865838656
const artifact = __nccwpck_require__(1413);

src/srcclr.ts

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -162,7 +162,7 @@ export async function runAction (options: Options) {
162162
//core.info(output);
163163
core.info(`Scan finished with exit code: ${code}`);
164164

165-
core.info('Full ouput of the scan: '+output)
165+
core.info(output)
166166
//write output to file
167167
// writeFile('scaResults.txt', output, (err) => {
168168
// if (err) throw err;
@@ -177,13 +177,13 @@ export async function runAction (options: Options) {
177177
}
178178

179179

180-
core.info('reading file')
181-
try {
182-
const data = readFileSync('scaResults.txt', 'utf8');
183-
console.log('Full file output: '+data);
184-
} catch (err) {
185-
console.error(err);
186-
}
180+
// core.info('reading file')
181+
// try {
182+
// const data = readFileSync('scaResults.txt', 'utf8');
183+
// console.log('Full file output: '+data);
184+
// } catch (err) {
185+
// console.error(err);
186+
// }
187187

188188
//store output files as artifacts
189189
core.info('Store txt Results as Artifact')

0 commit comments

Comments
 (0)