Skip to content

Commit

Permalink
Merge pull request #66 from Omegapoint/fix-error-log
Browse files Browse the repository at this point in the history
Fix error log
  • Loading branch information
hampus-andersson-op authored Apr 16, 2024
2 parents 97a3fcd + 43ff84a commit 11a7ca8
Show file tree
Hide file tree
Showing 10 changed files with 8 additions and 12 deletions.
2 changes: 1 addition & 1 deletion src/azuredevopsboard/AzureDevOpsBoardService.ts
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ export class AzureDevOpsBoardService {
core.warning('Error getting tickets for Azure DevOps Board!');
console.log('Error:', error.message);
}
console.log('\n');
console.log();
}
}
}
3 changes: 1 addition & 2 deletions src/branchprotection/BranchProtectionService.ts
Original file line number Diff line number Diff line change
Expand Up @@ -39,10 +39,9 @@ export class BranchProtectionService {
core.exportVariable('numberOfReviewers', 0);
} else {
core.warning('Error getting branch protection!');
core.warning('Error status:', error.status);
core.warning(error.message);
}
}
console.log('\n');
console.log();
}
}
2 changes: 1 addition & 1 deletion src/codequalitytools/CodeQualityService.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,6 @@ export class CodeQualityService {
console.log(`Tool:`, `${codeQualityTool.nameOfTool}`);
core.exportVariable('codeQualityTool', codeQualityTool.nameOfTool);
}
console.log('\n');
console.log();
}
}
2 changes: 1 addition & 1 deletion src/pentest/PentestService.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,6 @@ export class PentestService {
console.log('Pentest date was found');
core.exportVariable('pentestDate', pentest.date);
}
console.log('\n');
console.log();
}
}
1 change: 0 additions & 1 deletion src/sasttools/CodeQLService.ts
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,6 @@ export class CodeQLService {
core.exportVariable('SASTnumberOfSeverity4', sastNumberOfSeverity4);
} catch (error) {
core.warning('Failed to get CodeQL severities');
core.warning('Error status:', error.status);
core.warning(error.message);
core.exportVariable('SASTnumberOfSeverity1', 0);
core.exportVariable('SASTnumberOfSeverity2', 0);
Expand Down
2 changes: 1 addition & 1 deletion src/sasttools/SastService.ts
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,6 @@ export class SastService {
if (sast.toLowerCase() === 'codeql') {
await CodeQLService.setCodeQLFindings();
}
console.log('\n');
console.log();
}
}
1 change: 0 additions & 1 deletion src/scatools/DependabotService.ts
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,6 @@ export class DependabotService {
core.exportVariable('SCAnumberOfSeverity4', scaNumberOfSeverity4);
} catch (error) {
core.warning('Failed to get Dependabot severities');
core.warning('Error status:', error.status);
core.warning(error.message);
core.exportVariable('SCAnumberOfSeverity1', 0);
core.exportVariable('SCAnumberOfSeverity2', 0);
Expand Down
2 changes: 1 addition & 1 deletion src/scatools/ScaService.ts
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,6 @@ export class ScaService {
if (sca.toLowerCase() === 'dependabot') {
await DependabotService.setDependabotFindings();
}
console.log('\n');
console.log();
}
}
3 changes: 1 addition & 2 deletions src/secretscanning/SecretScanningService.ts
Original file line number Diff line number Diff line change
Expand Up @@ -37,10 +37,9 @@ export class SecretScanningService {
core.exportVariable('numberOfExposedSecrets', numberOfExposedSecrets);
} catch (error) {
core.warning('Failed to get number of exposed secrets');
core.warning('Error status:', error.status);
core.warning(error.message);
core.exportVariable('numberOfExposedSecrets', 0);
}
console.log('\n');
console.log();
}
}
2 changes: 1 addition & 1 deletion src/threatmodeling/ThreatModelingService.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,6 @@ export class ThreatModelingService {
console.log('Threat Modeling date was found');
core.exportVariable('threatModelingDate', threatModeling.date);
}
console.log('\n');
console.log();
}
}

0 comments on commit 11a7ca8

Please sign in to comment.