@harnessio/react-ssca-manager-client 0.86.26 → 0.86.28
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/dist/ssca-manager/src/services/hooks/useGetAiWorkflowExecutionsAccountScopeQuery.d.ts +1 -2
- package/dist/ssca-manager/src/services/hooks/useGetIntegrationCountsQuery.d.ts +1 -2
- package/dist/ssca-manager/src/services/hooks/useListIntegrationsQuery.d.ts +2 -0
- package/dist/ssca-manager/src/services/index.d.ts +10 -0
- package/dist/ssca-manager/src/services/schemas/AgentExecutionDetail.d.ts +9 -0
- package/dist/ssca-manager/src/services/schemas/AgentExecutionSummary.d.ts +25 -0
- package/dist/ssca-manager/src/services/schemas/ArtifactType.d.ts +1 -1
- package/dist/ssca-manager/src/services/schemas/DependencyRemediationFinding.d.ts +12 -0
- package/dist/ssca-manager/src/services/schemas/DependencyRemediationFinding.js +4 -0
- package/dist/ssca-manager/src/services/schemas/InitiateRemediationAgentRequest.d.ts +14 -0
- package/dist/ssca-manager/src/services/schemas/InitiateRemediationAgentRequest.js +0 -3
- package/dist/ssca-manager/src/services/schemas/InitiateRemediationAgentResponse.d.ts +11 -5
- package/dist/ssca-manager/src/services/schemas/InitiateRemediationAgentResponse.js +0 -3
- package/dist/ssca-manager/src/services/schemas/RemediationAgentApprovedBaseImageVariant.d.ts +11 -0
- package/dist/ssca-manager/src/services/schemas/RemediationAgentApprovedBaseImageVariant.js +4 -0
- package/dist/ssca-manager/src/services/schemas/RemediationAgentBaseImageApproval.d.ts +11 -0
- package/dist/ssca-manager/src/services/schemas/RemediationAgentBaseImageApproval.js +1 -0
- package/dist/ssca-manager/src/services/schemas/RemediationAgentBaseImageApprovalRequest.d.ts +6 -0
- package/dist/ssca-manager/src/services/schemas/RemediationAgentBaseImageApprovalRequest.js +4 -0
- package/dist/ssca-manager/src/services/schemas/RemediationAgentBaseImageApprovalResponse.d.ts +7 -0
- package/dist/ssca-manager/src/services/schemas/RemediationAgentBaseImageApprovalResponse.js +1 -0
- package/dist/ssca-manager/src/services/schemas/RemediationAgentCriteria.d.ts +29 -0
- package/dist/ssca-manager/src/services/schemas/RemediationAgentCriteria.js +4 -0
- package/dist/ssca-manager/src/services/schemas/RemediationAgentDockerfileScanExecution.d.ts +5 -1
- package/dist/ssca-manager/src/services/schemas/RemediationAgentDockerfileScanRequest.d.ts +2 -6
- package/dist/ssca-manager/src/services/schemas/RemediationAgentDockerfileScanResult.d.ts +4 -0
- package/dist/ssca-manager/src/services/schemas/RemediationAgentExecution.d.ts +14 -0
- package/dist/ssca-manager/src/services/schemas/RemediationAgentExecution.js +4 -0
- package/dist/ssca-manager/src/services/schemas/RemediationAgentInitiateContext.d.ts +9 -0
- package/dist/ssca-manager/src/services/schemas/RemediationAgentInitiateContext.js +4 -0
- package/dist/ssca-manager/src/services/schemas/RemediationAgentTargetConfig.d.ts +15 -0
- package/dist/ssca-manager/src/services/schemas/RemediationAgentTargetConfig.js +1 -0
- package/dist/ssca-manager/src/services/schemas/RemediationAgentValidation.d.ts +17 -0
- package/dist/ssca-manager/src/services/schemas/RemediationAgentValidation.js +4 -0
- package/dist/ssca-manager/src/services/schemas/ResolveRemediationAgentRepoUrlResponse.d.ts +3 -3
- package/package.json +1 -1
package/dist/ssca-manager/src/services/hooks/useGetAiWorkflowExecutionsAccountScopeQuery.d.ts
CHANGED
|
@@ -1,11 +1,10 @@
|
|
|
1
1
|
import { UseQueryOptions } from '@tanstack/react-query';
|
|
2
2
|
import type { AiWorkflowExecutionSummary } from '../schemas/AiWorkflowExecutionSummary';
|
|
3
|
-
import type { AiWorkflowExecutionStatusEnum } from '../schemas/AiWorkflowExecutionStatusEnum';
|
|
4
3
|
import type { ResponseWithPagination } from '../helpers';
|
|
5
4
|
import { FetcherOptions } from '../../../../fetcher/index.js';
|
|
6
5
|
export interface GetAiWorkflowExecutionsAccountScopeQueryQueryParams {
|
|
7
6
|
ai_workflow_type?: string;
|
|
8
|
-
status?:
|
|
7
|
+
status?: string;
|
|
9
8
|
/**
|
|
10
9
|
* @format int64
|
|
11
10
|
*/
|
|
@@ -2,7 +2,6 @@ import { UseQueryOptions } from '@tanstack/react-query';
|
|
|
2
2
|
import type { IntegrationCountsResponse } from '../schemas/IntegrationCountsResponse';
|
|
3
3
|
import type { IntegrationCountsView } from '../schemas/IntegrationCountsView';
|
|
4
4
|
import type { IntegrationCountsScannerCategory } from '../schemas/IntegrationCountsScannerCategory';
|
|
5
|
-
import type { IntegrationCountsIntegrationStatus } from '../schemas/IntegrationCountsIntegrationStatus';
|
|
6
5
|
import type { ResponseWithPagination } from '../helpers';
|
|
7
6
|
import { FetcherOptions } from '../../../../fetcher/index.js';
|
|
8
7
|
export interface GetIntegrationCountsQueryPathParams {
|
|
@@ -14,7 +13,7 @@ export interface GetIntegrationCountsQueryQueryParams {
|
|
|
14
13
|
types?: IntegrationCountsScannerCategory;
|
|
15
14
|
scanner_types?: string;
|
|
16
15
|
search_term?: string;
|
|
17
|
-
integration_status?:
|
|
16
|
+
integration_status?: string;
|
|
18
17
|
}
|
|
19
18
|
export interface GetIntegrationCountsQueryHeaderParams {
|
|
20
19
|
'Harness-Account': string;
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { UseQueryOptions } from '@tanstack/react-query';
|
|
2
2
|
import type { IntegrationListingResponseBodyResponse } from '../responses/IntegrationListingResponseBodyResponse';
|
|
3
3
|
import type { IntegrationType } from '../schemas/IntegrationType';
|
|
4
|
+
import type { RspmScannerId } from '../schemas/RspmScannerId';
|
|
4
5
|
import type { ResponseWithPagination } from '../helpers';
|
|
5
6
|
import { FetcherOptions } from '../../../../fetcher/index.js';
|
|
6
7
|
export interface ListIntegrationsQueryPathParams {
|
|
@@ -24,6 +25,7 @@ export interface ListIntegrationsQueryQueryParams {
|
|
|
24
25
|
status?: 'ACTIVE' | 'INACTIVE';
|
|
25
26
|
type?: IntegrationType[];
|
|
26
27
|
search_term?: string;
|
|
28
|
+
scanner_id?: RspmScannerId[];
|
|
27
29
|
/**
|
|
28
30
|
* @default "last_scan"
|
|
29
31
|
*/
|
|
@@ -626,6 +626,7 @@ export type { DefaultVulnerability } from './schemas/DefaultVulnerability';
|
|
|
626
626
|
export type { DeleteRepositoriesRequestBody } from './schemas/DeleteRepositoriesRequestBody';
|
|
627
627
|
export type { DependencyChange } from './schemas/DependencyChange';
|
|
628
628
|
export type { DependencyChanges } from './schemas/DependencyChanges';
|
|
629
|
+
export type { DependencyRemediationFinding } from './schemas/DependencyRemediationFinding';
|
|
629
630
|
export type { DependencyType } from './schemas/DependencyType';
|
|
630
631
|
export type { DeploymentActivity } from './schemas/DeploymentActivity';
|
|
631
632
|
export type { Deployments } from './schemas/Deployments';
|
|
@@ -777,11 +778,20 @@ export type { ProvenanceRequestBody } from './schemas/ProvenanceRequestBody';
|
|
|
777
778
|
export type { ProvenanceRequestBodyV2 } from './schemas/ProvenanceRequestBodyV2';
|
|
778
779
|
export type { ProvenanceResponseBody } from './schemas/ProvenanceResponseBody';
|
|
779
780
|
export type { RekorLog } from './schemas/RekorLog';
|
|
781
|
+
export type { RemediationAgentApprovedBaseImageVariant } from './schemas/RemediationAgentApprovedBaseImageVariant';
|
|
780
782
|
export type { RemediationAgentBaseImage } from './schemas/RemediationAgentBaseImage';
|
|
783
|
+
export type { RemediationAgentBaseImageApproval } from './schemas/RemediationAgentBaseImageApproval';
|
|
784
|
+
export type { RemediationAgentBaseImageApprovalRequest } from './schemas/RemediationAgentBaseImageApprovalRequest';
|
|
785
|
+
export type { RemediationAgentBaseImageApprovalResponse } from './schemas/RemediationAgentBaseImageApprovalResponse';
|
|
786
|
+
export type { RemediationAgentCriteria } from './schemas/RemediationAgentCriteria';
|
|
781
787
|
export type { RemediationAgentDockerfile } from './schemas/RemediationAgentDockerfile';
|
|
782
788
|
export type { RemediationAgentDockerfileScanExecution } from './schemas/RemediationAgentDockerfileScanExecution';
|
|
783
789
|
export type { RemediationAgentDockerfileScanRequest } from './schemas/RemediationAgentDockerfileScanRequest';
|
|
784
790
|
export type { RemediationAgentDockerfileScanResult } from './schemas/RemediationAgentDockerfileScanResult';
|
|
791
|
+
export type { RemediationAgentExecution } from './schemas/RemediationAgentExecution';
|
|
792
|
+
export type { RemediationAgentInitiateContext } from './schemas/RemediationAgentInitiateContext';
|
|
793
|
+
export type { RemediationAgentTargetConfig } from './schemas/RemediationAgentTargetConfig';
|
|
794
|
+
export type { RemediationAgentValidation } from './schemas/RemediationAgentValidation';
|
|
785
795
|
export type { RemediationArtifactDeploymentsListingRequestBody } from './schemas/RemediationArtifactDeploymentsListingRequestBody';
|
|
786
796
|
export type { RemediationArtifactDeploymentsListingResponse } from './schemas/RemediationArtifactDeploymentsListingResponse';
|
|
787
797
|
export type { RemediationArtifactDetailsResponse } from './schemas/RemediationArtifactDetailsResponse';
|
|
@@ -6,6 +6,15 @@ export interface AgentExecutionDetail {
|
|
|
6
6
|
agent_results?: {
|
|
7
7
|
[key: string]: any;
|
|
8
8
|
};
|
|
9
|
+
/**
|
|
10
|
+
* Agent run cost in USD from agent_results.cost_usd, rounded to 2 decimal places. Null when the run has no stored cost.
|
|
11
|
+
* @format double
|
|
12
|
+
*/
|
|
13
|
+
cost_usd?: number;
|
|
14
|
+
/**
|
|
15
|
+
* First line of the execution failure reason, trimmed to 300 characters. Null when the run did not fail or no reason was recorded. Present for both FP Triage and SAST Remediation.
|
|
16
|
+
*/
|
|
17
|
+
error_message?: string;
|
|
9
18
|
/**
|
|
10
19
|
* FP Triage only — count of false positives identified (null for remediation)
|
|
11
20
|
*/
|
|
@@ -2,6 +2,23 @@
|
|
|
2
2
|
* Shared scan-completion agent payload for FP Triage and SAST Remediation execution summaries. Zero-day / vulnerability agents use vulnerability_finding instead.
|
|
3
3
|
*/
|
|
4
4
|
export interface AgentExecutionSummary {
|
|
5
|
+
/**
|
|
6
|
+
* Agent run cost in USD from agent_results.cost_usd, rounded to 2 decimal places. Null when the run has no stored cost.
|
|
7
|
+
* @format double
|
|
8
|
+
*/
|
|
9
|
+
cost_usd?: number;
|
|
10
|
+
/**
|
|
11
|
+
* First line of the execution failure reason, trimmed to 300 characters. Null when the run did not fail or no reason was recorded. Present for both FP Triage and SAST Remediation.
|
|
12
|
+
*/
|
|
13
|
+
error_message?: string;
|
|
14
|
+
/**
|
|
15
|
+
* Remediation only — scoped occurrences for which the agent included a fix in the pull request (agent_results.findings_remediated). This does not require validation. Null when the run has no stored count.
|
|
16
|
+
*/
|
|
17
|
+
findings_remediated?: number;
|
|
18
|
+
/**
|
|
19
|
+
* Remediation only — occurrences placed in the remediation working set (agent_results.findings_scoped). Null when the run has no stored count.
|
|
20
|
+
*/
|
|
21
|
+
findings_scoped?: number;
|
|
5
22
|
/**
|
|
6
23
|
* FP Triage only — count of false positives identified (null for remediation)
|
|
7
24
|
*/
|
|
@@ -10,6 +27,14 @@ export interface AgentExecutionSummary {
|
|
|
10
27
|
* Issue Types the agent ran with (config scanTypes stamped at trigger time), e.g. SAST, SCA, SECRET. UI may render as a comma-separated column. Empty/omitted for older executions that predate persistence of this snapshot.
|
|
11
28
|
*/
|
|
12
29
|
issue_types?: string[];
|
|
30
|
+
/**
|
|
31
|
+
* Remediation only — distinct scoped issues whose every scoped occurrence has a fix included in the pull request (agent_results.issues_remediated). A partial fix does not count. This does not require validation. Null when the run has no stored count.
|
|
32
|
+
*/
|
|
33
|
+
issues_remediated?: number;
|
|
34
|
+
/**
|
|
35
|
+
* Remediation only — distinct issues whose occurrences were scoped for remediation (agent_results.issues_scoped). Null when the run has no stored count.
|
|
36
|
+
*/
|
|
37
|
+
issues_scoped?: number;
|
|
13
38
|
/**
|
|
14
39
|
* FP Triage only — count of occurrences triaged (null for remediation)
|
|
15
40
|
*/
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export type ArtifactType = 'CONTAINER_IMAGE' | 'HELM' | 'JAR' | 'MANIFEST' | 'UNKNOWN' | 'WAR';
|
|
1
|
+
export type ArtifactType = 'CONTAINER_IMAGE' | 'HELM' | 'JAR' | 'LOCAL_ARCHIVE' | 'LOCAL_IMAGE' | 'MANIFEST' | 'UNKNOWN' | 'WAR';
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
export interface DependencyRemediationFinding {
|
|
2
|
+
/**
|
|
3
|
+
* Scanner issue / CVE identifier
|
|
4
|
+
*/
|
|
5
|
+
issueId: string;
|
|
6
|
+
packageName: string;
|
|
7
|
+
packageVersion: string;
|
|
8
|
+
/**
|
|
9
|
+
* Upgrade selected by the effective remediation policy for this finding's package/version group: the highest strict-SemVer candidate satisfying the configured severity/risk criteria and staying within maxVersionUpdate. Identical for every finding in the same group.
|
|
10
|
+
*/
|
|
11
|
+
selectedFixVersion: string;
|
|
12
|
+
}
|
|
@@ -1,4 +1,17 @@
|
|
|
1
|
+
import type { RemediationAgentCriteria } from '../schemas/RemediationAgentCriteria';
|
|
1
2
|
export interface InitiateRemediationAgentRequest {
|
|
3
|
+
/**
|
|
4
|
+
* Whether a vulnerable package may be upgraded to a pre-release version. Defaults to false.
|
|
5
|
+
*/
|
|
6
|
+
allowPreRelease?: boolean;
|
|
7
|
+
/**
|
|
8
|
+
* Optional. Set by a dispatched agent pipeline to the execution ssca-manager created for it (the execution_id input). When it matches the scan's active execution and the request's pipelineExecutionId matches the one recorded for it (if any), that execution is returned instead of a 409 conflict. Any other active execution for the scan still conflicts.
|
|
9
|
+
*/
|
|
10
|
+
executionId?: string;
|
|
11
|
+
/**
|
|
12
|
+
* Highest semantic-version bump the agent may apply: PATCH, MINOR or MAJOR. Required when remediationCriteria selects at least one criterion; the request fails with a 400 when it is missing or unknown.
|
|
13
|
+
*/
|
|
14
|
+
maxVersionUpdate?: string;
|
|
2
15
|
/**
|
|
3
16
|
* Caller's pipeline execution ID
|
|
4
17
|
*/
|
|
@@ -7,6 +20,7 @@ export interface InitiateRemediationAgentRequest {
|
|
|
7
20
|
* Caller's pipeline ID
|
|
8
21
|
*/
|
|
9
22
|
pipelineId?: string;
|
|
23
|
+
remediationCriteria?: RemediationAgentCriteria;
|
|
10
24
|
/**
|
|
11
25
|
* STO scan ID
|
|
12
26
|
*/
|
|
@@ -1,7 +1,13 @@
|
|
|
1
|
+
import type { RemediationAgentInitiateContext } from '../schemas/RemediationAgentInitiateContext';
|
|
2
|
+
import type { RemediationAgentExecution } from '../schemas/RemediationAgentExecution';
|
|
3
|
+
import type { DependencyRemediationFinding } from '../schemas/DependencyRemediationFinding';
|
|
4
|
+
import type { RemediationAgentTargetConfig } from '../schemas/RemediationAgentTargetConfig';
|
|
1
5
|
export interface InitiateRemediationAgentResponse {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
6
|
+
context?: RemediationAgentInitiateContext;
|
|
7
|
+
execution: RemediationAgentExecution;
|
|
8
|
+
/**
|
|
9
|
+
* Config-eligible component findings with a policy-resolved selectedFixVersion, in source order. Fully exempted findings, findings outside the configured severity/risk criteria, and package groups with no compliant upgrade are omitted. Empty when the scan is clean or nothing is remediable: a fresh initiation pairs an empty list with a SKIPPED execution, while a replayed terminal execution keeps its stored status and can also return an empty list. Each item carries only the package identity, issue id and selected fix; raw scan evidence remains available server-side under the scan.
|
|
10
|
+
*/
|
|
11
|
+
findings: DependencyRemediationFinding[];
|
|
12
|
+
targetConfig?: RemediationAgentTargetConfig;
|
|
7
13
|
}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
export interface RemediationAgentApprovedBaseImageVariant {
|
|
2
|
+
/**
|
|
3
|
+
* Unix timestamp of the latest scan of this variant, when known
|
|
4
|
+
* @format int64
|
|
5
|
+
*/
|
|
6
|
+
lastScanned?: number;
|
|
7
|
+
/**
|
|
8
|
+
* Bare STO parameters.variant value (for example 3.21), not "tag: 3.21"
|
|
9
|
+
*/
|
|
10
|
+
variant: string;
|
|
11
|
+
}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import type { RemediationAgentApprovedBaseImageVariant } from '../schemas/RemediationAgentApprovedBaseImageVariant';
|
|
2
|
+
export interface RemediationAgentBaseImageApproval {
|
|
3
|
+
/**
|
|
4
|
+
* Approved variants of the target name across the account. Empty when the target was never scanned or has no approved variant.
|
|
5
|
+
*/
|
|
6
|
+
approvedVariants: RemediationAgentApprovedBaseImageVariant[];
|
|
7
|
+
/**
|
|
8
|
+
* Requested STO target name
|
|
9
|
+
*/
|
|
10
|
+
targetName: string;
|
|
11
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import type { RemediationAgentBaseImageApproval } from '../schemas/RemediationAgentBaseImageApproval';
|
|
2
|
+
export interface RemediationAgentBaseImageApprovalResponse {
|
|
3
|
+
/**
|
|
4
|
+
* One entry per distinct requested target name, in request order
|
|
5
|
+
*/
|
|
6
|
+
results: RemediationAgentBaseImageApproval[];
|
|
7
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Which findings are in scope for remediation. The request is skipped when no criterion is selected.
|
|
3
|
+
*/
|
|
4
|
+
export interface RemediationAgentCriteria {
|
|
5
|
+
/**
|
|
6
|
+
* Include issues on the CISA Known Exploited Vulnerabilities catalog
|
|
7
|
+
*/
|
|
8
|
+
cisaKev?: boolean;
|
|
9
|
+
/**
|
|
10
|
+
* One of "0 - 10%", "10 - 20%", "20 - 50%" or "50 - 100%". Persisted and echoed for the config, but not yet used to filter findings
|
|
11
|
+
*/
|
|
12
|
+
epssPercentage?: string;
|
|
13
|
+
/**
|
|
14
|
+
* Include issues that carry an EPSS score. The epssPercentage range is stored but not yet applied when selecting findings
|
|
15
|
+
*/
|
|
16
|
+
epssProbability?: boolean;
|
|
17
|
+
/**
|
|
18
|
+
* Include issues with a known exploit or proof of concept
|
|
19
|
+
*/
|
|
20
|
+
exploitable?: boolean;
|
|
21
|
+
/**
|
|
22
|
+
* Include issues whose vulnerable code path is reachable
|
|
23
|
+
*/
|
|
24
|
+
reachable?: boolean;
|
|
25
|
+
/**
|
|
26
|
+
* Severities to remediate (CRITICAL, HIGH, MEDIUM, LOW, INFO). Empty selects no severity here; the scs-remediation-agent plugin sends CRITICAL when the step sets none.
|
|
27
|
+
*/
|
|
28
|
+
severities?: string[];
|
|
29
|
+
}
|
|
@@ -1,7 +1,11 @@
|
|
|
1
1
|
export interface RemediationAgentDockerfileScanExecution {
|
|
2
|
+
/**
|
|
3
|
+
* Dockerfile path used for discovery: request override, else SLSA provenance, else omitted when the workspace is walked.
|
|
4
|
+
*/
|
|
5
|
+
dockerfilePath?: string;
|
|
2
6
|
pipelineExecutionId: string;
|
|
3
7
|
/**
|
|
4
|
-
* SCM connector used for the clone
|
|
8
|
+
* SCM connector used for the clone, from the request or DEPENDENCY_REMEDIATION config
|
|
5
9
|
*/
|
|
6
10
|
scmConnectorRef?: string;
|
|
7
11
|
/**
|
|
@@ -1,10 +1,6 @@
|
|
|
1
1
|
export interface RemediationAgentDockerfileScanRequest {
|
|
2
2
|
/**
|
|
3
|
-
*
|
|
4
|
-
*/
|
|
5
|
-
defaultBranch?: string;
|
|
6
|
-
/**
|
|
7
|
-
* Optional repository-relative Dockerfile path. When omitted, the cloned workspace is walked for Dockerfiles.
|
|
3
|
+
* Optional repository-relative Dockerfile path from the template. When omitted, resolved from SLSA provenance buildMetadata.dockerfile / dockerFile. When still unset the cloned workspace is walked.
|
|
8
4
|
*/
|
|
9
5
|
dockerfilePath?: string;
|
|
10
6
|
/**
|
|
@@ -16,7 +12,7 @@ export interface RemediationAgentDockerfileScanRequest {
|
|
|
16
12
|
*/
|
|
17
13
|
repoUrl: string;
|
|
18
14
|
/**
|
|
19
|
-
* SCM connector used to clone the repository.
|
|
15
|
+
* SCM connector used to clone the repository. The request is rejected when omitted.
|
|
20
16
|
*/
|
|
21
17
|
scmConnectorRef?: string;
|
|
22
18
|
}
|
|
@@ -1,5 +1,9 @@
|
|
|
1
1
|
import type { RemediationAgentDockerfile } from '../schemas/RemediationAgentDockerfile';
|
|
2
2
|
export interface RemediationAgentDockerfileScanResult {
|
|
3
|
+
/**
|
|
4
|
+
* Branch the Dockerfile-discovery clone resolved to, i.e. the repository's default branch. Recorded by CI when the clone lands, so absent on executions that have not cloned yet.
|
|
5
|
+
*/
|
|
6
|
+
defaultBranch?: string;
|
|
3
7
|
dockerfiles: RemediationAgentDockerfile[];
|
|
4
8
|
/**
|
|
5
9
|
* Failure detail when status is FAILED
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
export interface RemediationAgentExecution {
|
|
2
|
+
executionId: string;
|
|
3
|
+
/**
|
|
4
|
+
* Why the last run failed. Present only on FAILED executions, including idempotent terminal replays; a replayed terminal status is informational and callers must not start remediation work under it.
|
|
5
|
+
*/
|
|
6
|
+
failureReason?: string;
|
|
7
|
+
/**
|
|
8
|
+
* QUEUED|PENDING|RUNNING|COMPLETED|FAILED|SKIPPED. SKIPPED means the request selected no remediation criterion or no package group resolved to a policy-compliant upgrade; findings is empty in that case. A request that selects a criterion without a valid maxVersionUpdate fails with a 400 instead. On a SKIPPED execution, executionId is a deterministic synthetic value and is never persisted.
|
|
9
|
+
*/
|
|
10
|
+
status: string;
|
|
11
|
+
targetId?: string;
|
|
12
|
+
targetName?: string;
|
|
13
|
+
targetType?: string;
|
|
14
|
+
}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Server-resolved context for this execution; derived data, not configuration.
|
|
3
|
+
*/
|
|
4
|
+
export interface RemediationAgentInitiateContext {
|
|
5
|
+
/**
|
|
6
|
+
* SCM provider for the execution's repository: the scan's recorded artifactInfo.scmProvider, else inferred from the resolved repo URL. Absent when neither is known.
|
|
7
|
+
*/
|
|
8
|
+
scmProvider?: string;
|
|
9
|
+
}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import type { RemediationAgentValidation } from '../schemas/RemediationAgentValidation';
|
|
2
|
+
/**
|
|
3
|
+
* Overrides stored for the scan's container target. Values are returned as stored, with no account, org or project inheritance, so callers can fill fields they were not given.
|
|
4
|
+
*/
|
|
5
|
+
export interface RemediationAgentTargetConfig {
|
|
6
|
+
/**
|
|
7
|
+
* Repository-relative Dockerfile path override for the target
|
|
8
|
+
*/
|
|
9
|
+
dockerfilePath?: string;
|
|
10
|
+
/**
|
|
11
|
+
* Git remote URL override for the target
|
|
12
|
+
*/
|
|
13
|
+
repoUrl?: string;
|
|
14
|
+
validation?: RemediationAgentValidation;
|
|
15
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
export interface RemediationAgentValidation {
|
|
2
|
+
buildStepId?: string;
|
|
3
|
+
/**
|
|
4
|
+
* When absent, the remediation agent plugin treats the flag as false
|
|
5
|
+
*/
|
|
6
|
+
mustPassChecks?: boolean;
|
|
7
|
+
/**
|
|
8
|
+
* When absent, the remediation agent plugin treats the flag as false
|
|
9
|
+
*/
|
|
10
|
+
mustVerifyFix?: boolean;
|
|
11
|
+
/**
|
|
12
|
+
* Identifier of the pipeline that rebuilds and re-scans the remediated image
|
|
13
|
+
*/
|
|
14
|
+
pipeline?: string;
|
|
15
|
+
pushStepId?: string;
|
|
16
|
+
scanStepId?: string;
|
|
17
|
+
}
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
export interface ResolveRemediationAgentRepoUrlResponse {
|
|
2
2
|
/**
|
|
3
|
-
* Git remote URL from scan
|
|
3
|
+
* Git remote URL resolved from the STO scan or SLSA provenance
|
|
4
4
|
*/
|
|
5
5
|
repoUrl: string;
|
|
6
6
|
/**
|
|
7
|
-
*
|
|
7
|
+
* SCM provider for the resolved repoUrl: the scan's recorded artifactInfo.scmProvider, else inferred from the resolved URL. Absent when neither is known.
|
|
8
8
|
*/
|
|
9
|
-
|
|
9
|
+
scmProvider?: string;
|
|
10
10
|
}
|