Skip to content

Commit

Permalink
fix(pipelines): replace static image url with actual image link
Browse files Browse the repository at this point in the history
  • Loading branch information
karthikjeeyar committed Feb 8, 2024
1 parent bdce6c3 commit 5339cd3
Show file tree
Hide file tree
Showing 3 changed files with 43 additions and 4 deletions.
5 changes: 5 additions & 0 deletions .changeset/red-months-travel.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@aonic-ui/pipelines": minor
---

replace static image repo string with actual image link
Original file line number Diff line number Diff line change
@@ -1,14 +1,31 @@
import { Text, TextContent, TextVariants } from '@patternfly/react-core';
import { Text, TextContent, TextVariants, Button } from '@patternfly/react-core';
import { useACSContext } from '../AdvancedClusterSecurityContext';

const ImageCheckTitle = () => {
const { acsImageCheckResults } = useACSContext();

return (
<TextContent
style={{
marginBottom: 'var(--pf-v5-global--spacer--sm)',
}}
>
<Text component={TextVariants.p}>
This task returns ACS vulnerability image check results for image: quay.io/repo
This task returns ACS vulnerability image check results for image:{' '}
<Button
variant="link"
isInline
component={(props) => (
<a
{...props}
href={`https://${acsImageCheckResults?.results?.[0]?.metadata?.additionalInfo?.name}`}
target="_blank"
rel="noreferrer"
/>
)}
>
{acsImageCheckResults?.results?.[0]?.metadata?.additionalInfo?.name}
</Button>
</Text>
</TextContent>
);
Expand Down
Original file line number Diff line number Diff line change
@@ -1,14 +1,31 @@
import { Text, TextContent, TextVariants } from '@patternfly/react-core';
import { Button, Text, TextContent, TextVariants } from '@patternfly/react-core';
import { useACSContext } from '../AdvancedClusterSecurityContext';

const ImageScanTitle = () => {
const { acsImageCheckResults } = useACSContext();

return (
<TextContent
style={{
marginBottom: 'var(--pf-v5-global--spacer--sm)',
}}
>
<Text component={TextVariants.p}>
This task returns ACS vulnerability scan results for image: quay.io/repo
This task returns ACS vulnerability scan results for image:{' '}
<Button
variant="link"
isInline
component={(props) => (
<a
{...props}
href={`https://${acsImageCheckResults?.results?.[0]?.metadata?.additionalInfo?.name}`}
target="_blank"
rel="noreferrer"
/>
)}
>
{acsImageCheckResults?.results?.[0]?.metadata?.additionalInfo?.name}
</Button>
</Text>
</TextContent>
);
Expand Down

0 comments on commit 5339cd3

Please sign in to comment.