Skip to content

Commit

Permalink
added proper console logs to pipeline
Browse files Browse the repository at this point in the history
  • Loading branch information
Johanna Ahlskog committed Sep 14, 2023
1 parent 2c329cc commit 373294b
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import * as github from '@actions/github';
import { BranchProtectionService } from './branchprotection/BranchProtectionService';
import { CyDigConfig } from './types/CyDigConfig';
import { getContentOfFile } from './helpfunctions/JsonService';
import { PentestService } from './pentest/PentestService';
import { PentestService } from './Pentest/PentestService';
import { ThreatModelingService } from './threatmodeling/ThreatModelingService';
/**
* The main function for the action.
Expand Down
4 changes: 2 additions & 2 deletions src/threatmodeling/ThreatModelingService.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,14 @@ import * as core from '@actions/core';
import * as github from '@actions/github';
export class ThreatModelingService {
public static async getStateOfThreatModeling(threatModelingDate: { date: string; boardsTag: string }): Promise<void> {
console.log('Running Threat Modeling Controls');
//console.log('Running Threat Modeling Controls');

if (!threatModelingDate.date || threatModelingDate.date === 'date-of-threat-modeling') {
core.warning('Threat Modeling Date is not set!');
return;
}
core.exportVariable('threatModelingDate', threatModelingDate.date);

console.log('threatModelingDate is set', threatModelingDate.date);
//console.log('threatModelingDate is set', threatModelingDate.date);
}
}

0 comments on commit 373294b

Please sign in to comment.