Skip to content

Commit

Permalink
Merge branch 'main' into add_preflight_task
Browse files Browse the repository at this point in the history
  • Loading branch information
MartinBasti authored Feb 29, 2024
2 parents 65df240 + c513018 commit 379d88d
Show file tree
Hide file tree
Showing 19 changed files with 26 additions and 21 deletions.
4 changes: 2 additions & 2 deletions .tekton/tasks/ec-checks.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ spec:
$(all_tasks_dir all_tasks-ec)
- name: validate-all-tasks
workingDir: "$(workspaces.source.path)/source"
image: quay.io/enterprise-contract/ec-cli:snapshot@sha256:48269e4d72f3e28210dc34f3f336b696ae2cb8ac4ae3cafb41d3ae33f497d74a
image: quay.io/enterprise-contract/ec-cli:snapshot@sha256:3bed976c747bddc406966beeed484b838649e21b0d38eb113a49790ae4512e6e
script: |
set -euo pipefail
Expand All @@ -38,7 +38,7 @@ spec:
ec validate input --policy "${policy}" --output yaml --strict=true ${args[*]}
- name: validate-build-tasks
workingDir: "$(workspaces.source.path)/source"
image: quay.io/enterprise-contract/ec-cli:snapshot@sha256:48269e4d72f3e28210dc34f3f336b696ae2cb8ac4ae3cafb41d3ae33f497d74a
image: quay.io/enterprise-contract/ec-cli:snapshot@sha256:3bed976c747bddc406966beeed484b838649e21b0d38eb113a49790ae4512e6e
script: |
set -euo pipefail
Expand Down
5 changes: 5 additions & 0 deletions pipelines/docker-build-rhtap/patch.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,11 @@
name: stackrox-secret
type: string
default: "rox-api-token"
- op: add
path: /spec/results/-
value:
name: ACS_SCAN_OUTPUT
value: $(tasks.acs-image-scan.results.SCAN_OUTPUT)
- op: replace
path: /spec/tasks/3/taskRef
value:
Expand Down
2 changes: 1 addition & 1 deletion pipelines/enterprise-contract-everything.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ spec:
resolver: bundles
params:
- name: bundle
value: quay.io/enterprise-contract/ec-task-bundle:snapshot@sha256:89acb91d7ef53943d4220f9b1445352f96fa4a38ee4df6196d653c093d0abf56
value: quay.io/enterprise-contract/ec-task-bundle:snapshot@sha256:bfa038ebb99229bddf98b0f50cb90b78c525163a95039f5120098872e3964b3e
- name: name
value: verify-enterprise-contract
- name: kind
Expand Down
2 changes: 1 addition & 1 deletion pipelines/enterprise-contract-redhat-no-hermetic.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ spec:
resolver: bundles
params:
- name: bundle
value: quay.io/enterprise-contract/ec-task-bundle:snapshot@sha256:89acb91d7ef53943d4220f9b1445352f96fa4a38ee4df6196d653c093d0abf56
value: quay.io/enterprise-contract/ec-task-bundle:snapshot@sha256:bfa038ebb99229bddf98b0f50cb90b78c525163a95039f5120098872e3964b3e
- name: name
value: verify-enterprise-contract
- name: kind
Expand Down
2 changes: 1 addition & 1 deletion pipelines/enterprise-contract-redhat.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ spec:
resolver: bundles
params:
- name: bundle
value: quay.io/enterprise-contract/ec-task-bundle:snapshot@sha256:89acb91d7ef53943d4220f9b1445352f96fa4a38ee4df6196d653c093d0abf56
value: quay.io/enterprise-contract/ec-task-bundle:snapshot@sha256:bfa038ebb99229bddf98b0f50cb90b78c525163a95039f5120098872e3964b3e
- name: name
value: verify-enterprise-contract
- name: kind
Expand Down
2 changes: 1 addition & 1 deletion pipelines/enterprise-contract-slsa3.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ spec:
resolver: bundles
params:
- name: bundle
value: quay.io/enterprise-contract/ec-task-bundle:snapshot@sha256:89acb91d7ef53943d4220f9b1445352f96fa4a38ee4df6196d653c093d0abf56
value: quay.io/enterprise-contract/ec-task-bundle:snapshot@sha256:bfa038ebb99229bddf98b0f50cb90b78c525163a95039f5120098872e3964b3e
- name: name
value: verify-enterprise-contract
- name: kind
Expand Down
2 changes: 1 addition & 1 deletion pipelines/enterprise-contract.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ spec:
resolver: bundles
params:
- name: bundle
value: quay.io/enterprise-contract/ec-task-bundle:snapshot@sha256:89acb91d7ef53943d4220f9b1445352f96fa4a38ee4df6196d653c093d0abf56
value: quay.io/enterprise-contract/ec-task-bundle:snapshot@sha256:bfa038ebb99229bddf98b0f50cb90b78c525163a95039f5120098872e3964b3e
- name: name
value: verify-enterprise-contract
- name: kind
Expand Down
2 changes: 1 addition & 1 deletion task/clair-scan/0.1/clair-scan.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ spec:
clair-action report --image-ref=$imageanddigest --db-path=/tmp/matcher.db --format=quay | tee /tekton/home/clair-result.json || true
- name: conftest-vulnerabilities
image: quay.io/redhat-appstudio/hacbs-test:v1.2.1@sha256:f351461c26733bf65cd6cddd5933114c9a4a1e2b5546f7505ddc95a2fa44c709
image: quay.io/redhat-appstudio/hacbs-test:v1.3.0@sha256:cd4601a7d71ebd908046db7a9b7010611b8b372fe941664d5163c81250a1a1fc
# per https://kubernetes.io/docs/concepts/containers/images/#imagepullpolicy-defaulting
# the cluster will set imagePullPolicy to IfNotPresent
# also per direction from Ralph Bean, we want to use image digest based tags to use a cue to automation like dependabot or renovatebot to periodially submit pull requests that update the digest as new images are released.
Expand Down
2 changes: 1 addition & 1 deletion task/clamav-scan/0.1/clamav-scan.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ spec:

