@@ -29,11 +29,9 @@ type WorkflowInputs = Partial<Record<KnownInputName, WorkflowInput>>;
2929/**
3030 * Represents PR check specifications.
3131 */
32- interface Specification {
32+ interface Specification extends JobSpecification {
3333 /** The display name for the check. */
3434 name : string ;
35- /** The workflow steps specific to this check. */
36- steps : any [ ] ;
3735 /** Workflow-level input definitions forwarded to `workflow_dispatch`/`workflow_call`. */
3836 inputs ?: Record < string , WorkflowInput > ;
3937 /** CodeQL bundle versions to test against. Defaults to `DEFAULT_TEST_VERSIONS`. */
@@ -45,25 +43,31 @@ interface Specification {
4543 /** Values for the `analysis-kinds` matrix dimension. */
4644 analysisKinds ?: string [ ] ;
4745
48- installNode ?: boolean ;
49- installGo ?: boolean ;
50- installJava ?: boolean ;
51- installPython ?: boolean ;
52- installDotNet ?: boolean ;
53- installYq ?: boolean ;
54-
5546 /** Container image configuration for the job. */
5647 container ?: any ;
5748 /** Service containers for the job. */
5849 services ?: any ;
5950
51+ /** If set, this check is part of a named collection that gets its own caller workflow. */
52+ collection ?: string ;
53+ }
54+
55+ /** Represents job specifications. */
56+ interface JobSpecification {
6057 /** Custom permissions override for the job. */
6158 permissions ?: Record < string , string > ;
6259 /** Extra environment variables for the job. */
6360 env ?: Record < string , any > ;
6461
65- /** If set, this check is part of a named collection that gets its own caller workflow. */
66- collection ?: string ;
62+ /** The workflow steps specific to this check. */
63+ steps : any [ ] ;
64+
65+ installNode ?: boolean ;
66+ installGo ?: boolean ;
67+ installJava ?: boolean ;
68+ installPython ?: boolean ;
69+ installDotNet ?: boolean ;
70+ installYq ?: boolean ;
6771}
6872
6973// The default set of CodeQL Bundle versions to use for the PR checks.
0 commit comments