Merge pull request #1402 from actions/fix-enterprise-exclusions

Fix some workflows not being excluded from Enterprise syncing.
This commit is contained in:
Chris Gavin
2022-02-11 17:02:20 +00:00
committed by GitHub
2 changed files with 5 additions and 3 deletions
@@ -3,7 +3,6 @@
"creator": "Detekt",
"description": "Static code analysis for Kotlin",
"iconName": "detekt",
"categories": ["Code Scanning", "Kotlin"]
"categories": ["Code Scanning", "Kotlin"],
"enterprise": false
}
+3
View File
@@ -21,6 +21,8 @@ interface WorkflowProperties {
categories: string[] | null;
creator?: string;
enterprise?: boolean;
}
interface WorkflowsCheckResult {
@@ -59,6 +61,7 @@ async function checkWorkflows(
const enabled =
!isPartnerWorkflow &&
workflowProperties.enterprise !== false &&
(await checkWorkflow(workflowFilePath, enabledActions));
const workflowDesc: WorkflowDesc = {