@microsoft/sarif-multitool-darwin 5.0.1 → 5.0.2
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/Sarif.Converters.pdb +0 -0
- package/Sarif.Driver.pdb +0 -0
- package/Sarif.Multitool +0 -0
- package/Sarif.Multitool.Library.pdb +0 -0
- package/Sarif.Multitool.Library.xml +145 -0
- package/Sarif.Multitool.pdb +0 -0
- package/Sarif.WorkItems.pdb +0 -0
- package/Sarif.pdb +0 -0
- package/WorkItems.pdb +0 -0
- package/package.json +1 -1
package/Sarif.Converters.pdb
CHANGED
|
Binary file
|
package/Sarif.Driver.pdb
CHANGED
|
Binary file
|
package/Sarif.Multitool
CHANGED
|
Binary file
|
|
Binary file
|
|
@@ -183,6 +183,18 @@
|
|
|
183
183
|
</list>
|
|
184
184
|
</remarks>
|
|
185
185
|
</member>
|
|
186
|
+
<member name="P:Microsoft.CodeAnalysis.Sarif.Multitool.AdoPipelineContext.RepositoryUri">
|
|
187
|
+
<summary>
|
|
188
|
+
Absolute URL identifier of the source repository. Lifted from
|
|
189
|
+
<c>BUILD_REPOSITORY_URI</c> when present and well-formed; otherwise null.
|
|
190
|
+
</summary>
|
|
191
|
+
</member>
|
|
192
|
+
<member name="P:Microsoft.CodeAnalysis.Sarif.Multitool.AdoPipelineContext.RevisionId">
|
|
193
|
+
<summary>
|
|
194
|
+
The commit identifier (typically a 40-character SHA-1) the pipeline is building.
|
|
195
|
+
Lifted from <c>BUILD_SOURCEVERSION</c> when present and well-formed; otherwise null.
|
|
196
|
+
</summary>
|
|
197
|
+
</member>
|
|
186
198
|
<member name="M:Microsoft.CodeAnalysis.Sarif.Multitool.AdoPipelineContext.TryDetect(Microsoft.CodeAnalysis.Sarif.Multitool.IEnvironmentVariableGetter,Microsoft.CodeAnalysis.Sarif.Multitool.AdoPipelineContext@,System.String@)">
|
|
187
199
|
<summary>
|
|
188
200
|
Reads ADO predefined environment variables via <paramref name="environment"/> and
|
|
@@ -229,6 +241,24 @@
|
|
|
229
241
|
without constructing a typed <see cref="T:Microsoft.CodeAnalysis.Sarif.Run"/>.
|
|
230
242
|
</summary>
|
|
231
243
|
</member>
|
|
244
|
+
<member name="P:Microsoft.CodeAnalysis.Sarif.Multitool.AdoPipelineContext.HasVcpFields">
|
|
245
|
+
<summary>
|
|
246
|
+
True when this context carries at least one <c>versionControlProvenance</c>
|
|
247
|
+
field (repository URI, revision id, or branch ref) lifted from the pipeline
|
|
248
|
+
environment. False indicates the VCP enrichment path is a no-op for this
|
|
249
|
+
context and callers should leave any caller-supplied VCP untouched.
|
|
250
|
+
</summary>
|
|
251
|
+
</member>
|
|
252
|
+
<member name="M:Microsoft.CodeAnalysis.Sarif.Multitool.AdoPipelineContext.GetVcpFieldValues">
|
|
253
|
+
<summary>
|
|
254
|
+
Returns the non-null <c>versionControlProvenance</c> field name/value pairs
|
|
255
|
+
for this pipeline context. Pairs are ordered <c>repositoryUri</c>,
|
|
256
|
+
<c>revisionId</c>, <c>branch</c>; absent fields are omitted (the caller
|
|
257
|
+
should treat the list as the set we know about). Exposed so JSON-direct
|
|
258
|
+
callers can enrich without constructing a typed
|
|
259
|
+
<see cref="T:Microsoft.CodeAnalysis.Sarif.VersionControlDetails"/>.
|
|
260
|
+
</summary>
|
|
261
|
+
</member>
|
|
232
262
|
<member name="T:Microsoft.CodeAnalysis.Sarif.Multitool.EmitEventLogHelpers">
|
|
233
263
|
<summary>
|
|
234
264
|
Shared plumbing for the emit verb chain (<c>emit-init-run</c>, <c>add-result</c>,
|
|
@@ -374,6 +404,48 @@
|
|
|
374
404
|
non-typed fields are durable only up to that boundary.)
|
|
375
405
|
</summary>
|
|
376
406
|
</member>
|
|
407
|
+
<member name="M:Microsoft.CodeAnalysis.Sarif.Multitool.EmitInitRunCommand.TryStampVcp(Newtonsoft.Json.Linq.JObject,System.Uri,System.String,System.String,System.String@)">
|
|
408
|
+
<summary>
|
|
409
|
+
Enriches <c>versionControlProvenance</c> on the JSON payload with the resolved
|
|
410
|
+
repository URI / revision id / branch ref fields (sourced from the pipeline
|
|
411
|
+
environment via <see cref="M:Microsoft.CodeAnalysis.Sarif.Multitool.EmitInitRunCommand.TryResolveVcpFields(Microsoft.CodeAnalysis.Sarif.Multitool.AdoPipelineContext,Microsoft.CodeAnalysis.Sarif.Multitool.GitHubActionsContext,System.Uri@,System.String@,System.String@,System.String@)"/>). Three input shapes:
|
|
412
|
+
<list type="bullet">
|
|
413
|
+
<item>VCP absent or empty array → append a synthesized entry with the fields we have
|
|
414
|
+
(only when a repository URI is known; branch/revision without a repo URI anchor is
|
|
415
|
+
informationally thin and cannot bind to a repo downstream).</item>
|
|
416
|
+
<item>VCP contains exactly one entry → enrich missing fields; fail on disagreement.</item>
|
|
417
|
+
<item>VCP contains multiple entries → leave untouched (caller declared a multi-repo
|
|
418
|
+
shape; we don't pick which entry names the pipeline's source repo).</item>
|
|
419
|
+
</list>
|
|
420
|
+
<para>This method is the env-driven stamper. The verb supports a layered set of
|
|
421
|
+
VCP sources:</para>
|
|
422
|
+
<list type="number">
|
|
423
|
+
<item>ADO pipeline environment — <c>TF_BUILD=True</c> plus the
|
|
424
|
+
<c>BUILD_REPOSITORY_URI</c> / <c>BUILD_SOURCEVERSION</c> /
|
|
425
|
+
<c>BUILD_SOURCEBRANCH</c> vars supply repo URI / revision / branch directly.</item>
|
|
426
|
+
<item>GitHub Actions environment — <c>GITHUB_ACTIONS=true</c> plus
|
|
427
|
+
<c>GITHUB_SERVER_URL</c> / <c>GITHUB_REPOSITORY</c> / <c>GITHUB_SHA</c> /
|
|
428
|
+
<c>GITHUB_REF</c> supply the same fields. When both ADO and GHA vars are
|
|
429
|
+
populated, the sources must agree on every field they both publish.</item>
|
|
430
|
+
<item>Caller-supplied — if neither CI env is present, the producer populates
|
|
431
|
+
<c>versionControlProvenance</c> entries directly in the run-header JSON and the
|
|
432
|
+
verb passes them through after shape validation. Callers running outside a
|
|
433
|
+
supported CI environment can shell out to <c>git</c> themselves and either
|
|
434
|
+
populate the entry directly or stage the corresponding env vars before invoking
|
|
435
|
+
the verb.</item>
|
|
436
|
+
</list>
|
|
437
|
+
</summary>
|
|
438
|
+
</member>
|
|
439
|
+
<member name="M:Microsoft.CodeAnalysis.Sarif.Multitool.EmitInitRunCommand.TryResolveVcpFields(Microsoft.CodeAnalysis.Sarif.Multitool.AdoPipelineContext,Microsoft.CodeAnalysis.Sarif.Multitool.GitHubActionsContext,System.Uri@,System.String@,System.String@,System.String@)">
|
|
440
|
+
<summary>
|
|
441
|
+
Resolves the three VCP fields (<c>repositoryUri</c>, <c>revisionId</c>,
|
|
442
|
+
<c>branch</c>) from the ADO and GitHub Actions environment contexts. ADO is the
|
|
443
|
+
higher-priority source: where ADO supplies a value it wins; GHA fills gaps where
|
|
444
|
+
ADO is silent. When both sources publish the same field, the values must agree
|
|
445
|
+
(case-insensitive URI equality for <c>repositoryUri</c>, ordinal for the rest) or
|
|
446
|
+
the method returns false with a diagnostic naming both sources.
|
|
447
|
+
</summary>
|
|
448
|
+
</member>
|
|
377
449
|
<member name="T:Microsoft.CodeAnalysis.Sarif.Multitool.EmitInitRunOptions">
|
|
378
450
|
<summary>
|
|
379
451
|
Options for <c>emit-init-run</c>, which opens an append-only event log
|
|
@@ -401,6 +473,79 @@
|
|
|
401
473
|
place of a <c>Run</c>.</para>
|
|
402
474
|
</remarks>
|
|
403
475
|
</member>
|
|
476
|
+
<member name="T:Microsoft.CodeAnalysis.Sarif.Multitool.GitHubActionsContext">
|
|
477
|
+
<summary>
|
|
478
|
+
Detects a GitHub Actions execution context from environment variables and surfaces the
|
|
479
|
+
<c>versionControlProvenance</c> fields the workflow runner publishes
|
|
480
|
+
(<c>GITHUB_SERVER_URL</c>/<c>GITHUB_REPOSITORY</c> compose the repository URI;
|
|
481
|
+
<c>GITHUB_SHA</c> supplies the revision; <c>GITHUB_REF</c> supplies the branch
|
|
482
|
+
ref).
|
|
483
|
+
</summary>
|
|
484
|
+
<remarks>
|
|
485
|
+
<para>This context is VCP-scoped: it does not stamp <c>automationDetails</c> for GitHub
|
|
486
|
+
Actions. The runner exposes <c>GITHUB_RUN_ID</c> / <c>GITHUB_WORKFLOW</c> / etc., but
|
|
487
|
+
downstream ingestion conventions for the GitHub-side automationDetails shape are out of
|
|
488
|
+
scope for this verb today.</para>
|
|
489
|
+
<para>Detection is gated on the standard runner sentinel <c>GITHUB_ACTIONS=true</c>. When
|
|
490
|
+
not inside a GitHub Actions workflow, <see cref="F:Microsoft.CodeAnalysis.Sarif.Multitool.GitHubActionsContext.DetectionState.None"/> is returned and no
|
|
491
|
+
stamping occurs. Inside a workflow three states are possible:</para>
|
|
492
|
+
<list type="bullet">
|
|
493
|
+
<item><see cref="F:Microsoft.CodeAnalysis.Sarif.Multitool.GitHubActionsContext.DetectionState.Complete"/> — the runner is active and every populated
|
|
494
|
+
VCP variable parses cleanly. Absent VCP variables are tolerated: in that case the context
|
|
495
|
+
is Complete but <see cref="P:Microsoft.CodeAnalysis.Sarif.Multitool.GitHubActionsContext.HasVcpFields"/> returns <c>false</c> and the verb's VCP
|
|
496
|
+
stamping is a no-op for this source.</item>
|
|
497
|
+
<item><see cref="F:Microsoft.CodeAnalysis.Sarif.Multitool.GitHubActionsContext.DetectionState.Partial"/> — one or more present VCP variables are
|
|
498
|
+
malformed (e.g. a non-hex <c>GITHUB_SHA</c>, an unparseable
|
|
499
|
+
<c>GITHUB_SERVER_URL</c>); the verb should fail loudly rather than stamp a half-derived
|
|
500
|
+
VCP entry.</item>
|
|
501
|
+
<item><see cref="F:Microsoft.CodeAnalysis.Sarif.Multitool.GitHubActionsContext.DetectionState.None"/> — <c>GITHUB_ACTIONS</c> is unset or not
|
|
502
|
+
truthy.</item>
|
|
503
|
+
</list>
|
|
504
|
+
</remarks>
|
|
505
|
+
</member>
|
|
506
|
+
<member name="P:Microsoft.CodeAnalysis.Sarif.Multitool.GitHubActionsContext.RepositoryUri">
|
|
507
|
+
<summary>
|
|
508
|
+
Absolute URL of the source repository, composed from <c>GITHUB_SERVER_URL</c> and
|
|
509
|
+
<c>GITHUB_REPOSITORY</c> when both are present and well-formed; otherwise null.
|
|
510
|
+
</summary>
|
|
511
|
+
</member>
|
|
512
|
+
<member name="P:Microsoft.CodeAnalysis.Sarif.Multitool.GitHubActionsContext.RevisionId">
|
|
513
|
+
<summary>
|
|
514
|
+
The commit identifier (typically a 40-character SHA-1) the workflow run is building.
|
|
515
|
+
Lifted from <c>GITHUB_SHA</c> when present and well-formed; otherwise null.
|
|
516
|
+
</summary>
|
|
517
|
+
</member>
|
|
518
|
+
<member name="P:Microsoft.CodeAnalysis.Sarif.Multitool.GitHubActionsContext.BranchRef">
|
|
519
|
+
<summary>
|
|
520
|
+
The branch ref (e.g. <c>refs/heads/main</c>, <c>refs/pull/42/merge</c>) that
|
|
521
|
+
triggered the workflow. Lifted from <c>GITHUB_REF</c> when present; null when
|
|
522
|
+
absent. Pass-through with no normalization — the value is whatever the runner
|
|
523
|
+
(or hand-built env) published.
|
|
524
|
+
</summary>
|
|
525
|
+
</member>
|
|
526
|
+
<member name="M:Microsoft.CodeAnalysis.Sarif.Multitool.GitHubActionsContext.TryDetect(Microsoft.CodeAnalysis.Sarif.Multitool.IEnvironmentVariableGetter,Microsoft.CodeAnalysis.Sarif.Multitool.GitHubActionsContext@,System.String@)">
|
|
527
|
+
<summary>
|
|
528
|
+
Reads GitHub Actions predefined environment variables via
|
|
529
|
+
<paramref name="environment"/> and returns one of <see cref="T:Microsoft.CodeAnalysis.Sarif.Multitool.GitHubActionsContext.DetectionState"/>.
|
|
530
|
+
</summary>
|
|
531
|
+
<param name="environment">Env getter (test seam).</param>
|
|
532
|
+
<param name="context">Populated context when state is <see cref="F:Microsoft.CodeAnalysis.Sarif.Multitool.GitHubActionsContext.DetectionState.Complete"/>; otherwise <c>null</c>.</param>
|
|
533
|
+
<param name="errorMessage">Human-readable description of present/malformed variables when state is <see cref="F:Microsoft.CodeAnalysis.Sarif.Multitool.GitHubActionsContext.DetectionState.Partial"/>; otherwise <c>null</c>.</param>
|
|
534
|
+
</member>
|
|
535
|
+
<member name="P:Microsoft.CodeAnalysis.Sarif.Multitool.GitHubActionsContext.HasVcpFields">
|
|
536
|
+
<summary>
|
|
537
|
+
True when this context carries at least one <c>versionControlProvenance</c> field
|
|
538
|
+
(repository URI, revision id, or branch ref) lifted from the workflow
|
|
539
|
+
environment. False indicates the VCP enrichment path is a no-op for this context.
|
|
540
|
+
</summary>
|
|
541
|
+
</member>
|
|
542
|
+
<member name="M:Microsoft.CodeAnalysis.Sarif.Multitool.GitHubActionsContext.GetVcpFieldValues">
|
|
543
|
+
<summary>
|
|
544
|
+
Returns the non-null <c>versionControlProvenance</c> field name/value pairs for this
|
|
545
|
+
workflow context. Pairs are ordered <c>repositoryUri</c>, <c>revisionId</c>,
|
|
546
|
+
<c>branch</c>; absent fields are omitted.
|
|
547
|
+
</summary>
|
|
548
|
+
</member>
|
|
404
549
|
<member name="T:Microsoft.CodeAnalysis.Sarif.Multitool.FileWorkItemsCommand">
|
|
405
550
|
<summary>
|
|
406
551
|
A class that drives SARIF work item filing. This class is responsible for
|
package/Sarif.Multitool.pdb
CHANGED
|
Binary file
|
package/Sarif.WorkItems.pdb
CHANGED
|
Binary file
|
package/Sarif.pdb
CHANGED
|
Binary file
|
package/WorkItems.pdb
CHANGED
|
Binary file
|