no-mistakes 0.36.2 → 0.37.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "no-mistakes",
3
- "version": "0.36.2",
3
+ "version": "0.37.0",
4
4
  "description": "Static codebase analysis tools for TS/JS dependencies, dependents, and symbols",
5
5
  "license": "MIT",
6
6
  "repository": {
@@ -6,6 +6,7 @@
6
6
  // array/diagnostic sort order are part of the contract).
7
7
 
8
8
  import type { ArtifactDeclaration, ArtifactEdge } from "./workflow-topology-artifact-types";
9
+ import type { ResolvedPermissions } from "./ci-types";
9
10
 
10
11
  export * from "./workflow-topology-artifact-types";
11
12
  export * from "./workflow-topology-index-types";
@@ -33,6 +34,7 @@ export type JsonValue =
33
34
  | { [key: string]: JsonValue };
34
35
 
35
36
  export type ConcurrencyValue = boolean | string;
37
+ export type WorkflowRunsOn = string | string[] | { group: string; labels?: string | string[] };
36
38
 
37
39
  export interface WorkflowConcurrency {
38
40
  raw: { group: string; cancelInProgress?: ConcurrencyValue; queue?: string };
@@ -74,6 +76,10 @@ export type WorkflowNode = {
74
76
  triggers: WorkflowTrigger[];
75
77
  jobIds: string[];
76
78
  concurrency?: WorkflowConcurrency;
79
+ /** Workflow-scoped environment declarations, without expression evaluation. */
80
+ env?: Record<string, string>;
81
+ /** Static `secrets.*` names referenced directly at workflow scope. */
82
+ secretReferences?: string[];
77
83
  } & (
78
84
  | { callable: true; workflowCall: WorkflowCallContract }
79
85
  | { callable: false; workflowCall?: undefined }
@@ -88,6 +94,14 @@ export interface WorkflowStep {
88
94
  uses?: string;
89
95
  /** Present when this step is an `actions/{upload,download}-artifact` action. */
90
96
  artifact?: ArtifactDeclaration;
97
+ /** Raw authored shell command; expressions are not evaluated. */
98
+ run?: string;
99
+ /** Raw scalar action inputs; expressions are not evaluated. */
100
+ with?: Record<string, JsonScalar>;
101
+ /** Step-scoped environment declarations, without expression evaluation. */
102
+ env?: Record<string, string>;
103
+ /** Static `secrets.*` names referenced directly by this step. */
104
+ secretReferences?: string[];
91
105
  }
92
106
 
93
107
  export interface WorkflowJobNode {
@@ -100,6 +114,20 @@ export interface WorkflowJobNode {
100
114
  matrix?: JsonValue;
101
115
  concurrency?: WorkflowConcurrency;
102
116
  steps: WorkflowStep[];
117
+ /** Environment name from scalar or `{ name }` job syntax. */
118
+ environment?: string;
119
+ /** Declared timeout; absent jobs use GitHub's effective 360-minute default. */
120
+ timeoutMinutes?: number;
121
+ /** Declared runner label, ordered label list, or runner-group selection. */
122
+ runsOn?: WorkflowRunsOn;
123
+ /** Effective permissions, identical to the `ciImpact()` job shape. */
124
+ permissions: ResolvedPermissions;
125
+ /** Job output declarations, without expression evaluation. */
126
+ outputs?: Record<string, string>;
127
+ /** Job-scoped environment declarations, without expression evaluation. */
128
+ env?: Record<string, string>;
129
+ /** Static `secrets.*` names referenced directly by this job. */
130
+ secretReferences?: string[];
103
131
  }
104
132
 
105
133
  export interface NeedsEdge {