only check nwo of supported actions
This commit is contained in:
@@ -104,7 +104,8 @@ async function checkWorkflow(
|
|||||||
if (!!step.uses) {
|
if (!!step.uses) {
|
||||||
// Check if allowed action
|
// Check if allowed action
|
||||||
const [actionName, _] = step.uses.split("@");
|
const [actionName, _] = step.uses.split("@");
|
||||||
if (!enabledActionsSet.has(actionName.toLowerCase())) {
|
const actionNwo = actionName.split("/").slice(0, 2).join("/");
|
||||||
|
if (!enabledActionsSet.has(actionNwo.toLowerCase())) {
|
||||||
console.info(
|
console.info(
|
||||||
`Workflow ${workflowPath} uses '${actionName}' which is not supported for GHES.`
|
`Workflow ${workflowPath} uses '${actionName}' which is not supported for GHES.`
|
||||||
);
|
);
|
||||||
|
|||||||
Reference in New Issue
Block a user