Skip to content

Commit

Permalink
Set clone depth to 0 (unlimited); sync tekton files
Browse files Browse the repository at this point in the history
  • Loading branch information
kylape committed Dec 4, 2023
1 parent 8ae270b commit 52eef4b
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
3 changes: 1 addition & 2 deletions .tekton/scanner-pull-request.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -166,7 +166,7 @@ spec:
- name: fetchTags
value: true
- name: depth
value: 1000
value: 0
runAfter:
- init
taskRef:
Expand Down Expand Up @@ -232,7 +232,6 @@ spec:
--output "$(workspaces.source.path)/source/blob-${blob}" \
"https://storage.googleapis.com/definitions.stackrox.io/scanner-data/latest/${blob}"
done
ls -la "$(workspaces.source.path)/source"
workspaces:
- name: source
workspace: workspace
Expand Down
6 changes: 5 additions & 1 deletion .tekton/scanner-push.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -160,6 +160,10 @@ spec:
value: $(params.git-url)
- name: revision
value: $(params.revision)
- name: fetchTags
value: true
- name: depth
value: 0
runAfter:
- init
taskRef:
Expand Down Expand Up @@ -221,7 +225,7 @@ spec:
genesis_manifests.json
)
for blob in "${blobs[@]}"; do
curl --fail --show-error --retry 4 --retry-max-time 30 --retry-connrefused -s \
curl --fail --show-error --retry 4 --retry-max-time 30 --retry-connrefused \
--output "$(workspaces.source.path)/source/blob-${blob}" \
"https://storage.googleapis.com/definitions.stackrox.io/scanner-data/latest/${blob}"
done
Expand Down

0 comments on commit 52eef4b

Please sign in to comment.