Public Access
Do not fail check if no critical vulnerabilities were found when executed for a fork repository (closes #104)
This commit is contained in:
@@ -1,9 +1,16 @@
|
|||||||
# Changelog
|
# Changelog
|
||||||
|
|
||||||
All notable changes to this project will be documented in this file.
|
All notable changes to this project will be documented in this file.
|
||||||
|
|
||||||
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
|
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
|
||||||
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
|
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
|
||||||
|
|
||||||
|
## [1.2.0]
|
||||||
|
|
||||||
|
### Fixed
|
||||||
|
|
||||||
|
- Do not fail check if no critical vulnerabilities were found when executed for a fork repository (closes #104)
|
||||||
|
|
||||||
## [1.1.0]
|
## [1.1.0]
|
||||||
|
|
||||||
### Fixed
|
### Fixed
|
||||||
|
|||||||
@@ -6,6 +6,7 @@ branding:
|
|||||||
color: black
|
color: black
|
||||||
inputs:
|
inputs:
|
||||||
token:
|
token:
|
||||||
|
description: GitHub Actions token
|
||||||
required: true
|
required: true
|
||||||
|
|
||||||
runs:
|
runs:
|
||||||
|
|||||||
Vendored
+1
-1
File diff suppressed because one or more lines are too long
+1
-1
@@ -26,7 +26,7 @@ async function getData(): Promise<interfaces.Report> {
|
|||||||
await cargo.call(['audit', '--json'], {
|
await cargo.call(['audit', '--json'], {
|
||||||
ignoreReturnCode: true,
|
ignoreReturnCode: true,
|
||||||
listeners: {
|
listeners: {
|
||||||
stdout: buffer => {
|
stdout: (buffer) => {
|
||||||
stdout += buffer.toString();
|
stdout += buffer.toString();
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
|||||||
@@ -153,6 +153,11 @@ See https://github.com/actions-rs/clippy-check/issues/2 for details.`);
|
|||||||
throw new Error(
|
throw new Error(
|
||||||
'Critical vulnerabilities were found, marking check as failed',
|
'Critical vulnerabilities were found, marking check as failed',
|
||||||
);
|
);
|
||||||
|
} else {
|
||||||
|
core.info(
|
||||||
|
'No critical vulnerabilities were found, not marking check as failed',
|
||||||
|
);
|
||||||
|
return;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -177,6 +182,11 @@ See https://github.com/actions-rs/clippy-check/issues/2 for details.`);
|
|||||||
throw new Error(
|
throw new Error(
|
||||||
'Critical vulnerabilities were found, marking check as failed',
|
'Critical vulnerabilities were found, marking check as failed',
|
||||||
);
|
);
|
||||||
|
} else {
|
||||||
|
core.info(
|
||||||
|
'No critical vulnerabilities were found, not marking check as failed',
|
||||||
|
);
|
||||||
|
return;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user