1+ # This file is generated from task/git-clone/git-clone.yaml
2+ # Do not edit directly — run: ./hack/generate-stepaction.sh
13apiVersion : tekton.dev/v1beta1
24kind : StepAction
35metadata :
6+ name : git-clone
7+ labels :
8+ app.kubernetes.io/version : " 1.6.1"
49 annotations :
510 artifacthub.io/category : integration-delivery
611 artifacthub.io/changes : |
7- - kind: added
8- description: Added a new git-clone StepAction generated from the Task.
9- - kind: added
10- description: Added StepAction test coverage and integrated StepAction bundle publishing into release flow.
11- - kind: added
12- description: Added task signing support to the release process and included a public signing key.
12+ - kind: fixed
13+ description: release script version detection and signing
14+ - kind: fixed
15+ description: strip spurious resources: {} from signed task YAMLs
16+ - kind: fixed
17+ description: strip spurious resources: {} from signed task YAML
1318 - kind: changed
14- description: Updated Task and StepAction READMEs for Artifact Hub metadata and usage clarity.
19+ description: set Artifact Hub repository ID for StepAction
1520 - kind: changed
16- description: Added parameter and result reference tables to the StepAction README.
17- - kind: fixed
18- description: Fixed changelog normalization in the release script to correctly handle backticks.
21+ description: add Artifact Hub metadata for StepAction repository
1922 artifacthub.io/license : Apache-2.0
2023 artifacthub.io/links : |
2124 - name: support
@@ -33,34 +36,29 @@ metadata:
3336 tekton.dev/displayName : git clone
3437 tekton.dev/pipelines.minVersion : 1.0.0
3538 tekton.dev/platforms : linux/amd64,linux/s390x,linux/ppc64le,linux/arm64
36- tekton.dev/signature : MEUCIDkryxW5p1Gnz7Tm/+PEvcBU/Jf1AbwoUAN15f5xrCvNAiEAuP2EdMZcX6VrkPJqfNBAPiKVp6PW+IVM2n7zo/NyDZU=
39+ tekton.dev/signature : MEYCIQD2ne687n9f3kW46OcppHMQMu7+j2LU9tosGd9Kc5QcYgIhAMq1uNF8VIUwu2K8w4ZDacCtPiyf8lFFBRrMVpKsUa1C
3740 tekton.dev/tags : git
3841 labels :
39- app.kubernetes.io/version : 1.6.0
42+ app.kubernetes.io/version : " 1.6.1 "
4043 name : git-clone
4144spec :
42- description : This StepAction clones a git repository for use by other steps in your
43- Pipeline. It clones a repo from the provided url into the output path. By default
44- the repo will be cloned into the root of the provided path. You can clone into
45- a subdirectory by setting this StepAction's subdirectory param. It also supports
46- sparse checkouts. To perform a sparse checkout, pass a list of comma separated
47- directory patterns to this StepAction's sparseCheckoutDirectories param.
45+ description : >-
4846 params :
49- - description : The git repo will be cloned onto this path.
50- name : output- path
51- type : string
52- - default : " "
53- description : |
54- A .ssh directory with private key, known_hosts, config, etc.
55- name : ssh-directory-path
56- - default : " "
57- description : |
58- A directory path containing a .gitconfig and .git-credentials file.
59- name : basic-auth-path
60- - default : " "
61- description : |
62- A directory containing CA certificates for HTTPS verification.
63- name : ssl-ca-directory-path
47+ - name : output- path
48+ description : The git repo will be cloned onto this path.
49+ type : string
50+ - name : ssh-directory-path
51+ description : |
52+ A .ssh directory with private key, known_hosts, config, etc.
53+ default : " "
54+ - name : basic-auth-path
55+ description : |
56+ A directory path containing a .gitconfig and .git-credentials file.
57+ default : " "
58+ - name : ssl-ca-directory-path
59+ description : |
60+ A directory containing CA certificates for HTTPS verification.
61+ default : " "
6462 - description : Repository URL to clone from.
6563 name : url
6664 type : string
@@ -130,7 +128,7 @@ spec:
130128 Print user-friendly error messages with actionable hints and reproduction commands when git operations fail. Set to "false" to disable.
131129 name : userFriendlyErrors
132130 type : string
133- - default : ghcr.io/tektoncd-catalog/git-clone:v1.6.0
131+ - default : ghcr.io/tektoncd-catalog/git-clone:v1.6.1
134132 description : The image providing the git-init binary that this StepAction runs.
135133 name : gitInitImage
136134 type : string
@@ -146,3 +144,53 @@ spec:
146144 name : url
147145 - description : The epoch timestamp of the commit that was fetched by this StepAction.
148146 name : committer-date
147+ image : " $(params.gitInitImage)"
148+ env :
149+ - name : HOME
150+ value : " $(params.userHome)"
151+ - name : PARAM_URL
152+ value : $(params.url)
153+ - name : PARAM_REVISION
154+ value : $(params.revision)
155+ - name : PARAM_REFSPEC
156+ value : $(params.refspec)
157+ - name : PARAM_SUBMODULES
158+ value : $(params.submodules)
159+ - name : PARAM_SUBMODULE_PATHS
160+ value : $(params.submodulePaths)
161+ - name : PARAM_DEPTH
162+ value : $(params.depth)
163+ - name : PARAM_SSL_VERIFY
164+ value : $(params.sslVerify)
165+ - name : PARAM_CRT_FILENAME
166+ value : $(params.crtFileName)
167+ - name : PARAM_SUBDIRECTORY
168+ value : $(params.subdirectory)
169+ - name : PARAM_DELETE_EXISTING
170+ value : $(params.deleteExisting)
171+ - name : PARAM_HTTP_PROXY
172+ value : $(params.httpProxy)
173+ - name : PARAM_HTTPS_PROXY
174+ value : $(params.httpsProxy)
175+ - name : PARAM_NO_PROXY
176+ value : $(params.noProxy)
177+ - name : PARAM_VERBOSE
178+ value : $(params.verbose)
179+ - name : PARAM_USER_FRIENDLY_ERRORS
180+ value : $(params.userFriendlyErrors)
181+ - name : PARAM_SPARSE_CHECKOUT_DIRECTORIES
182+ value : $(params.sparseCheckoutDirectories)
183+ - name : PARAM_USER_HOME
184+ value : $(params.userHome)
185+ - name : PARAM_OUTPUT_PATH
186+ value : $(params.output-path)
187+ - name : PARAM_SSH_DIRECTORY_PATH
188+ value : $(params.ssh-directory-path)
189+ - name : PARAM_BASIC_AUTH_DIRECTORY_PATH
190+ value : $(params.basic-auth-path)
191+ - name : PARAM_SSL_CA_DIRECTORY_PATH
192+ value : $(params.ssl-ca-directory-path)
193+ securityContext :
194+ runAsNonRoot : true
195+ runAsUser : 65532
196+ script : |
0 commit comments