steps:
- name: extract-and-scan-image
image: quay.io/redhat-appstudio/hacbs-test:v1.2.1@sha256:f351461c26733bf65cd6cddd5933114c9a4a1e2b5546f7505ddc95a2fa44c709
image: quay.io/redhat-appstudio/hacbs-test:v1.3.0@sha256:cd4601a7d71ebd908046db7a9b7010611b8b372fe941664d5163c81250a1a1fc
# per https://kubernetes.io/docs/concepts/containers/images/#imagepullpolicy-defaulting
# the cluster will set imagePullPolicy to IfNotPresent
# also per direction from Ralph Bean, we want to use image digest based tags to use a cue to automation like dependabot or renovatebot to periodially submit pull requests that update the digest as new images are released.
Expand Down
4 changes: 2 additions & 2 deletions task/deprecated-image-check/0.1/deprecated-image-check.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ spec:
steps:
# Download Pyxis metadata about the image
- name: query-pyxis
image: quay.io/redhat-appstudio/hacbs-test:v1.2.1@sha256:f351461c26733bf65cd6cddd5933114c9a4a1e2b5546f7505ddc95a2fa44c709
image: quay.io/redhat-appstudio/hacbs-test:v1.3.0@sha256:cd4601a7d71ebd908046db7a9b7010611b8b372fe941664d5163c81250a1a1fc
# per https://kubernetes.io/docs/concepts/containers/images/#imagepullpolicy-defaulting
# the cluster will set imagePullPolicy to IfNotPresent
# also per direction from Ralph Bean, we want to use image digest based tags to use a cue to automation like dependabot or renovatebot to periodially submit pull requests that update the digest as new images are released.
Expand Down Expand Up @@ -61,7 +61,7 @@ spec:
# Run the tests and save output
- name: run-conftest
image: quay.io/redhat-appstudio/hacbs-test:v1.2.1@sha256:f351461c26733bf65cd6cddd5933114c9a4a1e2b5546f7505ddc95a2fa44c709
image: quay.io/redhat-appstudio/hacbs-test:v1.3.0@sha256:cd4601a7d71ebd908046db7a9b7010611b8b372fe941664d5163c81250a1a1fc
# per https://kubernetes.io/docs/concepts/containers/images/#imagepullpolicy-defaulting
# the cluster will set imagePullPolicy to IfNotPresent
# also per direction from Ralph Bean, we want to use image digest based tags to use a cue to automation like dependabot or renovatebot to periodially submit pull requests that update the digest as new images are released.
Expand Down
4 changes: 2 additions & 2 deletions task/deprecated-image-check/0.2/deprecated-image-check.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ spec:
steps:
# Download Pyxis metadata about the image
- name: query-pyxis
image: quay.io/redhat-appstudio/hacbs-test:v1.2.1@sha256:f351461c26733bf65cd6cddd5933114c9a4a1e2b5546f7505ddc95a2fa44c709
image: quay.io/redhat-appstudio/hacbs-test:v1.3.0@sha256:cd4601a7d71ebd908046db7a9b7010611b8b372fe941664d5163c81250a1a1fc
# per https://kubernetes.io/docs/concepts/containers/images/#imagepullpolicy-defaulting
# the cluster will set imagePullPolicy to IfNotPresent
# also per direction from Ralph Bean, we want to use image digest based tags to use a cue to automation like dependabot or renovatebot to periodially submit pull requests that update the digest as new images are released.
Expand Down Expand Up @@ -61,7 +61,7 @@ spec:
# Run the tests and save output
- name: run-conftest
image: quay.io/redhat-appstudio/hacbs-test:v1.2.1@sha256:f351461c26733bf65cd6cddd5933114c9a4a1e2b5546f7505ddc95a2fa44c709
image: quay.io/redhat-appstudio/hacbs-test:v1.3.0@sha256:cd4601a7d71ebd908046db7a9b7010611b8b372fe941664d5163c81250a1a1fc
# per https://kubernetes.io/docs/concepts/containers/images/#imagepullpolicy-defaulting
# the cluster will set imagePullPolicy to IfNotPresent
# also per direction from Ralph Bean, we want to use image digest based tags to use a cue to automation like dependabot or renovatebot to periodially submit pull requests that update the digest as new images are released.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ spec:

