Skip to content

Commit

Permalink
🔄 synced local '.github/workflows/' with remote 'workflows/'
Browse files Browse the repository at this point in the history
  • Loading branch information
testcafe-build-bot committed Aug 2, 2023
1 parent f6e76cd commit 994ecee
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions .github/workflows/check-security-alerts.yml
Original file line number Diff line number Diff line change
Expand Up @@ -49,10 +49,10 @@ jobs:
}
}
async function createIssue ({owner, repo, labels, summary, description, link, package = ''}) {
const title = `[${repo}] ${summary}`;
async function createIssue ({owner, repo, labels, originRepo, summary, description, link, package = ''}) {
const title = `[${originRepo}] ${summary}`;
const body = ''
+ `#### Repository: \`${ repo }\`\n`
+ `#### Repository: \`${ originRepo }\`\n`
+ (!!package ? `#### Package: \`${ package }\`\n` : '')
+ `#### Description:\n`
+ `${ description }\n`
Expand Down Expand Up @@ -86,6 +86,7 @@ jobs:
createIssue({ owner,
repo: '${{ secrets.SECURITY_ISSUE_REPO }}',
labels: [dependabotLabel, securityLabel],
originRepo: repo,
summary: alert.security_advisory.summary,
description: alert.security_advisory.description,
link: alert.html_url,
Expand All @@ -100,6 +101,7 @@ jobs:
createIssue({ owner,
repo: '${{ secrets.SECURITY_ISSUE_REPO }}',
labels: [codeqlLabel, securityLabel],
originRepo: repo,
summary: alert.rule.description,
description: alert.most_recent_instance.message.text,
link: alert.html_url,
Expand Down

0 comments on commit 994ecee

Please sign in to comment.