Skip to content

Commit

Permalink
Testing logs
Browse files Browse the repository at this point in the history
  • Loading branch information
hampus-andersson-op committed Apr 18, 2024
1 parent 09beb5d commit 96dd8b8
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/branchprotection/BranchProtectionService.ts
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,8 @@ export class BranchProtectionService {
title: 'Branch protection control failed',
});
} else if (error.status === 404) {
core.info(error.status);

// Status code '404' means 'Branch not protected'
core.notice('Branch protection is not enabled for this repository', {
title: 'Branch protection control',
Expand Down
2 changes: 2 additions & 0 deletions src/sasttools/CodeQLService.ts
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,8 @@ export class CodeQLService {
core.exportVariable('SASTnumberOfSeverity3', sastNumberOfSeverity3);
core.exportVariable('SASTnumberOfSeverity4', sastNumberOfSeverity4);
} catch (error) {
core.info(error.status);

core.info('Failed to get CodeQL severities');
core.warning(error.message, {
title: 'SAST tool control failed',
Expand Down
2 changes: 2 additions & 0 deletions src/scatools/DependabotService.ts
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,8 @@ export class DependabotService {
core.exportVariable('SCAnumberOfSeverity3', scaNumberOfSeverity3);
core.exportVariable('SCAnumberOfSeverity4', scaNumberOfSeverity4);
} catch (error) {
core.info(error.status);

core.info('Failed to get Dependabot severities');
core.warning(error.message, {
title: 'SCA tool control failed',
Expand Down

0 comments on commit 96dd8b8

Please sign in to comment.