@backstage-community/plugin-multi-source-security-viewer 0.15.2 → 0.16.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/CHANGELOG.md +17 -0
- package/dist/api/azure.esm.js +1 -1
- package/dist/api/azure.esm.js.map +1 -1
- package/dist/api/github.esm.js.map +1 -1
- package/dist/api/gitlab.esm.js.map +1 -1
- package/dist/api/jenkins.esm.js.map +1 -1
- package/dist/components/DialogLauncher/DialogLauncher.esm.js.map +1 -1
- package/dist/components/EmptyState/EmptyState.esm.js +1 -1
- package/dist/components/EmptyState/EmptyState.esm.js.map +1 -1
- package/dist/components/EmptyState/EmptyStateNoData.esm.js.map +1 -1
- package/dist/components/EmptyState/EmptyStateNoMatch.esm.js.map +1 -1
- package/dist/components/EmptyState/EmptyStateSpinner.esm.js.map +1 -1
- package/dist/components/Icons/CriticalIcon.esm.js.map +1 -1
- package/dist/components/Icons/EqualsIcon.esm.js.map +1 -1
- package/dist/components/Icons/IconWithValue.esm.js.map +1 -1
- package/dist/components/Icons/LogsIcon.esm.js.map +1 -1
- package/dist/components/Icons/OutputIcon.esm.js.map +1 -1
- package/dist/components/Icons/SBOMLink.esm.js.map +1 -1
- package/dist/components/PermissionAlert/PermissionAlert.esm.js.map +1 -1
- package/dist/components/PipelineRunList/PipelineRunList.esm.js.map +1 -1
- package/dist/components/PipelineRunList/PipelineRunOutput.esm.js +3 -3
- package/dist/components/PipelineRunList/PipelineRunOutput.esm.js.map +1 -1
- package/dist/components/PipelineRunList/PipelineRunSBOMLink.esm.js +1 -1
- package/dist/components/PipelineRunList/PipelineRunSBOMLink.esm.js.map +1 -1
- package/dist/components/PipelineRunList/PipelineRunTable.esm.js.map +1 -1
- package/dist/components/PipelineRunList/PipelineRunTableBody.esm.js.map +1 -1
- package/dist/components/PipelineRunList/PipelineRunTableColumns.esm.js +1 -1
- package/dist/components/PipelineRunList/PipelineRunTableColumns.esm.js.map +1 -1
- package/dist/components/PipelineRunList/PipelineRunTablePagination.esm.js +1 -1
- package/dist/components/PipelineRunList/PipelineRunTablePagination.esm.js.map +1 -1
- package/dist/components/PipelineRunList/PipelineRunTableRow.esm.js +2 -2
- package/dist/components/PipelineRunList/PipelineRunTableRow.esm.js.map +1 -1
- package/dist/components/PipelineRunList/PipelineRunTableRowActions.esm.js +1 -1
- package/dist/components/PipelineRunList/PipelineRunTableRowActions.esm.js.map +1 -1
- package/dist/components/PipelineRunList/PipelineRunToolbar.esm.js +1 -1
- package/dist/components/PipelineRunList/PipelineRunToolbar.esm.js.map +1 -1
- package/dist/components/PipelineRunLogs/PipelineRunLogs.esm.js.map +1 -1
- package/dist/components/PipelineRunLogs/PipelineRunLogsDownloader.esm.js +1 -1
- package/dist/components/PipelineRunLogs/PipelineRunLogsDownloader.esm.js.map +1 -1
- package/dist/components/PipelineRunLogs/PipelineRunStepViewer.esm.js.map +1 -1
- package/dist/components/PipelineRunLogs/PipelineRunStepper.esm.js.map +1 -1
- package/dist/components/Router.esm.js.map +1 -1
- package/dist/components/SecurityViewer/SecurityViewerGithubActionsDetail.esm.js.map +1 -1
- package/dist/components/SecurityViewer/SecurityViewerJenkinsDetail.esm.js.map +1 -1
- package/dist/components/SecurityViewer/SecurityViewerMultiCIPipelines.esm.js +1 -1
- package/dist/components/SecurityViewer/SecurityViewerMultiCIPipelines.esm.js.map +1 -1
- package/dist/components/SecurityViewer/SecurityViewerPipelineDetailList.esm.js.map +1 -1
- package/dist/components/SecurityViewer/SecurityViewerPipelineSummaryList.esm.js.map +1 -1
- package/dist/components/SecurityViewer/SecurityViewerTabbedMultiCISummaryList.esm.js +1 -1
- package/dist/components/SecurityViewer/SecurityViewerTabbedMultiCISummaryList.esm.js.map +1 -1
- package/dist/hooks/useDarkTheme.esm.js.map +1 -1
- package/dist/hooks/useMssvViewPermisson.esm.js.map +1 -1
- package/dist/hooks/usePipelineDetail.esm.js.map +1 -1
- package/dist/hooks/usePipelineSummary.esm.js.map +1 -1
- package/dist/models/pipelineRunResult.esm.js.map +1 -1
- package/dist/plugin.esm.js +1 -1
- package/dist/plugin.esm.js.map +1 -1
- package/dist/routes.esm.js.map +1 -1
- package/dist/types/pipelinerun.esm.js.map +1 -1
- package/dist/utils/downloadLogFile.esm.js.map +1 -1
- package/dist/utils/logs.esm.js.map +1 -1
- package/package.json +15 -15
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"usePipelineDetail.esm.js","sources":["../../src/hooks/usePipelineDetail.ts"],"sourcesContent":["/*\n * Copyright 2024 The Backstage Authors\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\nimport { useMemo } from 'react';\nimport { useEntity } from '@backstage/plugin-catalog-react';\nimport { ApiRef, errorApiRef, useApi } from '@backstage/core-plugin-api';\nimport { useQuery } from '@tanstack/react-query';\nimport { PipelineRunResult } from '../models/pipelineRunResult';\nimport { MssvApi, MssvApiResponse } from '../api/mssv';\nimport { useLocation } from 'react-router-dom';\n\nexport const usePipelineDetail = (\n apiRef: ApiRef<MssvApi>,\n ref: string,\n page: number,\n pageSize: number,\n): [PipelineRunResult[] | null, number, boolean, Error | null] => {\n const { entity } = useEntity();\n const api = useApi(apiRef);\n const location = useLocation();\n const errorApi = useApi(errorApiRef);\n\n const queryFn = async () => {\n try {\n return (\n (await api.getPipelineDetail({ entity, ref, page, pageSize })) || []\n );\n } catch (e) {\n errorApi.post(e);\n }\n return [];\n };\n\n const { data, isLoading, error } = useQuery({\n queryKey: [\n `${location.pathname}_${apiRef.id}_pipelineDetail`,\n ref,\n page,\n pageSize,\n ],\n queryFn,\n });\n\n const { results, totalCount } = (data as MssvApiResponse) ?? {\n results: null,\n totalCount: 0,\n };\n\n return useMemo(() => {\n return [results, totalCount, isLoading, error];\n }, [results, totalCount, isLoading, error]);\n};\n"],"names":[],"mappings":";;;;;;AAuBO,MAAM,
|
|
1
|
+
{"version":3,"file":"usePipelineDetail.esm.js","sources":["../../src/hooks/usePipelineDetail.ts"],"sourcesContent":["/*\n * Copyright 2024 The Backstage Authors\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\nimport { useMemo } from 'react';\nimport { useEntity } from '@backstage/plugin-catalog-react';\nimport { ApiRef, errorApiRef, useApi } from '@backstage/core-plugin-api';\nimport { useQuery } from '@tanstack/react-query';\nimport { PipelineRunResult } from '../models/pipelineRunResult';\nimport { MssvApi, MssvApiResponse } from '../api/mssv';\nimport { useLocation } from 'react-router-dom';\n\nexport const usePipelineDetail = (\n apiRef: ApiRef<MssvApi>,\n ref: string,\n page: number,\n pageSize: number,\n): [PipelineRunResult[] | null, number, boolean, Error | null] => {\n const { entity } = useEntity();\n const api = useApi(apiRef);\n const location = useLocation();\n const errorApi = useApi(errorApiRef);\n\n const queryFn = async () => {\n try {\n return (\n (await api.getPipelineDetail({ entity, ref, page, pageSize })) || []\n );\n } catch (e) {\n errorApi.post(e);\n }\n return [];\n };\n\n const { data, isLoading, error } = useQuery({\n queryKey: [\n `${location.pathname}_${apiRef.id}_pipelineDetail`,\n ref,\n page,\n pageSize,\n ],\n queryFn,\n });\n\n const { results, totalCount } = (data as MssvApiResponse) ?? {\n results: null,\n totalCount: 0,\n };\n\n return useMemo(() => {\n return [results, totalCount, isLoading, error];\n }, [results, totalCount, isLoading, error]);\n};\n"],"names":[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":["../../src/hooks/usePipelineSummary.ts"],"sourcesContent":["/*\n * Copyright 2024 The Backstage Authors\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\nimport { useMemo } from 'react';\nimport { useEntity } from '@backstage/plugin-catalog-react';\nimport { ApiRef, errorApiRef, useApi } from '@backstage/core-plugin-api';\nimport { useQuery } from '@tanstack/react-query';\nimport { PipelineRunResult } from '../models/pipelineRunResult';\nimport { MssvApi, MssvApiResponse } from '../api/mssv';\nimport { useLocation } from 'react-router-dom';\n\nexport const usePipelineSummary = (\n apiRef: ApiRef<MssvApi>,\n page: number,\n pageSize: number,\n): [PipelineRunResult[] | null, number, boolean, Error | null] => {\n const { entity } = useEntity();\n const api = useApi(apiRef);\n const location = useLocation();\n const errorApi = useApi(errorApiRef);\n\n const queryFn = async () => {\n try {\n return (await api.getPipelineSummary({ entity, page, pageSize })) || [];\n } catch (e) {\n errorApi.post(e);\n }\n return [];\n };\n\n const { data, isLoading, error } = useQuery({\n queryKey: [\n `${location.pathname}_${apiRef.id}_pipelineSummary`,\n page,\n pageSize,\n ],\n queryFn,\n });\n\n const { results, totalCount } = (data as MssvApiResponse) ?? {\n results: null,\n totalCount: 0,\n };\n\n return useMemo(() => {\n return [results, totalCount, isLoading, error];\n }, [results, totalCount, isLoading, error]);\n};\n"],"names":[],"mappings":";;;;;;AAuBO,MAAM,
|
|
1
|
+
{"version":3,"file":"usePipelineSummary.esm.js","sources":["../../src/hooks/usePipelineSummary.ts"],"sourcesContent":["/*\n * Copyright 2024 The Backstage Authors\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\nimport { useMemo } from 'react';\nimport { useEntity } from '@backstage/plugin-catalog-react';\nimport { ApiRef, errorApiRef, useApi } from '@backstage/core-plugin-api';\nimport { useQuery } from '@tanstack/react-query';\nimport { PipelineRunResult } from '../models/pipelineRunResult';\nimport { MssvApi, MssvApiResponse } from '../api/mssv';\nimport { useLocation } from 'react-router-dom';\n\nexport const usePipelineSummary = (\n apiRef: ApiRef<MssvApi>,\n page: number,\n pageSize: number,\n): [PipelineRunResult[] | null, number, boolean, Error | null] => {\n const { entity } = useEntity();\n const api = useApi(apiRef);\n const location = useLocation();\n const errorApi = useApi(errorApiRef);\n\n const queryFn = async () => {\n try {\n return (await api.getPipelineSummary({ entity, page, pageSize })) || [];\n } catch (e) {\n errorApi.post(e);\n }\n return [];\n };\n\n const { data, isLoading, error } = useQuery({\n queryKey: [\n `${location.pathname}_${apiRef.id}_pipelineSummary`,\n page,\n pageSize,\n ],\n queryFn,\n });\n\n const { results, totalCount } = (data as MssvApiResponse) ?? {\n results: null,\n totalCount: 0,\n };\n\n return useMemo(() => {\n return [results, totalCount, isLoading, error];\n }, [results, totalCount, isLoading, error]);\n};\n"],"names":[],"mappings":";;;;;;AAuBO,MAAM,kBAAA,GAAqB,CAChC,MAAA,EACA,IAAA,EACA,QAAA,KACgE;AAChE,EAAA,MAAM,EAAE,MAAA,EAAO,GAAI,SAAA,EAAU;AAC7B,EAAA,MAAM,GAAA,GAAM,OAAO,MAAM,CAAA;AACzB,EAAA,MAAM,WAAW,WAAA,EAAY;AAC7B,EAAA,MAAM,QAAA,GAAW,OAAO,WAAW,CAAA;AAEnC,EAAA,MAAM,UAAU,YAAY;AAC1B,IAAA,IAAI;AACF,MAAA,OAAQ,MAAM,IAAI,kBAAA,CAAmB,EAAE,QAAQ,IAAA,EAAM,QAAA,EAAU,CAAA,IAAM,EAAC;AAAA,IACxE,SAAS,CAAA,EAAG;AACV,MAAA,QAAA,CAAS,KAAK,CAAC,CAAA;AAAA,IACjB;AACA,IAAA,OAAO,EAAC;AAAA,EACV,CAAA;AAEA,EAAA,MAAM,EAAE,IAAA,EAAM,SAAA,EAAW,KAAA,KAAU,QAAA,CAAS;AAAA,IAC1C,QAAA,EAAU;AAAA,MACR,CAAA,EAAG,QAAA,CAAS,QAAQ,CAAA,CAAA,EAAI,OAAO,EAAE,CAAA,gBAAA,CAAA;AAAA,MACjC,IAAA;AAAA,MACA;AAAA,KACF;AAAA,IACA;AAAA,GACD,CAAA;AAED,EAAA,MAAM,EAAE,OAAA,EAAS,UAAA,EAAW,GAAK,IAAA,IAA4B;AAAA,IAC3D,OAAA,EAAS,IAAA;AAAA,IACT,UAAA,EAAY;AAAA,GACd;AAEA,EAAA,OAAO,QAAQ,MAAM;AACnB,IAAA,OAAO,CAAC,OAAA,EAAS,UAAA,EAAY,SAAA,EAAW,KAAK,CAAA;AAAA,EAC/C,GAAG,CAAC,OAAA,EAAS,UAAA,EAAY,SAAA,EAAW,KAAK,CAAC,CAAA;AAC5C;;;;"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"pipelineRunResult.esm.js","sources":["../../src/models/pipelineRunResult.ts"],"sourcesContent":["/*\n * Copyright 2024 The Backstage Authors\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\nimport {\n ACSCheckResults,\n ACSImageScanResult,\n EnterpriseContractPolicy,\n EnterpriseContractResult,\n transformECResult,\n} from '@aonic-ui/pipelines';\nimport {\n PipelineRun,\n PipelineRunLogStep,\n RunStatus,\n} from '../types/pipelinerun';\nimport { cleanLogs, extractJSON, extractPipelineSteps } from '../utils/logs';\nimport { isEmpty, isNumber } from 'lodash';\n\nexport class PipelineRunResult {\n /**\n * Underlying data structure\n */\n data: PipelineRun;\n constructor(data: PipelineRun) {\n this.data = data;\n }\n\n get id(): string {\n // Check if the value is a number as zero would handled as falsy\n // fallback to displayName\n return isNumber(this.data?.id)\n ? this.data.id\n : this.data?.displayName || 'N/A';\n }\n\n get type(): string {\n return this?.tpaLink ? 'Promote' : 'Build';\n }\n\n get status(): RunStatus {\n return this.data?.status || RunStatus.Unknown;\n }\n\n get logs(): string {\n return cleanLogs(this.data?.logs || '');\n }\n\n get critical(): number | string {\n return this.acsImageScanResult?.result?.summary?.CRITICAL ?? 'N/A';\n }\n\n get important(): number | string {\n return this.acsImageScanResult?.result?.summary?.IMPORTANT ?? 'N/A';\n }\n\n get moderate(): number | string {\n return this.acsImageScanResult?.result?.summary?.MODERATE ?? 'N/A';\n }\n\n get low(): number | string {\n return this.acsImageScanResult?.result?.summary?.LOW ?? 'N/A';\n }\n\n get enterpriseContractPolicies(): EnterpriseContractPolicy[] | undefined {\n const data = extractJSON(\n this.logs,\n 'EC_EYECATCHER_BEGIN',\n 'EC_EYECATCHER_END',\n ) as EnterpriseContractResult;\n return transformECResult(data ?? {});\n }\n\n get acsImageScanResult(): ACSImageScanResult | undefined {\n return extractJSON(\n this.logs,\n 'ACS_IMAGE_SCAN_EYECATCHER_BEGIN',\n 'ACS_IMAGE_SCAN_EYECATCHER_END',\n ) as ACSImageScanResult;\n }\n\n get acsImageCheckResults(): ACSCheckResults | undefined {\n return extractJSON(\n this.logs,\n 'ACS_IMAGE_CHECK_EYECATCHER_BEGIN',\n 'ACS_IMAGE_CHECK_EYECATCHER_END',\n ) as ACSCheckResults;\n }\n\n get acsDeploymentCheckResults(): ACSCheckResults | undefined {\n return extractJSON(\n this.logs,\n 'ACS_DEPLOY_EYECATCHER_BEGIN',\n 'ACS_DEPLOY_EYECATCHER_END',\n ) as ACSCheckResults;\n }\n\n get hasNoScanResults(): boolean {\n return [\n this.enterpriseContractPolicies,\n this.acsImageScanResult,\n this.acsImageCheckResults,\n this.acsDeploymentCheckResults,\n ].every(value => isEmpty(value));\n }\n\n get steps(): PipelineRunLogStep[] {\n return extractPipelineSteps(this.logs) || [];\n }\n\n get hasSteps(): boolean {\n return this.steps.length > 0;\n }\n\n stepLogs(step: string): string {\n const found = this.steps.filter(v => v.name === step);\n // it could be found with undefind logs. Fallback on empty string\n return found ? found[0]?.logs ?? '' : '';\n }\n\n get tpaLink(): string {\n const link = extractJSON(\n this.logs,\n 'TPA_SBOM_URL_EYECATCHER_BEGIN',\n 'TPA_SBOM_URL_EYECATCHER_END',\n );\n return link?.TPA_SBOM_URL;\n }\n\n get isBuild(): boolean {\n return this.type === 'Build';\n }\n}\n"],"names":[],"mappings":";;;;;AA8BO,MAAM,
|
|
1
|
+
{"version":3,"file":"pipelineRunResult.esm.js","sources":["../../src/models/pipelineRunResult.ts"],"sourcesContent":["/*\n * Copyright 2024 The Backstage Authors\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\nimport {\n ACSCheckResults,\n ACSImageScanResult,\n EnterpriseContractPolicy,\n EnterpriseContractResult,\n transformECResult,\n} from '@aonic-ui/pipelines';\nimport {\n PipelineRun,\n PipelineRunLogStep,\n RunStatus,\n} from '../types/pipelinerun';\nimport { cleanLogs, extractJSON, extractPipelineSteps } from '../utils/logs';\nimport { isEmpty, isNumber } from 'lodash';\n\nexport class PipelineRunResult {\n /**\n * Underlying data structure\n */\n data: PipelineRun;\n constructor(data: PipelineRun) {\n this.data = data;\n }\n\n get id(): string {\n // Check if the value is a number as zero would handled as falsy\n // fallback to displayName\n return isNumber(this.data?.id)\n ? this.data.id\n : this.data?.displayName || 'N/A';\n }\n\n get type(): string {\n return this?.tpaLink ? 'Promote' : 'Build';\n }\n\n get status(): RunStatus {\n return this.data?.status || RunStatus.Unknown;\n }\n\n get logs(): string {\n return cleanLogs(this.data?.logs || '');\n }\n\n get critical(): number | string {\n return this.acsImageScanResult?.result?.summary?.CRITICAL ?? 'N/A';\n }\n\n get important(): number | string {\n return this.acsImageScanResult?.result?.summary?.IMPORTANT ?? 'N/A';\n }\n\n get moderate(): number | string {\n return this.acsImageScanResult?.result?.summary?.MODERATE ?? 'N/A';\n }\n\n get low(): number | string {\n return this.acsImageScanResult?.result?.summary?.LOW ?? 'N/A';\n }\n\n get enterpriseContractPolicies(): EnterpriseContractPolicy[] | undefined {\n const data = extractJSON(\n this.logs,\n 'EC_EYECATCHER_BEGIN',\n 'EC_EYECATCHER_END',\n ) as EnterpriseContractResult;\n return transformECResult(data ?? {});\n }\n\n get acsImageScanResult(): ACSImageScanResult | undefined {\n return extractJSON(\n this.logs,\n 'ACS_IMAGE_SCAN_EYECATCHER_BEGIN',\n 'ACS_IMAGE_SCAN_EYECATCHER_END',\n ) as ACSImageScanResult;\n }\n\n get acsImageCheckResults(): ACSCheckResults | undefined {\n return extractJSON(\n this.logs,\n 'ACS_IMAGE_CHECK_EYECATCHER_BEGIN',\n 'ACS_IMAGE_CHECK_EYECATCHER_END',\n ) as ACSCheckResults;\n }\n\n get acsDeploymentCheckResults(): ACSCheckResults | undefined {\n return extractJSON(\n this.logs,\n 'ACS_DEPLOY_EYECATCHER_BEGIN',\n 'ACS_DEPLOY_EYECATCHER_END',\n ) as ACSCheckResults;\n }\n\n get hasNoScanResults(): boolean {\n return [\n this.enterpriseContractPolicies,\n this.acsImageScanResult,\n this.acsImageCheckResults,\n this.acsDeploymentCheckResults,\n ].every(value => isEmpty(value));\n }\n\n get steps(): PipelineRunLogStep[] {\n return extractPipelineSteps(this.logs) || [];\n }\n\n get hasSteps(): boolean {\n return this.steps.length > 0;\n }\n\n stepLogs(step: string): string {\n const found = this.steps.filter(v => v.name === step);\n // it could be found with undefind logs. Fallback on empty string\n return found ? found[0]?.logs ?? '' : '';\n }\n\n get tpaLink(): string {\n const link = extractJSON(\n this.logs,\n 'TPA_SBOM_URL_EYECATCHER_BEGIN',\n 'TPA_SBOM_URL_EYECATCHER_END',\n );\n return link?.TPA_SBOM_URL;\n }\n\n get isBuild(): boolean {\n return this.type === 'Build';\n }\n}\n"],"names":[],"mappings":";;;;;AA8BO,MAAM,iBAAA,CAAkB;AAAA;AAAA;AAAA;AAAA,EAI7B,IAAA;AAAA,EACA,YAAY,IAAA,EAAmB;AAC7B,IAAA,IAAA,CAAK,IAAA,GAAO,IAAA;AAAA,EACd;AAAA,EAEA,IAAI,EAAA,GAAa;AAGf,IAAA,OAAO,QAAA,CAAS,IAAA,CAAK,IAAA,EAAM,EAAE,CAAA,GACzB,KAAK,IAAA,CAAK,EAAA,GACV,IAAA,CAAK,IAAA,EAAM,WAAA,IAAe,KAAA;AAAA,EAChC;AAAA,EAEA,IAAI,IAAA,GAAe;AACjB,IAAA,OAAO,IAAA,EAAM,UAAU,SAAA,GAAY,OAAA;AAAA,EACrC;AAAA,EAEA,IAAI,MAAA,GAAoB;AACtB,IAAA,OAAO,IAAA,CAAK,IAAA,EAAM,MAAA,IAAU,SAAA,CAAU,OAAA;AAAA,EACxC;AAAA,EAEA,IAAI,IAAA,GAAe;AACjB,IAAA,OAAO,SAAA,CAAU,IAAA,CAAK,IAAA,EAAM,IAAA,IAAQ,EAAE,CAAA;AAAA,EACxC;AAAA,EAEA,IAAI,QAAA,GAA4B;AAC9B,IAAA,OAAO,IAAA,CAAK,kBAAA,EAAoB,MAAA,EAAQ,OAAA,EAAS,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CAAM,CAAA,KAAA,KAAS,OAAA,CAAQ,KAAK,CAAC,CAAA;AAAA,EACjC;AAAA,EAEA,IAAI,KAAA,GAA8B;AAChC,IAAA,OAAO,oBAAA,CAAqB,IAAA,CAAK,IAAI,CAAA,IAAK,EAAC;AAAA,EAC7C;AAAA,EAEA,IAAI,QAAA,GAAoB;AACtB,IAAA,OAAO,IAAA,CAAK,MAAM,MAAA,GAAS,CAAA;AAAA,EAC7B;AAAA,EAEA,SAAS,IAAA,EAAsB;AAC7B,IAAA,MAAM,QAAQ,IAAA,CAAK,KAAA,CAAM,OAAO,CAAA,CAAA,KAAK,CAAA,CAAE,SAAS,IAAI,CAAA;AAEpD,IAAA,OAAO,KAAA,GAAQ,KAAA,CAAM,CAAC,CAAA,EAAG,QAAQ,EAAA,GAAK,EAAA;AAAA,EACxC;AAAA,EAEA,IAAI,OAAA,GAAkB;AACpB,IAAA,MAAM,IAAA,GAAO,WAAA;AAAA,MACX,IAAA,CAAK,IAAA;AAAA,MACL,+BAAA;AAAA,MACA;AAAA,KACF;AACA,IAAA,OAAO,IAAA,EAAM,YAAA;AAAA,EACf;AAAA,EAEA,IAAI,OAAA,GAAmB;AACrB,IAAA,OAAO,KAAK,IAAA,KAAS,OAAA;AAAA,EACvB;AACF;;;;"}
|
package/dist/plugin.esm.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import '@patternfly/patternfly/utilities/Accessibility/accessibility.css';
|
|
2
2
|
import '@patternfly/react-core/dist/styles/base-no-reset.css';
|
|
3
|
-
import { createPlugin, createApiFactory,
|
|
3
|
+
import { createPlugin, createApiFactory, fetchApiRef, discoveryApiRef, configApiRef, identityApiRef, gitlabAuthApiRef, createRoutableExtension } from '@backstage/core-plugin-api';
|
|
4
4
|
import { rootRouteRef } from './routes.esm.js';
|
|
5
5
|
import { mssvJenkinsApiRef, MssvJenkinsClient } from './api/jenkins.esm.js';
|
|
6
6
|
import { JenkinsClient, isJenkinsAvailable } from '@backstage-community/plugin-jenkins';
|
package/dist/plugin.esm.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"plugin.esm.js","sources":["../src/plugin.ts"],"sourcesContent":["/*\n * Copyright 2024 The Backstage Authors\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\nimport '@patternfly/patternfly/utilities/Accessibility/accessibility.css';\nimport '@patternfly/react-core/dist/styles/base-no-reset.css';\n\nimport {\n configApiRef,\n createApiFactory,\n createPlugin,\n discoveryApiRef,\n fetchApiRef,\n identityApiRef,\n gitlabAuthApiRef,\n createRoutableExtension,\n} from '@backstage/core-plugin-api';\n\nimport { rootRouteRef } from './routes';\nimport { MssvJenkinsClient, mssvJenkinsApiRef } from './api/jenkins';\nimport {\n JenkinsClient,\n isJenkinsAvailable,\n} from '@backstage-community/plugin-jenkins';\nimport { MssvGithubActionsClient, mssvGithubActionsApiRef } from './api/github';\nimport {\n GithubActionsClient,\n isGithubActionsAvailable,\n} from '@backstage-community/plugin-github-actions';\nimport { scmAuthApiRef } from '@backstage/integration-react';\nimport {\n CustomGitlabCiClient,\n MssvGitlabCIClient,\n mssvGitlabCIApiRef,\n} from './api/gitlab';\nimport { isGitlabAvailable } from '@immobiliarelabs/backstage-plugin-gitlab';\nimport { Entity } from '@backstage/catalog-model';\nimport {\n AzureDevOpsClient,\n isAzurePipelinesAvailable,\n} from '@backstage-community/plugin-azure-devops';\nimport { MssvAzureDevopsClient, mssvAzureDevopsApiRef } from './api/azure';\nimport { MSSV_ENABLED_ANNOTATION } from '@backstage-community/plugin-multi-source-security-viewer-common';\n\n/** @public */\nexport const multiSourceSecurityViewerPlugin = createPlugin({\n id: 'multi-source-security-viewer',\n apis: [\n createApiFactory({\n api: mssvJenkinsApiRef,\n deps: {\n discoveryApi: discoveryApiRef,\n fetchApi: fetchApiRef,\n },\n factory: ({ discoveryApi, fetchApi }) => {\n return new MssvJenkinsClient({\n jenkinsApi: new JenkinsClient({\n discoveryApi,\n fetchApi,\n }),\n });\n },\n }),\n createApiFactory({\n api: mssvGithubActionsApiRef,\n deps: {\n configApi: configApiRef,\n scmAuthApi: scmAuthApiRef,\n },\n factory: ({ configApi, scmAuthApi }) => {\n return new MssvGithubActionsClient({\n githubActionsApi: new GithubActionsClient({ configApi, scmAuthApi }),\n });\n },\n }),\n createApiFactory({\n api: mssvGitlabCIApiRef,\n deps: {\n configApi: configApiRef,\n discoveryApi: discoveryApiRef,\n gitlabAuthApi: gitlabAuthApiRef,\n identityApi: identityApiRef,\n },\n factory: ({ configApi, identityApi, discoveryApi, gitlabAuthApi }) => {\n return new MssvGitlabCIClient({\n gitlabCiApi: new CustomGitlabCiClient({\n discoveryApi,\n gitlabAuthApi,\n identityApi,\n codeOwnersPath: configApi.getOptionalString(\n 'gitlab.defaultCodeOwnersPath',\n ),\n readmePath: configApi.getOptionalString('gitlab.defaultReadmePath'),\n useOAuth: configApi.getOptionalBoolean('gitlab.useOAuth'),\n }),\n });\n },\n }),\n createApiFactory({\n api: mssvAzureDevopsApiRef,\n deps: {\n discoveryApi: discoveryApiRef,\n fetchApi: fetchApiRef,\n },\n factory: ({ discoveryApi, fetchApi }) => {\n return new MssvAzureDevopsClient({\n azureDevopsApi: new AzureDevOpsClient({\n discoveryApi,\n fetchApi,\n }),\n });\n },\n }),\n ],\n routes: {\n entityContent: rootRouteRef,\n },\n});\n\n/**\n * @public\n * Returns true if the CI provider annotations are set on component.\n */\nexport const isMultiCIAvailable = (entity: Entity): boolean =>\n isJenkinsAvailable(entity) ||\n isGitlabAvailable(entity) ||\n isGithubActionsAvailable(entity) ||\n isAzurePipelinesAvailable(entity);\n\n/**\n * @public\n * Returns true if CI provider and mssv annotations are set on component.\n */\nexport const isMultiCIAvailableAndEnabled = (entity: Entity): boolean =>\n Boolean(\n entity.metadata.annotations?.[MSSV_ENABLED_ANNOTATION] === 'true' &&\n isMultiCIAvailable(entity),\n );\n\n/** @public */\nexport const EntityMultiCIPipelinesContent =\n multiSourceSecurityViewerPlugin.provide(\n createRoutableExtension({\n name: 'EntityMultiCIPipelinesContent',\n component: () => import('./components/Router').then(m => m.Router),\n mountPoint: rootRouteRef,\n }),\n );\n"],"names":[],"mappings":";;;;;;;;;;;;;;;AAwDO,MAAM,kCAAkC,
|
|
1
|
+
{"version":3,"file":"plugin.esm.js","sources":["../src/plugin.ts"],"sourcesContent":["/*\n * Copyright 2024 The Backstage Authors\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\nimport '@patternfly/patternfly/utilities/Accessibility/accessibility.css';\nimport '@patternfly/react-core/dist/styles/base-no-reset.css';\n\nimport {\n configApiRef,\n createApiFactory,\n createPlugin,\n discoveryApiRef,\n fetchApiRef,\n identityApiRef,\n gitlabAuthApiRef,\n createRoutableExtension,\n} from '@backstage/core-plugin-api';\n\nimport { rootRouteRef } from './routes';\nimport { MssvJenkinsClient, mssvJenkinsApiRef } from './api/jenkins';\nimport {\n JenkinsClient,\n isJenkinsAvailable,\n} from '@backstage-community/plugin-jenkins';\nimport { MssvGithubActionsClient, mssvGithubActionsApiRef } from './api/github';\nimport {\n GithubActionsClient,\n isGithubActionsAvailable,\n} from '@backstage-community/plugin-github-actions';\nimport { scmAuthApiRef } from '@backstage/integration-react';\nimport {\n CustomGitlabCiClient,\n MssvGitlabCIClient,\n mssvGitlabCIApiRef,\n} from './api/gitlab';\nimport { isGitlabAvailable } from '@immobiliarelabs/backstage-plugin-gitlab';\nimport { Entity } from '@backstage/catalog-model';\nimport {\n AzureDevOpsClient,\n isAzurePipelinesAvailable,\n} from '@backstage-community/plugin-azure-devops';\nimport { MssvAzureDevopsClient, mssvAzureDevopsApiRef } from './api/azure';\nimport { MSSV_ENABLED_ANNOTATION } from '@backstage-community/plugin-multi-source-security-viewer-common';\n\n/** @public */\nexport const multiSourceSecurityViewerPlugin = createPlugin({\n id: 'multi-source-security-viewer',\n apis: [\n createApiFactory({\n api: mssvJenkinsApiRef,\n deps: {\n discoveryApi: discoveryApiRef,\n fetchApi: fetchApiRef,\n },\n factory: ({ discoveryApi, fetchApi }) => {\n return new MssvJenkinsClient({\n jenkinsApi: new JenkinsClient({\n discoveryApi,\n fetchApi,\n }),\n });\n },\n }),\n createApiFactory({\n api: mssvGithubActionsApiRef,\n deps: {\n configApi: configApiRef,\n scmAuthApi: scmAuthApiRef,\n },\n factory: ({ configApi, scmAuthApi }) => {\n return new MssvGithubActionsClient({\n githubActionsApi: new GithubActionsClient({ configApi, scmAuthApi }),\n });\n },\n }),\n createApiFactory({\n api: mssvGitlabCIApiRef,\n deps: {\n configApi: configApiRef,\n discoveryApi: discoveryApiRef,\n gitlabAuthApi: gitlabAuthApiRef,\n identityApi: identityApiRef,\n },\n factory: ({ configApi, identityApi, discoveryApi, gitlabAuthApi }) => {\n return new MssvGitlabCIClient({\n gitlabCiApi: new CustomGitlabCiClient({\n discoveryApi,\n gitlabAuthApi,\n identityApi,\n codeOwnersPath: configApi.getOptionalString(\n 'gitlab.defaultCodeOwnersPath',\n ),\n readmePath: configApi.getOptionalString('gitlab.defaultReadmePath'),\n useOAuth: configApi.getOptionalBoolean('gitlab.useOAuth'),\n }),\n });\n },\n }),\n createApiFactory({\n api: mssvAzureDevopsApiRef,\n deps: {\n discoveryApi: discoveryApiRef,\n fetchApi: fetchApiRef,\n },\n factory: ({ discoveryApi, fetchApi }) => {\n return new MssvAzureDevopsClient({\n azureDevopsApi: new AzureDevOpsClient({\n discoveryApi,\n fetchApi,\n }),\n });\n },\n }),\n ],\n routes: {\n entityContent: rootRouteRef,\n },\n});\n\n/**\n * @public\n * Returns true if the CI provider annotations are set on component.\n */\nexport const isMultiCIAvailable = (entity: Entity): boolean =>\n isJenkinsAvailable(entity) ||\n isGitlabAvailable(entity) ||\n isGithubActionsAvailable(entity) ||\n isAzurePipelinesAvailable(entity);\n\n/**\n * @public\n * Returns true if CI provider and mssv annotations are set on component.\n */\nexport const isMultiCIAvailableAndEnabled = (entity: Entity): boolean =>\n Boolean(\n entity.metadata.annotations?.[MSSV_ENABLED_ANNOTATION] === 'true' &&\n isMultiCIAvailable(entity),\n );\n\n/** @public */\nexport const EntityMultiCIPipelinesContent =\n multiSourceSecurityViewerPlugin.provide(\n createRoutableExtension({\n name: 'EntityMultiCIPipelinesContent',\n component: () => import('./components/Router').then(m => m.Router),\n mountPoint: rootRouteRef,\n }),\n );\n"],"names":[],"mappings":";;;;;;;;;;;;;;;AAwDO,MAAM,kCAAkC,YAAA,CAAa;AAAA,EAC1D,EAAA,EAAI,8BAAA;AAAA,EACJ,IAAA,EAAM;AAAA,IACJ,gBAAA,CAAiB;AAAA,MACf,GAAA,EAAK,iBAAA;AAAA,MACL,IAAA,EAAM;AAAA,QACJ,YAAA,EAAc,eAAA;AAAA,QACd,QAAA,EAAU;AAAA,OACZ;AAAA,MACA,OAAA,EAAS,CAAC,EAAE,YAAA,EAAc,UAAS,KAAM;AACvC,QAAA,OAAO,IAAI,iBAAA,CAAkB;AAAA,UAC3B,UAAA,EAAY,IAAI,aAAA,CAAc;AAAA,YAC5B,YAAA;AAAA,YACA;AAAA,WACD;AAAA,SACF,CAAA;AAAA,MACH;AAAA,KACD,CAAA;AAAA,IACD,gBAAA,CAAiB;AAAA,MACf,GAAA,EAAK,uBAAA;AAAA,MACL,IAAA,EAAM;AAAA,QACJ,SAAA,EAAW,YAAA;AAA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AAA,MACH;AAAA,KACD;AAAA,GACH;AAAA,EACA,MAAA,EAAQ;AAAA,IACN,aAAA,EAAe;AAAA;AAEnB,CAAC;AAMM,MAAM,kBAAA,GAAqB,CAAC,MAAA,KACjC,kBAAA,CAAmB,MAAM,CAAA,IACzB,iBAAA,CAAkB,MAAM,CAAA,IACxB,wBAAA,CAAyB,MAAM,CAAA,IAC/B,0BAA0B,MAAM;AAM3B,MAAM,4BAAA,GAA+B,CAAC,MAAA,KAC3C,OAAA;AAAA,EACE,OAAO,QAAA,CAAS,WAAA,GAAc,uBAAuB,CAAA,KAAM,MAAA,IACzD,mBAAmB,MAAM;AAC7B;AAGK,MAAM,gCACX,+BAAA,CAAgC,OAAA;AAAA,EAC9B,uBAAA,CAAwB;AAAA,IACtB,IAAA,EAAM,+BAAA;AAAA,IACN,SAAA,EAAW,MAAM,OAAO,4BAAqB,EAAE,IAAA,CAAK,CAAA,CAAA,KAAK,EAAE,MAAM,CAAA;AAAA,IACjE,UAAA,EAAY;AAAA,GACb;AACH;;;;"}
|
package/dist/routes.esm.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"routes.esm.js","sources":["../src/routes.ts"],"sourcesContent":["/*\n * Copyright 2024 The Backstage Authors\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\nimport { createRouteRef, createSubRouteRef } from '@backstage/core-plugin-api';\n\n/** @public */\nexport const rootRouteRef = createRouteRef({\n id: 'mssv',\n});\n\n/** @public */\nexport const jenkinsJobRunRouteRef = createSubRouteRef({\n id: 'mssv/runs',\n path: '/builds/:jobFullName/runs',\n parent: rootRouteRef,\n});\n\n/** @public */\nexport const githubActionsJobRouteRef = createSubRouteRef({\n id: 'mssv/build',\n path: '/:id',\n parent: rootRouteRef,\n});\n"],"names":[],"mappings":";;AAkBO,MAAM,eAAe,
|
|
1
|
+
{"version":3,"file":"routes.esm.js","sources":["../src/routes.ts"],"sourcesContent":["/*\n * Copyright 2024 The Backstage Authors\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\nimport { createRouteRef, createSubRouteRef } from '@backstage/core-plugin-api';\n\n/** @public */\nexport const rootRouteRef = createRouteRef({\n id: 'mssv',\n});\n\n/** @public */\nexport const jenkinsJobRunRouteRef = createSubRouteRef({\n id: 'mssv/runs',\n path: '/builds/:jobFullName/runs',\n parent: rootRouteRef,\n});\n\n/** @public */\nexport const githubActionsJobRouteRef = createSubRouteRef({\n id: 'mssv/build',\n path: '/:id',\n parent: rootRouteRef,\n});\n"],"names":[],"mappings":";;AAkBO,MAAM,eAAe,cAAA,CAAe;AAAA,EACzC,EAAA,EAAI;AACN,CAAC;AAGM,MAAM,wBAAwB,iBAAA,CAAkB;AAAA,EACrD,EAAA,EAAI,WAAA;AAAA,EACJ,IAAA,EAAM,2BAAA;AAAA,EACN,MAAA,EAAQ;AACV,CAAC;AAGM,MAAM,2BAA2B,iBAAA,CAAkB;AAAA,EACxD,EAAA,EAAI,YAAA;AAAA,EACJ,IAAA,EAAM,MAAA;AAAA,EACN,MAAA,EAAQ;AACV,CAAC;;;;"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"pipelinerun.esm.js","sources":["../../src/types/pipelinerun.ts"],"sourcesContent":["/*\n * Copyright 2024 The Backstage Authors\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\nimport {\n ACSCheckResults,\n ACSImageScanResult,\n EnterpriseContractPolicy,\n} from '@aonic-ui/pipelines';\n\nexport type PipelineRunLogStep = {\n name: string;\n logs: string;\n};\n\nexport enum RunStatus {\n // from @aonic-ui/pipelines to be used with Output\n Succeeded = 'Succeeded',\n Failed = 'Failed',\n Running = 'Running',\n 'In Progress' = 'In Progress',\n FailedToStart = 'FailedToStart',\n PipelineNotStarted = 'Starting',\n WithoutStatusConditions = 'WithoutStatusConditions',\n NeedsMerge = 'PR needs merge',\n Skipped = 'Skipped',\n Cancelled = 'Cancelled',\n Cancelling = 'Cancelling',\n Pending = 'Pending',\n Idle = 'Idle',\n TestWarning = 'Test Warnings',\n TestFailed = 'Test Failures',\n Unknown = 'Unknown',\n}\n\nexport enum GitlabPipelineStatus {\n success = 'success',\n failed = 'failed',\n cancelled = 'cancelled',\n pending = 'pending',\n running = 'running',\n}\n\nexport enum JenkinsRunStatus {\n SUCCESS = 'SUCCESS',\n FAILURE = 'FAILURE',\n ABORTED = 'ABORTED',\n UNSTABLE = 'UNSTABLE',\n NOT_BUILT = 'NOT_BUILT',\n QUEUED = 'QUEUED',\n RUNNING = 'RUNNING',\n 'IN PROGRESS' = 'IN PROGRESS',\n PENDING = 'PENDING',\n}\n\nexport type PipelineRun = {\n id?: string;\n displayName?: string;\n status?: RunStatus;\n logs?: string;\n steps?: PipelineRunLogStep[];\n tpaLink?: { TPA_SBOM_URL: string };\n ec?: {\n data: EnterpriseContractPolicy[];\n };\n acsImagesScanResult?: {\n data: ACSImageScanResult;\n };\n acsImageCheckResults?: {\n data: ACSCheckResults;\n };\n acsDeploymentCheckResults?: {\n data: ACSCheckResults;\n };\n};\n"],"names":["RunStatus","GitlabPipelineStatus","JenkinsRunStatus"],"mappings":"
|
|
1
|
+
{"version":3,"file":"pipelinerun.esm.js","sources":["../../src/types/pipelinerun.ts"],"sourcesContent":["/*\n * Copyright 2024 The Backstage Authors\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\nimport {\n ACSCheckResults,\n ACSImageScanResult,\n EnterpriseContractPolicy,\n} from '@aonic-ui/pipelines';\n\nexport type PipelineRunLogStep = {\n name: string;\n logs: string;\n};\n\nexport enum RunStatus {\n // from @aonic-ui/pipelines to be used with Output\n Succeeded = 'Succeeded',\n Failed = 'Failed',\n Running = 'Running',\n 'In Progress' = 'In Progress',\n FailedToStart = 'FailedToStart',\n PipelineNotStarted = 'Starting',\n WithoutStatusConditions = 'WithoutStatusConditions',\n NeedsMerge = 'PR needs merge',\n Skipped = 'Skipped',\n Cancelled = 'Cancelled',\n Cancelling = 'Cancelling',\n Pending = 'Pending',\n Idle = 'Idle',\n TestWarning = 'Test Warnings',\n TestFailed = 'Test Failures',\n Unknown = 'Unknown',\n}\n\nexport enum GitlabPipelineStatus {\n success = 'success',\n failed = 'failed',\n cancelled = 'cancelled',\n pending = 'pending',\n running = 'running',\n}\n\nexport enum JenkinsRunStatus {\n SUCCESS = 'SUCCESS',\n FAILURE = 'FAILURE',\n ABORTED = 'ABORTED',\n UNSTABLE = 'UNSTABLE',\n NOT_BUILT = 'NOT_BUILT',\n QUEUED = 'QUEUED',\n RUNNING = 'RUNNING',\n 'IN PROGRESS' = 'IN PROGRESS',\n PENDING = 'PENDING',\n}\n\nexport type PipelineRun = {\n id?: string;\n displayName?: string;\n status?: RunStatus;\n logs?: string;\n steps?: PipelineRunLogStep[];\n tpaLink?: { TPA_SBOM_URL: string };\n ec?: {\n data: EnterpriseContractPolicy[];\n };\n acsImagesScanResult?: {\n data: ACSImageScanResult;\n };\n acsImageCheckResults?: {\n data: ACSCheckResults;\n };\n acsDeploymentCheckResults?: {\n data: ACSCheckResults;\n };\n};\n"],"names":["RunStatus","GitlabPipelineStatus","JenkinsRunStatus"],"mappings":"AA0BO,IAAK,SAAA,qBAAAA,UAAAA,KAAL;AAEL,EAAAA,WAAA,WAAA,CAAA,GAAY,WAAA;AACZ,EAAAA,WAAA,QAAA,CAAA,GAAS,QAAA;AACT,EAAAA,WAAA,SAAA,CAAA,GAAU,SAAA;AACV,EAAAA,WAAA,aAAA,CAAA,GAAgB,aAAA;AAChB,EAAAA,WAAA,eAAA,CAAA,GAAgB,eAAA;AAChB,EAAAA,WAAA,oBAAA,CAAA,GAAqB,UAAA;AACrB,EAAAA,WAAA,yBAAA,CAAA,GAA0B,yBAAA;AAC1B,EAAAA,WAAA,YAAA,CAAA,GAAa,gBAAA;AACb,EAAAA,WAAA,SAAA,CAAA,GAAU,SAAA;AACV,EAAAA,WAAA,WAAA,CAAA,GAAY,WAAA;AACZ,EAAAA,WAAA,YAAA,CAAA,GAAa,YAAA;AACb,EAAAA,WAAA,SAAA,CAAA,GAAU,SAAA;AACV,EAAAA,WAAA,MAAA,CAAA,GAAO,MAAA;AACP,EAAAA,WAAA,aAAA,CAAA,GAAc,eAAA;AACd,EAAAA,WAAA,YAAA,CAAA,GAAa,eAAA;AACb,EAAAA,WAAA,SAAA,CAAA,GAAU,SAAA;AAjBA,EAAA,OAAAA,UAAAA;AAAA,CAAA,EAAA,SAAA,IAAA,EAAA;AAoBL,IAAK,oBAAA,qBAAAC,qBAAAA,KAAL;AACL,EAAAA,sBAAA,SAAA,CAAA,GAAU,SAAA;AACV,EAAAA,sBAAA,QAAA,CAAA,GAAS,QAAA;AACT,EAAAA,sBAAA,WAAA,CAAA,GAAY,WAAA;AACZ,EAAAA,sBAAA,SAAA,CAAA,GAAU,SAAA;AACV,EAAAA,sBAAA,SAAA,CAAA,GAAU,SAAA;AALA,EAAA,OAAAA,qBAAAA;AAAA,CAAA,EAAA,oBAAA,IAAA,EAAA;AAQL,IAAK,gBAAA,qBAAAC,iBAAAA,KAAL;AACL,EAAAA,kBAAA,SAAA,CAAA,GAAU,SAAA;AACV,EAAAA,kBAAA,SAAA,CAAA,GAAU,SAAA;AACV,EAAAA,kBAAA,SAAA,CAAA,GAAU,SAAA;AACV,EAAAA,kBAAA,UAAA,CAAA,GAAW,UAAA;AACX,EAAAA,kBAAA,WAAA,CAAA,GAAY,WAAA;AACZ,EAAAA,kBAAA,QAAA,CAAA,GAAS,QAAA;AACT,EAAAA,kBAAA,SAAA,CAAA,GAAU,SAAA;AACV,EAAAA,kBAAA,aAAA,CAAA,GAAgB,aAAA;AAChB,EAAAA,kBAAA,SAAA,CAAA,GAAU,SAAA;AATA,EAAA,OAAAA,iBAAAA;AAAA,CAAA,EAAA,gBAAA,IAAA,EAAA;;;;"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"downloadLogFile.esm.js","sources":["../../src/utils/downloadLogFile.ts"],"sourcesContent":["/*\n * Copyright 2024 The Backstage Authors\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\n/**\n * Triggers a download of the given string data as a file with the specified filename.\n *\n * @param data - The content to download\n * @param filename - The name of the file to save as\n */\nexport const downloadLogFile = (data: string, filename: string) => {\n const blob = new Blob([data], { type: 'text/plain;charset=utf-8' });\n const url = URL.createObjectURL(blob);\n const link = document.createElement('a');\n link.href = url;\n link.download = filename;\n link.click();\n URL.revokeObjectURL(url);\n};\n"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"downloadLogFile.esm.js","sources":["../../src/utils/downloadLogFile.ts"],"sourcesContent":["/*\n * Copyright 2024 The Backstage Authors\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\n/**\n * Triggers a download of the given string data as a file with the specified filename.\n *\n * @param data - The content to download\n * @param filename - The name of the file to save as\n */\nexport const downloadLogFile = (data: string, filename: string) => {\n const blob = new Blob([data], { type: 'text/plain;charset=utf-8' });\n const url = URL.createObjectURL(blob);\n const link = document.createElement('a');\n link.href = url;\n link.download = filename;\n link.click();\n URL.revokeObjectURL(url);\n};\n"],"names":[],"mappings":"AAsBO,MAAM,eAAA,GAAkB,CAAC,IAAA,EAAc,QAAA,KAAqB;AACjE,EAAA,MAAM,IAAA,GAAO,IAAI,IAAA,CAAK,CAAC,IAAI,CAAA,EAAG,EAAE,IAAA,EAAM,0BAAA,EAA4B,CAAA;AAClE,EAAA,MAAM,GAAA,GAAM,GAAA,CAAI,eAAA,CAAgB,IAAI,CAAA;AACpC,EAAA,MAAM,IAAA,GAAO,QAAA,CAAS,aAAA,CAAc,GAAG,CAAA;AACvC,EAAA,IAAA,CAAK,IAAA,GAAO,GAAA;AACZ,EAAA,IAAA,CAAK,QAAA,GAAW,QAAA;AAChB,EAAA,IAAA,CAAK,KAAA,EAAM;AACX,EAAA,GAAA,CAAI,gBAAgB,GAAG,CAAA;AACzB;;;;"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"logs.esm.js","sources":["../../src/utils/logs.ts"],"sourcesContent":["/*\n * Copyright 2024 The Backstage Authors\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\nimport { PipelineRunLogStep } from '../types/pipelinerun';\n\n/*\n * Clean escaped characters from logs\n * @param logs: string\n * @returns string\n * */\nexport const cleanLogs = (logs: string): string => {\n return !logs\n ? ''\n : logs.replace(/\\\\\"/g, '\"').replace(/\\\\n/g, '\\n').replace(/\\\\\\\\/g, '');\n};\n\n/*\n * Extract JSON between two anchors (EYE_CATCHERS)\n * @param logs: string\n * @returns Record<string, any> | undefined\n */\nexport const extractJSON = (\n logs: string,\n startAnchor: string,\n endAnchor: string,\n): Record<string, any> | undefined => {\n const cleanedLogs = cleanLogs(logs);\n const regex = new RegExp(`${startAnchor}(.*?)${endAnchor}`, 's');\n const match = cleanedLogs.match(regex);\n\n if (!match) {\n return undefined;\n }\n\n // Remove log timestamp till timezone\n const timestampPattern = /^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}\\.\\d+Z/g;\n const cleanMatch: string = match[1].split('\\n').reduce((acc, line) => {\n const cleanedLine = line.replace(timestampPattern, '').trim();\n if (!cleanedLine) return acc;\n return `${acc} ${cleanedLine}`;\n }, '');\n\n try {\n return JSON.parse(cleanMatch);\n } catch (e) {\n return undefined;\n }\n};\n\n/*\n * Extract Pipelinesteps from logs\n * @param stepLogs: string\n * @returns PipelineRunLogStep[]\n */\nexport const extractPipelineSteps = (\n stepLogs: string,\n): PipelineRunLogStep[] => {\n // TODO: Async logs may be in incorrect order\n const cleanedLogs = cleanLogs(stepLogs);\n const stepLines = cleanedLogs.split('Step: ');\n const knownSteps = new Set<string>();\n // Skip the first line as it is not a step\n return stepLines\n .slice(1)\n .reduce((acc: PipelineRunLogStep[], stepLine: string) => {\n const [name, ...logs] = stepLine.split('\\n');\n // Ignore dupes\n if (!knownSteps.has(name)) {\n acc.push({ name, logs: logs.join('\\n') });\n knownSteps.add(name);\n }\n return acc;\n }, []);\n};\n"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"logs.esm.js","sources":["../../src/utils/logs.ts"],"sourcesContent":["/*\n * Copyright 2024 The Backstage Authors\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\nimport { PipelineRunLogStep } from '../types/pipelinerun';\n\n/*\n * Clean escaped characters from logs\n * @param logs: string\n * @returns string\n * */\nexport const cleanLogs = (logs: string): string => {\n return !logs\n ? ''\n : logs.replace(/\\\\\"/g, '\"').replace(/\\\\n/g, '\\n').replace(/\\\\\\\\/g, '');\n};\n\n/*\n * Extract JSON between two anchors (EYE_CATCHERS)\n * @param logs: string\n * @returns Record<string, any> | undefined\n */\nexport const extractJSON = (\n logs: string,\n startAnchor: string,\n endAnchor: string,\n): Record<string, any> | undefined => {\n const cleanedLogs = cleanLogs(logs);\n const regex = new RegExp(`${startAnchor}(.*?)${endAnchor}`, 's');\n const match = cleanedLogs.match(regex);\n\n if (!match) {\n return undefined;\n }\n\n // Remove log timestamp till timezone\n const timestampPattern = /^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}\\.\\d+Z/g;\n const cleanMatch: string = match[1].split('\\n').reduce((acc, line) => {\n const cleanedLine = line.replace(timestampPattern, '').trim();\n if (!cleanedLine) return acc;\n return `${acc} ${cleanedLine}`;\n }, '');\n\n try {\n return JSON.parse(cleanMatch);\n } catch (e) {\n return undefined;\n }\n};\n\n/*\n * Extract Pipelinesteps from logs\n * @param stepLogs: string\n * @returns PipelineRunLogStep[]\n */\nexport const extractPipelineSteps = (\n stepLogs: string,\n): PipelineRunLogStep[] => {\n // TODO: Async logs may be in incorrect order\n const cleanedLogs = cleanLogs(stepLogs);\n const stepLines = cleanedLogs.split('Step: ');\n const knownSteps = new Set<string>();\n // Skip the first line as it is not a step\n return stepLines\n .slice(1)\n .reduce((acc: PipelineRunLogStep[], stepLine: string) => {\n const [name, ...logs] = stepLine.split('\\n');\n // Ignore dupes\n if (!knownSteps.has(name)) {\n acc.push({ name, logs: logs.join('\\n') });\n knownSteps.add(name);\n }\n return acc;\n }, []);\n};\n"],"names":[],"mappings":"AAsBO,MAAM,SAAA,GAAY,CAAC,IAAA,KAAyB;AACjD,EAAA,OAAO,CAAC,IAAA,GACJ,EAAA,GACA,IAAA,CAAK,QAAQ,MAAA,EAAQ,GAAG,CAAA,CAAE,OAAA,CAAQ,MAAA,EAAQ,IAAI,CAAA,CAAE,OAAA,CAAQ,SAAS,EAAE,CAAA;AACzE;AAOO,MAAM,WAAA,GAAc,CACzB,IAAA,EACA,WAAA,EACA,SAAA,KACoC;AACpC,EAAA,MAAM,WAAA,GAAc,UAAU,IAAI,CAAA;AAClC,EAAA,MAAM,KAAA,GAAQ,IAAI,MAAA,CAAO,CAAA,EAAG,WAAW,CAAA,KAAA,EAAQ,SAAS,IAAI,GAAG,CAAA;AAC/D,EAAA,MAAM,KAAA,GAAQ,WAAA,CAAY,KAAA,CAAM,KAAK,CAAA;AAErC,EAAA,IAAI,CAAC,KAAA,EAAO;AACV,IAAA,OAAO,MAAA;AAAA,EACT;AAGA,EAAA,MAAM,gBAAA,GAAmB,6CAAA;AACzB,EAAA,MAAM,UAAA,GAAqB,KAAA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i-source-security-viewer",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.16.0",
|
|
4
4
|
"main": "dist/index.esm.js",
|
|
5
5
|
"types": "dist/index.d.ts",
|
|
6
6
|
"license": "Apache-2.0",
|
|
@@ -45,16 +45,16 @@
|
|
|
45
45
|
"@backstage-community/plugin-azure-devops-common": "^0.21.0",
|
|
46
46
|
"@backstage-community/plugin-github-actions": "^0.22.0",
|
|
47
47
|
"@backstage-community/plugin-jenkins": "^0.30.0",
|
|
48
|
-
"@backstage-community/plugin-multi-source-security-viewer-common": "^0.
|
|
49
|
-
"@backstage/catalog-model": "^1.
|
|
50
|
-
"@backstage/core-components": "^0.18.
|
|
51
|
-
"@backstage/core-plugin-api": "^1.12.
|
|
52
|
-
"@backstage/integration-react": "^1.2.
|
|
53
|
-
"@backstage/plugin-catalog-react": "^2.1.
|
|
54
|
-
"@backstage/plugin-permission-react": "^0.
|
|
55
|
-
"@backstage/theme": "^0.7.
|
|
56
|
-
"@backstage/ui": "^0.
|
|
57
|
-
"@immobiliarelabs/backstage-plugin-gitlab": "^
|
|
48
|
+
"@backstage-community/plugin-multi-source-security-viewer-common": "^0.14.0",
|
|
49
|
+
"@backstage/catalog-model": "^1.8.0",
|
|
50
|
+
"@backstage/core-components": "^0.18.9",
|
|
51
|
+
"@backstage/core-plugin-api": "^1.12.5",
|
|
52
|
+
"@backstage/integration-react": "^1.2.17",
|
|
53
|
+
"@backstage/plugin-catalog-react": "^2.1.4",
|
|
54
|
+
"@backstage/plugin-permission-react": "^0.5.0",
|
|
55
|
+
"@backstage/theme": "^0.7.3",
|
|
56
|
+
"@backstage/ui": "^0.14.3",
|
|
57
|
+
"@immobiliarelabs/backstage-plugin-gitlab": "^7.0.0",
|
|
58
58
|
"@material-ui/core": "^4.9.13",
|
|
59
59
|
"@material-ui/icons": "^4.9.1",
|
|
60
60
|
"@material-ui/lab": "^4.0.0-alpha.61",
|
|
@@ -72,10 +72,10 @@
|
|
|
72
72
|
"react-router-dom": "^6.0.0"
|
|
73
73
|
},
|
|
74
74
|
"devDependencies": {
|
|
75
|
-
"@backstage/cli": "^0.36.
|
|
76
|
-
"@backstage/core-app-api": "^1.
|
|
77
|
-
"@backstage/dev-utils": "^1.1.
|
|
78
|
-
"@backstage/test-utils": "^1.7.
|
|
75
|
+
"@backstage/cli": "^0.36.1",
|
|
76
|
+
"@backstage/core-app-api": "^1.20.0",
|
|
77
|
+
"@backstage/dev-utils": "^1.1.22",
|
|
78
|
+
"@backstage/test-utils": "^1.7.17",
|
|
79
79
|
"@testing-library/jest-dom": "^6.0.0",
|
|
80
80
|
"@testing-library/react": "^16.0.0",
|
|
81
81
|
"@testing-library/user-event": "^14.0.0",
|