-
Notifications
You must be signed in to change notification settings - Fork 153
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(tekton): Add view output action in pipelinerun list view
- Loading branch information
1 parent
c19d23b
commit 2417a17
Showing
18 changed files
with
1,509 additions
and
50 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,95 @@ | ||
import { EnterpriseContractResult } from '../types/output'; | ||
|
||
export const enterpriseContractResult: EnterpriseContractResult = { | ||
success: false, | ||
components: [ | ||
{ | ||
name: 'Unnamed', | ||
containerImage: | ||
'quay-q8tg2.apps.cluster-q8tg2.sandbox1329.opentlc.com/quayadmin/sbtestapp@sha256:bb1fcefb952b9f0b6c0c6fe9e84ea8a20fd828a2744dfbd1a9cb164d85507e12', | ||
violations: [ | ||
{ | ||
msg: | ||
'No image attestations found matching the given public key. Verify the correct public key was provided, and one or more attestations were created. Error: no matching attestations: no valid tlog entries found rekor log public key not found for payload. Check your TUF root (see cosign initialize) or set a custom key with env var SIGSTORE_REKOR_PUBLIC_KEY\n' + | ||
' no valid tlog entries found rekor log public key not found for payload. Check your TUF root (see cosign initialize) or set a custom key with env var SIGSTORE_REKOR_PUBLIC_KEY', | ||
metadata: { | ||
collections: [], | ||
code: 'builtin.attestation.signature_check', | ||
description: | ||
'The attestation signature matches available signing materials.', | ||
title: 'Attestation signature check passed', | ||
}, | ||
}, | ||
|
||
{ | ||
msg: 'No image signatures found matching the given public key. Verify the correct public key was provided, and a signature was created. Error: no matching signatures: no valid tlog entries found rekor log public key not found for payload. Check your TUF root (see cosign initialize) or set a custom key with env var SIGSTORE_REKOR_PUBLIC_KEY', | ||
metadata: { | ||
collections: [], | ||
code: 'builtin.image.signature_check', | ||
description: | ||
'The image signature matches available signing materials.', | ||
title: 'Image signature check passed', | ||
}, | ||
}, | ||
], | ||
warnings: [ | ||
{ | ||
msg: | ||
'No image attestations found matching the given public key. Verify the correct public key was provided, and one or more attestations were created. Error: no matching attestations: no valid tlog entries found rekor log public key not found for payload. Check your TUF root (see cosign initialize) or set a custom key with env var SIGSTORE_REKOR_PUBLIC_KEY\n' + | ||
' no valid tlog entries found rekor log public key not found for payload. Check your TUF root (see cosign initialize) or set a custom key with env var SIGSTORE_REKOR_PUBLIC_KEY', | ||
metadata: { | ||
collections: [], | ||
code: 'builtin.attestation.signature_check', | ||
description: | ||
'The attestation signature matches available signing materials.', | ||
title: 'Attestation signature check passed', | ||
}, | ||
}, | ||
], | ||
successes: [ | ||
{ | ||
msg: | ||
'No image attestations found matching the given public key. Verify the correct public key was provided, and one or more attestations were created. Error: no matching attestations: no valid tlog entries found rekor log public key not found for payload. Check your TUF root (see cosign initialize) or set a custom key with env var SIGSTORE_REKOR_PUBLIC_KEY\n' + | ||
' no valid tlog entries found rekor log public key not found for payload. Check your TUF root (see cosign initialize) or set a custom key with env var SIGSTORE_REKOR_PUBLIC_KEY', | ||
metadata: { | ||
collections: [], | ||
code: 'builtin.attestation.signature_check', | ||
description: | ||
'The attestation signature matches available signing materials.', | ||
title: 'Attestation signature check passed', | ||
}, | ||
}, | ||
], | ||
success: false, | ||
}, | ||
], | ||
|
||
key: | ||
'-----BEGIN PUBLIC KEY-----\n' + | ||
'MFkwEwYHKoZIzj0CAQYIKoZIzj0DAQcDQgAEufoDqiDhIyBmgFLdbgZugfk0qJSx\n' + | ||
'mF3EqQuuhU1gMlQiAs2kWVHEc/SKyp4/ktaG3ktLgAhids7RfqDm7iAgGg==\n' + | ||
'-----END PUBLIC KEY-----\n' + | ||
'', | ||
policy: { | ||
configuration: { | ||
collections: [], | ||
exclude: [], | ||
}, | ||
description: | ||
'Includes rules for levels 1, 2 & 3 of SLSA v0.1. This is the default config used for new RHTAP applications. Available collections are defined in https://redhat-appstudio.github.io/docs.stonesoup.io/ec-policies/release_policy.html#_available_rule_collections. If a different policy configuration is desired, this resource can serve as a starting point. See the docs on how to include and exclude rules https://redhat-appstudio.github.io/docs.stonesoup.io/ec-policies/policy_configuration.html#_including_and_excluding_rules.', | ||
sources: [ | ||
{ | ||
name: 'Default', | ||
policy: [ | ||
'github.com/enterprise-contract/ec-policies//policy/lib', | ||
'github.com/enterprise-contract/ec-policies//policy/release', | ||
], | ||
data: [ | ||
'oci::quay.io/redhat-appstudio-tekton-catalog/data-acceptable-bundles:latest', | ||
'github.com/release-engineering/rhtap-ec-policy//data', | ||
], | ||
}, | ||
], | ||
publicKey: '/workspace/cosign.pub', | ||
}, | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
import * as React from 'react'; | ||
|
||
import { createStyles, makeStyles, Theme } from '@material-ui/core'; | ||
import { SVGIconProps } from '@patternfly/react-icons/dist/esm/createIcon'; | ||
import classNames from 'classnames'; | ||
|
||
const useStyles = makeStyles((theme: Theme) => | ||
createStyles({ | ||
icon: { | ||
fill: 'var(--pf-v5-global--Color--100)', | ||
}, | ||
disabledButton: { | ||
fill: theme.palette.grey[600], | ||
}, | ||
}), | ||
); | ||
|
||
const OutputIcon: React.FC<SVGIconProps> = (props): React.ReactElement => { | ||
const classes = useStyles(); | ||
return ( | ||
<svg | ||
width="24" | ||
height="24" | ||
viewBox="0 0 24 24" | ||
fill="none" | ||
xmlns="http://www.w3.org/2000/svg" | ||
className={classNames(classes.icon, { | ||
[classes.disabledButton]: props.disabled, | ||
})} | ||
{...props} | ||
> | ||
<path d="M5 21C4.45 21 3.97917 20.8042 3.5875 20.4125C3.19583 20.0208 3 19.55 3 19V5C3 4.45 3.19583 3.97917 3.5875 3.5875C3.97917 3.19583 4.45 3 5 3H19C19.55 3 20.0208 3.19583 20.4125 3.5875C20.8042 3.97917 21 4.45 21 5V19C21 19.55 20.8042 20.0208 20.4125 20.4125C20.0208 20.8042 19.55 21 19 21H5ZM5 19H19V7H5V19ZM7 12V10H17V12H7ZM7 16V14H13V16H7Z" /> | ||
</svg> | ||
); | ||
}; | ||
|
||
export default OutputIcon; |
Oops, something went wrong.