Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ROX-27208: **DO NOT MERGE** Try use Generic fetcher #1725

Closed
wants to merge 7 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
25 changes: 25 additions & 0 deletions .konflux/artifacts.lock.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
---
metadata:
version: "1.0"
artifacts:

- download_url: "https://storage.googleapis.com/definitions.stackrox.io/scanner-data/latest/pg-definitions.sql.gz"
# correct
checksum: "sha256:98382c354e873bda76e241910f920ce0df628b8e1c46d90845dfc9f45cbf7c44"
filename: "pg-definitions.sql.gz" # optional

#- download_url: "https://storage.googleapis.com/definitions.stackrox.io/scanner-data/latest/nvd-definitions.zip"
# # not matching
# checksum: "sha256:c91b496427a81decd31e1b900c68e9abf4ebb353cdaebf2f2557b413b1c2f908"
# filename: "nvd-definitions.zip" # optional

- download_url: "https://storage.googleapis.com/definitions.stackrox.io/scanner-data/latest/k8s-definitions.zip"
# empty
checksum: ""
filename: "k8s-definitions.zip" # optional

#- download_url: "https://storage.googleapis.com/definitions.stackrox.io/scanner-data/latest/repo2cpe.zip"
# # absent
# filename: "repo2cpe.zip" # optional

# https://storage.googleapis.com/definitions.stackrox.io/scanner-data/latest/genesis_manifests.json
6 changes: 5 additions & 1 deletion .tekton/scanner-build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,11 @@ spec:
# - name: hermetic
# value: "true"
- name: prefetch-input
value: '{"type": "gomod", "path": "."}'
value: >-
[
{"type": "gomod", "path": "."},
{"type": "generic", "path": ".konflux"}
]
- name: build-source-image
value: 'true'
- name: build-target-stage
Expand Down
2 changes: 1 addition & 1 deletion .tekton/scanner-component-pipeline.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -226,7 +226,7 @@ spec:
- name: name
value: prefetch-dependencies-oci-ta
- name: bundle
value: quay.io/konflux-ci/tekton-catalog/task-prefetch-dependencies-oci-ta:0.1@sha256:0203960a9d15b184545d387296f9d47801feba1219083af5917c44d94329ef93
value: quay.io/konflux-ci/tekton-catalog/task-prefetch-dependencies-oci-ta:0.1@sha256:4072f732119864d12ec8e2ff075f01487aaee9df4440166dbe85fdd447865161
- name: kind
value: task
resolver: bundles
Expand Down
5 changes: 4 additions & 1 deletion .tekton/scanner-db-build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,10 @@ spec:
# value: "true"
# No language dependencies are required for scanner-db image.
- name: prefetch-input
value: ''
value: >-
[
{"type": "generic", "path": ".konflux"}
]
- name: build-source-image
value: 'true'
- name: build-target-stage
Expand Down