@vaultcompass/conductor 0.18.0 → 0.18.1
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/README.md +13 -13
- package/dist/escape.d.ts +9 -0
- package/dist/escape.js +14 -0
- package/dist/osv-coverage.js +6 -5
- package/dist/policy-diff.d.ts +2 -9
- package/dist/policy-diff.js +4 -11
- package/dist/rule-ids.d.ts +41 -0
- package/dist/rule-ids.js +98 -0
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -76,7 +76,7 @@ jobs:
|
|
|
76
76
|
echo "ca69b3d3cd08f889a49dc0a383122f71cc528b83803671df5fd874d97485b108 $bin/osv-scanner" | sha256sum -c -
|
|
77
77
|
chmod +x "$bin/osv-scanner"
|
|
78
78
|
echo "$bin" >> "$GITHUB_PATH"
|
|
79
|
-
- uses: vaultcompasshq/conductor@
|
|
79
|
+
- uses: vaultcompasshq/conductor@717e6f5ff6acc934344c2ab49643ece615d5c9ff # v0.18.0
|
|
80
80
|
- uses: github/codeql-action/upload-sarif@9b3254085494b55a0f7c4c2b3d2d52cc712ce370 # v4.39.1
|
|
81
81
|
if: always()
|
|
82
82
|
with:
|
|
@@ -229,7 +229,7 @@ required.
|
|
|
229
229
|
|
|
230
230
|
Your terminal also shows one status line per gate, written to stderr so a
|
|
231
231
|
CI job log has a per-gate record even when the report goes to a file,
|
|
232
|
-
such as `conductor: gate dependencies (dep-guard 0.
|
|
232
|
+
such as `conductor: gate dependencies (dep-guard 0.20.0): ok, exit 0` or
|
|
233
233
|
a `skipped (deferred to stage ci)` line for a deferred gate. They carry
|
|
234
234
|
nothing the summary does not; to see only the summary, redirect stderr
|
|
235
235
|
(`conductor run --staged --stage commit 2>/dev/null` in the hook).
|
|
@@ -237,15 +237,15 @@ required.
|
|
|
237
237
|
A commit with a staged credential in it prints the full report and exits 1:
|
|
238
238
|
|
|
239
239
|
```
|
|
240
|
-
conductor 0.18.
|
|
240
|
+
conductor 0.18.1
|
|
241
241
|
verdict-token: blocked (1)
|
|
242
242
|
conductor run: 2 gate(s), 1 finding(s)
|
|
243
243
|
|
|
244
|
-
dependencies dep-guard 0.
|
|
244
|
+
dependencies dep-guard 0.20.0 exit 0 153ms via dep-guard on path
|
|
245
245
|
threshold medium suppressed 0 ignored 0
|
|
246
246
|
mode staged corpusBuiltAt 2026-09-20T06:16:40.340Z lockfileFormat npm online false lookups 0 skipped-by-deadline 0
|
|
247
247
|
|
|
248
|
-
secrets vault-guard 1.13.
|
|
248
|
+
secrets vault-guard 1.13.3 exit 1 105ms via vault-guard on path
|
|
249
249
|
BLOCKING critical vault-guard/anthropic jest.config.mjs:14:12
|
|
250
250
|
Possible secret of type 'anthropic'
|
|
251
251
|
threshold medium suppressed 0 ignored not reported
|
|
@@ -542,8 +542,8 @@ request being judged, and the version-pin protection described above
|
|
|
542
542
|
"protects nothing" against a tree that controls its own judge (the
|
|
543
543
|
validate step's own comment in `action.yml` says so in those words). A tag
|
|
544
544
|
moves when someone pushes it. Name this action by owner and the full commit
|
|
545
|
-
SHA instead. The recipes in this README name v0.
|
|
546
|
-
`vaultcompasshq/conductor@
|
|
545
|
+
SHA instead. The recipes in this README name v0.18.0 that way, as
|
|
546
|
+
`vaultcompasshq/conductor@717e6f5ff6acc934344c2ab49643ece615d5c9ff # v0.18.0`.
|
|
547
547
|
|
|
548
548
|
```yaml
|
|
549
549
|
name: guardrails
|
|
@@ -565,7 +565,7 @@ jobs:
|
|
|
565
565
|
with:
|
|
566
566
|
node-version: '22.23.4'
|
|
567
567
|
- id: conductor
|
|
568
|
-
uses: vaultcompasshq/conductor@
|
|
568
|
+
uses: vaultcompasshq/conductor@717e6f5ff6acc934344c2ab49643ece615d5c9ff # v0.18.0
|
|
569
569
|
with:
|
|
570
570
|
output: conductor.sarif
|
|
571
571
|
- uses: github/codeql-action/upload-sarif@9b3254085494b55a0f7c4c2b3d2d52cc712ce370 # v4.39.1
|
|
@@ -664,7 +664,7 @@ jobs:
|
|
|
664
664
|
# installs those itself, globally. Leave conductor-version unset so the
|
|
665
665
|
# umbrella is the default in the pinned action.yml.
|
|
666
666
|
- id: conductor
|
|
667
|
-
uses: vaultcompasshq/conductor@
|
|
667
|
+
uses: vaultcompasshq/conductor@717e6f5ff6acc934344c2ab49643ece615d5c9ff # v0.18.0
|
|
668
668
|
with:
|
|
669
669
|
output: conductor.sarif
|
|
670
670
|
# The gate versions are left out on purpose: the defaults travel
|
|
@@ -887,7 +887,7 @@ jobs:
|
|
|
887
887
|
# seconds) plus 300 seconds for the preview, rounded up. A step
|
|
888
888
|
# timeout below that can kill a full gitleaks scan and leave no verdict.
|
|
889
889
|
timeout-minutes: 30
|
|
890
|
-
uses: vaultcompasshq/conductor@
|
|
890
|
+
uses: vaultcompasshq/conductor@717e6f5ff6acc934344c2ab49643ece615d5c9ff # v0.18.0
|
|
891
891
|
with:
|
|
892
892
|
pr-comment: true
|
|
893
893
|
advisory: true
|
|
@@ -1023,7 +1023,7 @@ step and add `pull-requests: write` to the job's `permissions`:
|
|
|
1023
1023
|
# the pull request runs before the action in this job: no install, build
|
|
1024
1024
|
# or test step here; those belong in a separate job. ...
|
|
1025
1025
|
- id: conductor
|
|
1026
|
-
uses: vaultcompasshq/conductor@
|
|
1026
|
+
uses: vaultcompasshq/conductor@717e6f5ff6acc934344c2ab49643ece615d5c9ff # v0.18.0
|
|
1027
1027
|
with:
|
|
1028
1028
|
output: conductor.sarif
|
|
1029
1029
|
pr-comment: true
|
|
@@ -1102,12 +1102,12 @@ per pull request.
|
|
|
1102
1102
|
|
|
1103
1103
|
```yaml
|
|
1104
1104
|
- id: conductor-package-a
|
|
1105
|
-
uses: vaultcompasshq/conductor@
|
|
1105
|
+
uses: vaultcompasshq/conductor@717e6f5ff6acc934344c2ab49643ece615d5c9ff # v0.18.0
|
|
1106
1106
|
with:
|
|
1107
1107
|
pr-comment: true
|
|
1108
1108
|
pr-comment-marker: 'package-a'
|
|
1109
1109
|
- id: conductor-package-b
|
|
1110
|
-
uses: vaultcompasshq/conductor@
|
|
1110
|
+
uses: vaultcompasshq/conductor@717e6f5ff6acc934344c2ab49643ece615d5c9ff # v0.18.0
|
|
1111
1111
|
with:
|
|
1112
1112
|
pr-comment: true
|
|
1113
1113
|
pr-comment-marker: 'package-b'
|
package/dist/escape.d.ts
ADDED
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Every character outside printable ASCII as a \uXXXX escape (an astral
|
|
3
|
+
* character as its two surrogate escapes), so head-chosen text cannot smuggle
|
|
4
|
+
* a bidi override or a zero-width character into the report. Used for a head
|
|
5
|
+
* policy value (renderValue, src/policy-diff.ts), and for every preview line
|
|
6
|
+
* (cleanPreviewLine, src/gate-runner.ts), whose gate text the head's own
|
|
7
|
+
* control files can choose (audit 2026-10-27, N3).
|
|
8
|
+
*/
|
|
9
|
+
export declare function escapeNonAscii(text: string): string;
|
package/dist/escape.js
ADDED
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
// Pure text sanitizers with no dependency on any other module here, so a
|
|
2
|
+
// renderer or the gate runner can import them without importing the policy
|
|
3
|
+
// diff or anything heavier.
|
|
4
|
+
/**
|
|
5
|
+
* Every character outside printable ASCII as a \uXXXX escape (an astral
|
|
6
|
+
* character as its two surrogate escapes), so head-chosen text cannot smuggle
|
|
7
|
+
* a bidi override or a zero-width character into the report. Used for a head
|
|
8
|
+
* policy value (renderValue, src/policy-diff.ts), and for every preview line
|
|
9
|
+
* (cleanPreviewLine, src/gate-runner.ts), whose gate text the head's own
|
|
10
|
+
* control files can choose (audit 2026-10-27, N3).
|
|
11
|
+
*/
|
|
12
|
+
export function escapeNonAscii(text) {
|
|
13
|
+
return text.replace(/[^\x20-\x7e]/g, (ch) => `\\u${ch.charCodeAt(0).toString(16).padStart(4, '0')}`);
|
|
14
|
+
}
|
package/dist/osv-coverage.js
CHANGED
|
@@ -9,6 +9,7 @@ import path from 'node:path';
|
|
|
9
9
|
import { runGit } from './git.js';
|
|
10
10
|
import { osvLockfileKind } from './products.js';
|
|
11
11
|
import { checkRequirementsPins, describePinProblem, } from './requirements-pin.js';
|
|
12
|
+
import { LOCKFILE_NO_LONGER_SCANNED, REQUIREMENTS_DIRECT_ONLY, REQUIREMENTS_NOT_PINNED, REQUIREMENTS_NOT_SCANNED, } from './rule-ids.js';
|
|
12
13
|
import { readFileAtRefBytes } from './trust-base.js';
|
|
13
14
|
/**
|
|
14
15
|
* A reader over the head: a TRACKED regular file on disk. On disk because
|
|
@@ -102,7 +103,7 @@ export function selectOsvInputs(args) {
|
|
|
102
103
|
suffix = ' Newly pinned in this pull request.';
|
|
103
104
|
}
|
|
104
105
|
}
|
|
105
|
-
notes.push({ code:
|
|
106
|
+
notes.push({ code: REQUIREMENTS_DIRECT_ONLY, message: `${file}: ${DIRECT_ONLY}${suffix}` });
|
|
106
107
|
continue;
|
|
107
108
|
}
|
|
108
109
|
if (base !== null) {
|
|
@@ -116,18 +117,18 @@ export function selectOsvInputs(args) {
|
|
|
116
117
|
? 'Its copy on the base is pinned, so the file stays scanned under the ratchet; the lines named are read as written.'
|
|
117
118
|
: 'Its copy on the base could not be read, so the file stays scanned; the lines named are read as written.';
|
|
118
119
|
diagnostics.push({
|
|
119
|
-
code:
|
|
120
|
+
code: REQUIREMENTS_NOT_PINNED,
|
|
120
121
|
message: `${file} is scanned although ${lines}. ${why}`,
|
|
121
122
|
});
|
|
122
123
|
notes.push({
|
|
123
|
-
code:
|
|
124
|
+
code: REQUIREMENTS_DIRECT_ONLY,
|
|
124
125
|
message: `${file}: ${DIRECT_ONLY} ${baseCheck.pinned ? 'Pinned on the base; scanned under the ratchet.' : 'Base copy unreadable; scanned under the ratchet.'}`,
|
|
125
126
|
});
|
|
126
127
|
continue;
|
|
127
128
|
}
|
|
128
129
|
}
|
|
129
130
|
notScanned.push(file);
|
|
130
|
-
diagnostics.push({ code:
|
|
131
|
+
diagnostics.push({ code: REQUIREMENTS_NOT_SCANNED, message: notScannedMessage(file, headCheck) });
|
|
131
132
|
}
|
|
132
133
|
return { handed: handed.sort(), notScanned, diagnostics, notes, closures };
|
|
133
134
|
}
|
|
@@ -142,7 +143,7 @@ export function selectOsvInputs(args) {
|
|
|
142
143
|
*/
|
|
143
144
|
export function noLongerScanned(repoRoot, ref, tracked) {
|
|
144
145
|
return (noLongerScannedFiles(repoRoot, ref, tracked) ?? []).map((file) => ({
|
|
145
|
-
code:
|
|
146
|
+
code: LOCKFILE_NO_LONGER_SCANNED,
|
|
146
147
|
message: `${file} is tracked on the base and not in this pull request, so it is no longer scanned ` +
|
|
147
148
|
'(by either run). Its removal is visible in the diff.',
|
|
148
149
|
}));
|
package/dist/policy-diff.d.ts
CHANGED
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { escapeNonAscii } from './escape.js';
|
|
1
2
|
import type { GateRole, Policy } from './policy.js';
|
|
2
3
|
export interface PolicyKeyChange {
|
|
3
4
|
/** The gate role the key belongs to, or null for a key outside any gate. */
|
|
@@ -14,15 +15,7 @@ export declare const HEAD_POLICY_KEY = ".guardrails.yaml";
|
|
|
14
15
|
* file's. A null head (absent or unparseable) is one change that says so.
|
|
15
16
|
*/
|
|
16
17
|
export declare function diffPolicies(base: Policy, head: Policy | null): PolicyKeyChange[];
|
|
17
|
-
|
|
18
|
-
* Every character outside printable ASCII as a \uXXXX escape (an astral
|
|
19
|
-
* character as its two surrogate escapes), so head-chosen text cannot smuggle
|
|
20
|
-
* a bidi override or a zero-width character into the report. Used for a head
|
|
21
|
-
* policy value here, and for every preview line (cleanPreviewLine,
|
|
22
|
-
* src/gate-runner.ts), whose gate text the head's own control files can
|
|
23
|
-
* choose (audit 2026-10-27, N3).
|
|
24
|
-
*/
|
|
25
|
-
export declare function escapeNonAscii(text: string): string;
|
|
18
|
+
export { escapeNonAscii };
|
|
26
19
|
/** One proposal line for one changed key. */
|
|
27
20
|
export declare function policyChangeLine(change: PolicyKeyChange): string;
|
|
28
21
|
/**
|
package/dist/policy-diff.js
CHANGED
|
@@ -8,6 +8,7 @@
|
|
|
8
8
|
// verdict. The one place a head value goes further is `previewPolicy`, which
|
|
9
9
|
// takes only `enabled`, `stage` and `enforce` from it for the preview under
|
|
10
10
|
// the proposed rules, a run that decides nothing.
|
|
11
|
+
import { escapeNonAscii } from './escape.js';
|
|
11
12
|
import { GATE_ROLES, PRODUCT_FOR_ROLE, parsePolicy } from './policy.js';
|
|
12
13
|
export const HEAD_POLICY_KEY = '.guardrails.yaml';
|
|
13
14
|
const MAX_VALUE_LENGTH = 80;
|
|
@@ -92,17 +93,9 @@ export function diffPolicies(base, head) {
|
|
|
92
93
|
}
|
|
93
94
|
return changes;
|
|
94
95
|
}
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
* a bidi override or a zero-width character into the report. Used for a head
|
|
99
|
-
* policy value here, and for every preview line (cleanPreviewLine,
|
|
100
|
-
* src/gate-runner.ts), whose gate text the head's own control files can
|
|
101
|
-
* choose (audit 2026-10-27, N3).
|
|
102
|
-
*/
|
|
103
|
-
export function escapeNonAscii(text) {
|
|
104
|
-
return text.replace(/[^\x20-\x7e]/g, (ch) => `\\u${ch.charCodeAt(0).toString(16).padStart(4, '0')}`);
|
|
105
|
-
}
|
|
96
|
+
// escapeNonAscii lives in src/escape.ts, a dependency-free leaf; it is
|
|
97
|
+
// re-exported here so existing importers keep working unchanged.
|
|
98
|
+
export { escapeNonAscii };
|
|
106
99
|
function renderValue(value) {
|
|
107
100
|
if (value === undefined)
|
|
108
101
|
return '(absent)';
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
export type RuleIdClass = 'finding' | 'diagnostic' | 'notification';
|
|
2
|
+
export declare const GATE_MISSING = "conductor/gate-missing";
|
|
3
|
+
export declare const GATE_FAILED = "conductor/gate-failed";
|
|
4
|
+
export declare const GATE_OUTPUT_UNPARSEABLE = "conductor/gate-output-unparseable";
|
|
5
|
+
export declare const INTENT_GATE_BLOCKED = "intent-guard/gate-blocked";
|
|
6
|
+
export declare const BLOCKING_COUNT_MISMATCH = "conductor/blocking-count-mismatch";
|
|
7
|
+
export declare const BLOCKING_THRESHOLD_UNKNOWN = "conductor/blocking-threshold-unknown";
|
|
8
|
+
export declare const NOTHING_TO_SCAN = "conductor/nothing-to-scan";
|
|
9
|
+
export declare const LOCKFILES_EMPTY = "conductor/lockfiles-empty";
|
|
10
|
+
export declare const LOCKFILE_NO_LONGER_SCANNED = "conductor/lockfile-no-longer-scanned";
|
|
11
|
+
export declare const MANIFESTS_NOT_HANDED = "conductor/manifests-not-handed";
|
|
12
|
+
export declare const OPTION_OVERRIDDEN = "conductor/option-overridden";
|
|
13
|
+
export declare const BASE_COMPARISON_UNAVAILABLE = "conductor/base-comparison-unavailable";
|
|
14
|
+
export declare const REQUIREMENTS_DIRECT_ONLY = "conductor/requirements-direct-only";
|
|
15
|
+
export declare const REQUIREMENTS_NOT_PINNED = "conductor/requirements-not-pinned";
|
|
16
|
+
export declare const REQUIREMENTS_NOT_SCANNED = "conductor/requirements-not-scanned";
|
|
17
|
+
export declare const INTENT_WARNING = "intent-guard/warning";
|
|
18
|
+
export declare const GATE_DEFERRED = "conductor/gate-deferred";
|
|
19
|
+
export declare const GATE_EXCLUDED = "conductor/gate-excluded";
|
|
20
|
+
export declare const GATE_NOT_ENFORCED = "conductor/gate-not-enforced";
|
|
21
|
+
export declare const TREE_UNCHANGED = "conductor/tree-unchanged";
|
|
22
|
+
export declare const BASE_MOVED = "conductor/base-moved";
|
|
23
|
+
export declare const CONTROL_CHANGE_PROPOSED = "conductor/control-change-proposed";
|
|
24
|
+
export declare const PREVIEW_UNDER_PROPOSED_RULES = "conductor/preview-under-proposed-rules";
|
|
25
|
+
export declare const TRUST_BASE_REFUSED = "conductor/trust-base-refused";
|
|
26
|
+
export declare const TRUST_BASE_NOT_PASSED = "conductor/trust-base-not-passed";
|
|
27
|
+
export declare const GATE_PROGRAM_REFUSED = "conductor/gate-program-refused";
|
|
28
|
+
export declare const NODE_MODULES_SKIPPED = "conductor/node-modules-skipped";
|
|
29
|
+
export declare const VERSION_SKEW = "conductor/version-skew";
|
|
30
|
+
export declare const OPTION_IS_GATE_OWN = "conductor/option-is-gate-own";
|
|
31
|
+
export declare const INTENT_LEGACY_STATE_DIR = "intent-guard/legacy-state-dir";
|
|
32
|
+
export declare const INTENT_NO_CONTRACT = "intent-guard/no-contract";
|
|
33
|
+
export declare const INTENT_CONTRACT_WAIVED = "intent-guard/contract-waived";
|
|
34
|
+
export declare const INTENT_SPEC_AMBIGUOUS = "intent-guard/spec-ambiguous";
|
|
35
|
+
export declare const INTENT_SPEC_WEAK_MATCH = "intent-guard/spec-weak-match";
|
|
36
|
+
export declare const INTENT_EMPTY_CHANGE_SET = "intent-guard/empty-change-set";
|
|
37
|
+
/** Every id above, with its class. */
|
|
38
|
+
export declare const RULE_IDS: ReadonlyArray<{
|
|
39
|
+
id: string;
|
|
40
|
+
class: RuleIdClass;
|
|
41
|
+
}>;
|
package/dist/rule-ids.js
ADDED
|
@@ -0,0 +1,98 @@
|
|
|
1
|
+
// Every rule id the umbrella writes, as a named constant with its class.
|
|
2
|
+
// tests/rule-ids.test.ts holds this to every id literal under src in any
|
|
3
|
+
// quote style, every template id of the form product/suffix, and every
|
|
4
|
+
// skip reason that becomes the second half of an id.
|
|
5
|
+
//
|
|
6
|
+
// These strings are frozen public surface: they are SARIF rule and
|
|
7
|
+
// notification ids, and the codes of the umbrella's diagnostics, and a
|
|
8
|
+
// consumer matches on them. A value here never changes; a new id is added,
|
|
9
|
+
// never renamed in place.
|
|
10
|
+
//
|
|
11
|
+
// The class says what kind of record carries the id when the umbrella
|
|
12
|
+
// writes it, not where a renderer later files it:
|
|
13
|
+
// - finding: a Finding the umbrella raises itself (src/normalize.ts).
|
|
14
|
+
// - diagnostic: a Diagnostic record, an umbrella diagnostic or a run note,
|
|
15
|
+
// which never counts toward the exit code.
|
|
16
|
+
// - notification: a SARIF tool-execution notification on the umbrella's run.
|
|
17
|
+
//
|
|
18
|
+
// Call sites are moving to these constants one file at a time; a site that
|
|
19
|
+
// still writes the literal must write exactly the value here.
|
|
20
|
+
// Findings.
|
|
21
|
+
export const GATE_MISSING = 'conductor/gate-missing';
|
|
22
|
+
export const GATE_FAILED = 'conductor/gate-failed';
|
|
23
|
+
export const GATE_OUTPUT_UNPARSEABLE = 'conductor/gate-output-unparseable';
|
|
24
|
+
export const INTENT_GATE_BLOCKED = 'intent-guard/gate-blocked';
|
|
25
|
+
// Diagnostics.
|
|
26
|
+
export const BLOCKING_COUNT_MISMATCH = 'conductor/blocking-count-mismatch';
|
|
27
|
+
export const BLOCKING_THRESHOLD_UNKNOWN = 'conductor/blocking-threshold-unknown';
|
|
28
|
+
export const NOTHING_TO_SCAN = 'conductor/nothing-to-scan';
|
|
29
|
+
export const LOCKFILES_EMPTY = 'conductor/lockfiles-empty';
|
|
30
|
+
export const LOCKFILE_NO_LONGER_SCANNED = 'conductor/lockfile-no-longer-scanned';
|
|
31
|
+
export const MANIFESTS_NOT_HANDED = 'conductor/manifests-not-handed';
|
|
32
|
+
export const OPTION_OVERRIDDEN = 'conductor/option-overridden';
|
|
33
|
+
export const BASE_COMPARISON_UNAVAILABLE = 'conductor/base-comparison-unavailable';
|
|
34
|
+
export const REQUIREMENTS_DIRECT_ONLY = 'conductor/requirements-direct-only';
|
|
35
|
+
export const REQUIREMENTS_NOT_PINNED = 'conductor/requirements-not-pinned';
|
|
36
|
+
export const REQUIREMENTS_NOT_SCANNED = 'conductor/requirements-not-scanned';
|
|
37
|
+
export const INTENT_WARNING = 'intent-guard/warning';
|
|
38
|
+
// Notifications.
|
|
39
|
+
export const GATE_DEFERRED = 'conductor/gate-deferred';
|
|
40
|
+
export const GATE_EXCLUDED = 'conductor/gate-excluded';
|
|
41
|
+
export const GATE_NOT_ENFORCED = 'conductor/gate-not-enforced';
|
|
42
|
+
export const TREE_UNCHANGED = 'conductor/tree-unchanged';
|
|
43
|
+
export const BASE_MOVED = 'conductor/base-moved';
|
|
44
|
+
export const CONTROL_CHANGE_PROPOSED = 'conductor/control-change-proposed';
|
|
45
|
+
export const PREVIEW_UNDER_PROPOSED_RULES = 'conductor/preview-under-proposed-rules';
|
|
46
|
+
export const TRUST_BASE_REFUSED = 'conductor/trust-base-refused';
|
|
47
|
+
export const TRUST_BASE_NOT_PASSED = 'conductor/trust-base-not-passed';
|
|
48
|
+
export const GATE_PROGRAM_REFUSED = 'conductor/gate-program-refused';
|
|
49
|
+
export const NODE_MODULES_SKIPPED = 'conductor/node-modules-skipped';
|
|
50
|
+
export const VERSION_SKEW = 'conductor/version-skew';
|
|
51
|
+
export const OPTION_IS_GATE_OWN = 'conductor/option-is-gate-own';
|
|
52
|
+
export const INTENT_LEGACY_STATE_DIR = 'intent-guard/legacy-state-dir';
|
|
53
|
+
// These five are written in src/output-sarif.ts as a template on the gate's
|
|
54
|
+
// product, which only an intent gate reaches, so the value written is the
|
|
55
|
+
// one here. The skip reasons are SkippedGate.reason in src/run.ts.
|
|
56
|
+
export const INTENT_NO_CONTRACT = 'intent-guard/no-contract';
|
|
57
|
+
export const INTENT_CONTRACT_WAIVED = 'intent-guard/contract-waived';
|
|
58
|
+
export const INTENT_SPEC_AMBIGUOUS = 'intent-guard/spec-ambiguous';
|
|
59
|
+
export const INTENT_SPEC_WEAK_MATCH = 'intent-guard/spec-weak-match';
|
|
60
|
+
export const INTENT_EMPTY_CHANGE_SET = 'intent-guard/empty-change-set';
|
|
61
|
+
/** Every id above, with its class. */
|
|
62
|
+
export const RULE_IDS = [
|
|
63
|
+
{ id: GATE_MISSING, class: 'finding' },
|
|
64
|
+
{ id: GATE_FAILED, class: 'finding' },
|
|
65
|
+
{ id: GATE_OUTPUT_UNPARSEABLE, class: 'finding' },
|
|
66
|
+
{ id: INTENT_GATE_BLOCKED, class: 'finding' },
|
|
67
|
+
{ id: BLOCKING_COUNT_MISMATCH, class: 'diagnostic' },
|
|
68
|
+
{ id: BLOCKING_THRESHOLD_UNKNOWN, class: 'diagnostic' },
|
|
69
|
+
{ id: NOTHING_TO_SCAN, class: 'diagnostic' },
|
|
70
|
+
{ id: LOCKFILES_EMPTY, class: 'diagnostic' },
|
|
71
|
+
{ id: LOCKFILE_NO_LONGER_SCANNED, class: 'diagnostic' },
|
|
72
|
+
{ id: MANIFESTS_NOT_HANDED, class: 'diagnostic' },
|
|
73
|
+
{ id: OPTION_OVERRIDDEN, class: 'diagnostic' },
|
|
74
|
+
{ id: BASE_COMPARISON_UNAVAILABLE, class: 'diagnostic' },
|
|
75
|
+
{ id: REQUIREMENTS_DIRECT_ONLY, class: 'diagnostic' },
|
|
76
|
+
{ id: REQUIREMENTS_NOT_PINNED, class: 'diagnostic' },
|
|
77
|
+
{ id: REQUIREMENTS_NOT_SCANNED, class: 'diagnostic' },
|
|
78
|
+
{ id: INTENT_WARNING, class: 'diagnostic' },
|
|
79
|
+
{ id: GATE_DEFERRED, class: 'notification' },
|
|
80
|
+
{ id: GATE_EXCLUDED, class: 'notification' },
|
|
81
|
+
{ id: GATE_NOT_ENFORCED, class: 'notification' },
|
|
82
|
+
{ id: TREE_UNCHANGED, class: 'notification' },
|
|
83
|
+
{ id: BASE_MOVED, class: 'notification' },
|
|
84
|
+
{ id: CONTROL_CHANGE_PROPOSED, class: 'notification' },
|
|
85
|
+
{ id: PREVIEW_UNDER_PROPOSED_RULES, class: 'notification' },
|
|
86
|
+
{ id: TRUST_BASE_REFUSED, class: 'notification' },
|
|
87
|
+
{ id: TRUST_BASE_NOT_PASSED, class: 'notification' },
|
|
88
|
+
{ id: GATE_PROGRAM_REFUSED, class: 'notification' },
|
|
89
|
+
{ id: NODE_MODULES_SKIPPED, class: 'notification' },
|
|
90
|
+
{ id: VERSION_SKEW, class: 'notification' },
|
|
91
|
+
{ id: OPTION_IS_GATE_OWN, class: 'notification' },
|
|
92
|
+
{ id: INTENT_LEGACY_STATE_DIR, class: 'notification' },
|
|
93
|
+
{ id: INTENT_NO_CONTRACT, class: 'notification' },
|
|
94
|
+
{ id: INTENT_CONTRACT_WAIVED, class: 'notification' },
|
|
95
|
+
{ id: INTENT_SPEC_AMBIGUOUS, class: 'notification' },
|
|
96
|
+
{ id: INTENT_SPEC_WEAK_MATCH, class: 'notification' },
|
|
97
|
+
{ id: INTENT_EMPTY_CHANGE_SET, class: 'notification' },
|
|
98
|
+
];
|