Use set failed
This commit is contained in:
parent
2f492642fe
commit
4f04fa9d08
3 changed files with 3 additions and 3 deletions
2
dist/pre/index.js
vendored
2
dist/pre/index.js
vendored
|
|
@ -6301,7 +6301,7 @@ var __awaiter = (undefined && undefined.__awaiter) || function (thisArg, _argume
|
|||
egress_policy: core.getInput("egress-policy"),
|
||||
};
|
||||
if (confg.egress_policy !== "audit" && confg.egress_policy !== "block") {
|
||||
core.error("egress-policy must be either audit or block");
|
||||
core.setFailed("egress-policy must be either audit or block");
|
||||
}
|
||||
if (confg.egress_policy === "block" && confg.allowed_endpoints === "") {
|
||||
core.warning("egress-policy is set to block (default) and allowed-endpoints is empty. No outbound traffic will be allowed for job steps.");
|
||||
|
|
|
|||
2
dist/pre/index.js.map
vendored
2
dist/pre/index.js.map
vendored
File diff suppressed because one or more lines are too long
|
|
@ -35,7 +35,7 @@ import * as tc from "@actions/tool-cache";
|
|||
};
|
||||
|
||||
if (confg.egress_policy !== "audit" && confg.egress_policy !== "block") {
|
||||
core.error("egress-policy must be either audit or block");
|
||||
core.setFailed("egress-policy must be either audit or block");
|
||||
}
|
||||
|
||||
if (confg.egress_policy === "block" && confg.allowed_endpoints === "") {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue