Merge pull request #1402 from actions/fix-enterprise-exclusions
Fix some workflows not being excluded from Enterprise syncing.
This commit is contained in:
@@ -3,7 +3,6 @@
|
|||||||
"creator": "Detekt",
|
"creator": "Detekt",
|
||||||
"description": "Static code analysis for Kotlin",
|
"description": "Static code analysis for Kotlin",
|
||||||
"iconName": "detekt",
|
"iconName": "detekt",
|
||||||
"categories": ["Code Scanning", "Kotlin"]
|
"categories": ["Code Scanning", "Kotlin"],
|
||||||
|
"enterprise": false
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
@@ -21,6 +21,8 @@ interface WorkflowProperties {
|
|||||||
categories: string[] | null;
|
categories: string[] | null;
|
||||||
|
|
||||||
creator?: string;
|
creator?: string;
|
||||||
|
|
||||||
|
enterprise?: boolean;
|
||||||
}
|
}
|
||||||
|
|
||||||
interface WorkflowsCheckResult {
|
interface WorkflowsCheckResult {
|
||||||
@@ -59,6 +61,7 @@ async function checkWorkflows(
|
|||||||
|
|
||||||
const enabled =
|
const enabled =
|
||||||
!isPartnerWorkflow &&
|
!isPartnerWorkflow &&
|
||||||
|
workflowProperties.enterprise !== false &&
|
||||||
(await checkWorkflow(workflowFilePath, enabledActions));
|
(await checkWorkflow(workflowFilePath, enabledActions));
|
||||||
|
|
||||||
const workflowDesc: WorkflowDesc = {
|
const workflowDesc: WorkflowDesc = {
|
||||||
|
|||||||
Reference in New Issue
Block a user