Skip to content

Commit

Permalink
Showing 3 changed files with 10 additions and 9 deletions.
7 changes: 4 additions & 3 deletions lib/actions-util.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion lib/actions-util.js.map
10 changes: 5 additions & 5 deletions src/actions-util.ts
@@ -269,11 +269,11 @@ export async function getWorkflowErrors(): Promise<CodedError[] | undefined> {
export function formatWorkflowErrors(errors: CodedError[]): string {
const issuesWere = errors.length === 1 ? "issue was" : "issues were";

return `${
errors.length
} ${issuesWere} detected with this workflow: ${errors
.map((e) => e.message)
.join(", ")}
const errorsList = `* ${errors.map((e) => e.message).join("\n* ")}`;

return `${errors.length} ${issuesWere} detected with this workflow:
${errorsList}
Please visit https://docs.github.com/en/free-pro-team@latest/github/finding-security-vulnerabilities-and-errors-in-your-code/configuring-code-scanning for the latest guidance on configuring Code Scanning.`;
}

0 comments on commit 94b10db

Please sign in to comment.