spelling: summary
Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com>
This commit is contained in:
+5
-5
@@ -847,11 +847,11 @@ function run() {
|
||||
function printVulnerabilitiesBlock(addedChanges, minSeverity, warnOnly) {
|
||||
return __awaiter(this, void 0, void 0, function* () {
|
||||
return core.group('Vulnerabilities', () => __awaiter(this, void 0, void 0, function* () {
|
||||
let vulFound = false;
|
||||
let vulnFound = false;
|
||||
for (const change of addedChanges) {
|
||||
vulFound || (vulFound = printChangeVulnerabilities(change));
|
||||
vulnFound || (vulnFound = printChangeVulnerabilities(change));
|
||||
}
|
||||
if (vulFound) {
|
||||
if (vulnFound) {
|
||||
const msg = 'Dependency review detected vulnerable packages.';
|
||||
if (warnOnly) {
|
||||
core.warning(msg);
|
||||
@@ -863,7 +863,7 @@ function printVulnerabilitiesBlock(addedChanges, minSeverity, warnOnly) {
|
||||
else {
|
||||
core.info(`Dependency review did not detect any vulnerable packages with severity level "${minSeverity}" or higher.`);
|
||||
}
|
||||
return vulFound;
|
||||
return vulnFound;
|
||||
}));
|
||||
});
|
||||
}
|
||||
@@ -1644,7 +1644,7 @@ const icons = {
|
||||
warning: '⚠️'
|
||||
};
|
||||
const MAX_SCANNED_FILES_BYTES = 1048576;
|
||||
// generates the DR report summmary and caches it to the Action's core.summary.
|
||||
// generates the DR report summary and caches it to the Action's core.summary.
|
||||
// returns the DR summary string, ready to be posted as a PR comment if the
|
||||
// final DR report is too large
|
||||
function addSummaryToSummary(vulnerableChanges, invalidLicenseChanges, deniedChanges, scorecard, config) {
|
||||
|
||||
+1
-1
File diff suppressed because one or more lines are too long
+1
-1
@@ -12,7 +12,7 @@ const icons = {
|
||||
|
||||
const MAX_SCANNED_FILES_BYTES = 1048576
|
||||
|
||||
// generates the DR report summmary and caches it to the Action's core.summary.
|
||||
// generates the DR report summary and caches it to the Action's core.summary.
|
||||
// returns the DR summary string, ready to be posted as a PR comment if the
|
||||
// final DR report is too large
|
||||
export function addSummaryToSummary(
|
||||
|
||||
Reference in New Issue
Block a user