Skip to content

Commit

Permalink
workflow: debug check security
Browse files Browse the repository at this point in the history
  • Loading branch information
Aleksey28 committed Dec 7, 2023
1 parent 200d338 commit 7c81358
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions .github/scripts/security-checker.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,8 @@ class SecurityChecker {
createAlertDictionary (existedIssues) {
return existedIssues.reduce((res, issue) => {
const [, url, number] = issue.body.match(/Link:\s*(https.*?(\d+)$)/);
console.log(`${new Date()} -> file: security-checker.mjs:68 -> SecurityChecker -> returnexistedIssues.reduce -> url:`, url);
console.log(`${new Date()} -> file: security-checker.mjs:68 -> SecurityChecker -> returnexistedIssues.reduce -> number:`, number);

if (!url)
return res;
Expand All @@ -83,7 +85,9 @@ class SecurityChecker {
const alert = this.alertDictionary[key];

if (alert.isDependabot) {
console.log(`${new Date()} -> file: security-checker.mjs:87 -> SecurityChecker -> closeSpoiledIssues -> alert.number:`, alert.number);
const isAlertOpened = await this.isDependabotAlertOpened(alert.number);
console.log(`${new Date()} -> file: security-checker.mjs:88 -> SecurityChecker -> closeSpoiledIssues -> isAlertOpened:`, isAlertOpened);

if (isAlertOpened)
continue;
Expand Down

0 comments on commit 7c81358

Please sign in to comment.