steps:
- name: check-images
image: quay.io/redhat-appstudio/hacbs-test:v1.2.1@sha256:f351461c26733bf65cd6cddd5933114c9a4a1e2b5546f7505ddc95a2fa44c709
image: quay.io/redhat-appstudio/hacbs-test:v1.3.0@sha256:cd4601a7d71ebd908046db7a9b7010611b8b372fe941664d5163c81250a1a1fc
# per https://kubernetes.io/docs/concepts/containers/images/#imagepullpolicy-defaulting
# the cluster will set imagePullPolicy to IfNotPresent
# also per direction from Ralph Bean, we want to use image digest based tags to use a cue to automation like dependabot or renovatebot to periodially submit pull requests that update the digest as new images are released.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ spec:
- name: workspace
steps:
- name: check-related-images
image: quay.io/redhat-appstudio/hacbs-test:v1.2.1@sha256:f351461c26733bf65cd6cddd5933114c9a4a1e2b5546f7505ddc95a2fa44c709
image: quay.io/redhat-appstudio/hacbs-test:v1.3.0@sha256:cd4601a7d71ebd908046db7a9b7010611b8b372fe941664d5163c81250a1a1fc
# per https://kubernetes.io/docs/concepts/containers/images/#imagepullpolicy-defaulting
# the cluster will set imagePullPolicy to IfNotPresent
# also per direction from Ralph Bean, we want to use image digest based tags to use a cue to automation like dependabot or renovatebot to periodially submit pull requests that update the digest as new images are released.
Expand Down
2 changes: 1 addition & 1 deletion task/fbc-validation/0.1/fbc-validation.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ spec:
- name: workspace
steps:
- name: extract-and-check-binaries
image: quay.io/redhat-appstudio/hacbs-test:v1.2.1@sha256:f351461c26733bf65cd6cddd5933114c9a4a1e2b5546f7505ddc95a2fa44c709
image: quay.io/redhat-appstudio/hacbs-test:v1.3.0@sha256:cd4601a7d71ebd908046db7a9b7010611b8b372fe941664d5163c81250a1a1fc
# per https://kubernetes.io/docs/concepts/containers/images/#imagepullpolicy-defaulting
# the cluster will set imagePullPolicy to IfNotPresent
# also per direction from Ralph Bean, we want to use image digest based tags to use a cue to automation like dependabot or renovatebot to periodially submit pull requests that update the digest as new images are released.
Expand Down
2 changes: 1 addition & 1 deletion task/inspect-image/0.1/inspect-image.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ spec:
- name: source
steps:
- name: inspect-image
image: quay.io/redhat-appstudio/hacbs-test:v1.2.1@sha256:f351461c26733bf65cd6cddd5933114c9a4a1e2b5546f7505ddc95a2fa44c709
image: quay.io/redhat-appstudio/hacbs-test:v1.3.0@sha256:cd4601a7d71ebd908046db7a9b7010611b8b372fe941664d5163c81250a1a1fc
# per https://kubernetes.io/docs/concepts/containers/images/#imagepullpolicy-defaulting
# the cluster will set imagePullPolicy to IfNotPresent
# also per direction from Ralph Bean, we want to use image digest based tags to use a cue to automation like dependabot or renovatebot to periodially submit pull requests that update the digest as new images are released.
Expand Down
2 changes: 1 addition & 1 deletion task/sast-snyk-check/0.1/sast-snyk-check.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ spec:
optional: true
steps:
- name: sast-snyk-check
image: quay.io/redhat-appstudio/hacbs-test:v1.2.1@sha256:f351461c26733bf65cd6cddd5933114c9a4a1e2b5546f7505ddc95a2fa44c709
image: quay.io/redhat-appstudio/hacbs-test:v1.3.0@sha256:cd4601a7d71ebd908046db7a9b7010611b8b372fe941664d5163c81250a1a1fc
# per https://kubernetes.io/docs/concepts/containers/images/#imagepullpolicy-defaulting
# the cluster will set imagePullPolicy to IfNotPresent
# also per direction from Ralph Bean, we want to use image digest based tags to use a cue to automation like dependabot or renovatebot to periodially submit pull requests that update the digest as new images are released.
Expand Down
2 changes: 1 addition & 1 deletion task/sbom-json-check/0.1/sbom-json-check.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ spec:
name: TEST_OUTPUT
steps:
- name: sbom-json-check
image: quay.io/redhat-appstudio/hacbs-test:v1.2.1@sha256:f351461c26733bf65cd6cddd5933114c9a4a1e2b5546f7505ddc95a2fa44c709
image: quay.io/redhat-appstudio/hacbs-test:v1.3.0@sha256:cd4601a7d71ebd908046db7a9b7010611b8b372fe941664d5163c81250a1a1fc
# per https://kubernetes.io/docs/concepts/containers/images/#imagepullpolicy-defaulting
# the cluster will set imagePullPolicy to IfNotPresent
# also per direction from Ralph Bean, we want to use image digest based tags to use a cue to automation like dependabot or renovatebot to periodially submit pull requests that update the digest as new images are released.
Expand Down
2 changes: 1 addition & 1 deletion task/tkn-bundle/0.1/tkn-bundle.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ spec:
- name: TASK_FILE
value: tekton_task_files
steps:
- image: quay.io/redhat-appstudio/hacbs-test:latest@sha256:f351461c26733bf65cd6cddd5933114c9a4a1e2b5546f7505ddc95a2fa44c709
- image: quay.io/redhat-appstudio/hacbs-test:latest@sha256:cd4601a7d71ebd908046db7a9b7010611b8b372fe941664d5163c81250a1a1fc
name: modify-task-files
env:
- name: CONTEXT
Expand Down
2 changes: 1 addition & 1 deletion task/verify-signed-rpms/0.1/verify-signed-rpms.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ spec:
--workdir "${WORKDIR}" \
--status-path "${WORKDIR}"/status
- name: output-results
image: quay.io/redhat-appstudio/hacbs-test:v1.2.1@sha256:f351461c26733bf65cd6cddd5933114c9a4a1e2b5546f7505ddc95a2fa44c709
image: quay.io/redhat-appstudio/hacbs-test:v1.3.0@sha256:cd4601a7d71ebd908046db7a9b7010611b8b372fe941664d5163c81250a1a1fc
volumeMounts:
- name: workdir
mountPath: "$(params.WORKDIR)"
Expand Down

0 comments on commit 379d88d

Please sign in to comment.