1
0
mirror of https://github.com/tektoncd/catalog.git synced 2024-11-22 06:02:51 +00:00
Commit Graph

311 Commits

Author SHA1 Message Date
Chmouel Boudjnah
536668a73c Add goreleaser task 0.2
Allow configure the image name and default to latest,

The latest goreleaser version probably break the old version so bumping
the task version here and allow to override if the user wants it with
params.

Signed-off-by: Chmouel Boudjnah <chmouel@redhat.com>
2021-07-22 04:29:06 +01:00
Yulia Gaponenko
b2e98c4dd1 Add platforms information for maven and jib-maven tasks
As well as document multi-arch maven image for linux/s390x and
linux/ppc64le platforms.

Signed-off-by: Yulia Gaponenko <yulia.gaponenko1@de.ibm.com>
2021-07-21 12:12:06 +01:00
Jerop
9f255314b3 Golang Fuzz
This task is a Golang Tekton Task to fuzz Go projects

It uses the native Go Fuzzing Beta for dynamic analysis to find issues
in your code.

The release announcement https://blog.golang.org/fuzz-beta notes that:
"Fuzzing is a type of automated testing which continuously manipulates
inputs to a program to find issues such as panics or bugs. These
semi-random data mutations can discover new code coverage that existing
unit tests may miss, and uncover edge case bugs which would otherwise
go unnoticed. Since fuzzing can reach these edge cases, fuzz testing is
particularly valuable for finding security exploits and vulnerabilities"
2021-07-19 14:08:06 +01:00
vinamra28
f5d44bdb7f Add openshift-client task 0.2
The task requires min pipelines version 0.17.0 as it uses two optional
workspaces. First workspace is for passing the manifests which we want
to apply on the cluster and second workspace can be used to mount the
kubeconfig file if in case we want to run the oc command on another
cluster.

Signed-off-by: vinamra28 <vinjain@redhat.com>
2021-07-05 18:49:08 +01:00
vinamra28
b781a300c0 Fix the README of openshift-client
The README was showing that the task uses the input resource of
cluster-type but the resource being used was of git-type so fixing that.

Signed-off-by: vinamra28 <vinjain@redhat.com>
2021-07-05 18:49:08 +01:00
Haibing Zhou
7462fb2abb github-set-status: use secret volume for github token
The `github-set-status` task now uses volumeMount to read github token.
The volume approach is prefered over environment variable.
2021-07-02 09:17:07 +01:00
Gijs van Dulmen
e88a331e0a Add 0.2 git-cli task after git-clone 0.4 example
Remove trailing spaces

Improve README

Add SSH creds docs
2021-07-01 15:18:06 +01:00
Pascal Gulikers
1887c0bc56 Fixed source path bug when not set at default (.) 2021-07-01 12:36:06 +01:00
Michał Czeraszkiewicz
84906df9a3 docs: typo in script title 2021-06-25 07:33:03 +01:00
urvashigupta7
54735e59c3 Add task for Kube-Linter Tool
Kube-linter is a tool by stackrox to identify misconfigurations in kubernetes objects.
2021-06-24 10:43:03 +01:00
vinamra28
d4798eb701 Fix orka-* task as per pipelines 0.24+
Add a parameter through which we can set the `HOME` env variable which
if not provided will default to `/tekton/home`. Also set the default
`workingDir` as `/workspace`.

Signed-off-by: vinamra28 <vinjain@redhat.com>
2021-06-23 09:00:03 +01:00
vinamra28
d517969521 Fix git-clone task as per pipelines 0.24+
git-clone 0.1:
Add a parameter through which we can set the `HOME` env variable which
if not provided will default to `/tekton/home`

git-clone 0.4:
Changed the default value of userHome param from `/root` to
`/tekton/home` as it was not matching the README.

Signed-off-by: vinamra28 <vinjain@redhat.com>
2021-06-23 09:00:03 +01:00
vinamra28
09da51c6ae Fix buildapacks-phases task as per pipelines 0.24+
Add a parameter through which we can set the `HOME` env variable which
if not provided will default to `/tekton/home`

Signed-off-by: vinamra28 <vinjain@redhat.com>
2021-06-23 09:00:03 +01:00
vinamra28
3247e6ac61 Fix ansible runner task as per pipelines 0.24+
Add a parameter through which we can set the `HOME` env variable which
if not provided will default to `/tekton/home`

Signed-off-by: vinamra28 <vinjain@redhat.com>
2021-06-23 09:00:03 +01:00
Priti Desai
79088e1e3b fix argocd sync and wait task
logining in from one container and having sync and wait run in a
separate containers does not work. Authenticate once and reuse the connection
across the containers in a pod is not supported. Sync and wait fails with
authentication error. Either we login at each step or collapse
sync and wait along with the login step. Or we could authenticate once and
find a way to how to reuse the same connection across the containers.

For now, combining everything into a single step.
2021-06-23 00:35:02 +01:00
Gijs van Dulmen
177a749088 Add Github Open PR Task
Fix trailing space

Fix version obviously

Fix text typo

Add Test for Github Open PR

Fix hosts

Update test fixture

Add better and more tests

Use localhost

Fix HTTP and HTTPS

Fix typo

Add PR number and URL results

Fix tests and use correct URL

Remove duplicate line

Set correct URL over here as well
2021-06-21 16:45:02 +01:00
Gijs van Dulmen
f6b4174a18 Add YQ Task including tests
Setup correct structure

Fix review comments

Fixes after review comments
2021-06-15 13:55:59 +01:00
Gijs van Dulmen
94ddad6e32 Add option to use Basic Auth
Add docs in README

Fix lint errors in Python code

Adding README improvements for Basic authentication

Improve README based on review
2021-06-14 14:56:59 +01:00
urvashigupta7
5a251db8c7 change config file url for gitleaks 2021-06-14 14:29:59 +01:00
Piyush Garg
e77ba9ed85 Bump jib-maven task to 0.4 to fix certs mount path
This will add a new version 0.4 in jib-maven task which
have only one change of different mounth rather than /etc/ssl/certs
as mounting at that location is overidding the default certs of
the image. This will make the certs to mount at different path
/tekton-custom-certs
2021-06-09 12:18:57 +01:00
urvashigupta7
13fc9dab72 Add Task For Gitleaks Tool
Gitleaks is a sast tool for detecting hardcoded secrets like passwords, api keys, and tokens in your code
2021-06-09 12:08:57 +01:00
Scott
0c72fe24c2 Add nonroot user support and workspace credentials to git-clone
This commit introduces a 0.4 version of git-clone, fixing several
problems with the 0.3 git-clone Task:

1. Credentials in 0.3 could not be passed directly to the Task via
a Workspace.

2. There was no support for running as a non-root user.

This commit introduces a new version of git-clone that fixes both
of these issues. Credentials (either basic-auth or ssh-directory)
can now be supplied directly using a Secret workspace. A nonroot
user is provided with UID 65532 that can clone repos without
requiring root permissions.
2021-06-08 17:07:57 +01:00
vinamra28
4436e012b3 Fix getting comment with multi Lines
This use python multi string when getting the comment
params so we don't bug out on multi lines comments.

Signed-off-by: vinamra28 <vinjain@redhat.com>
2021-06-07 13:45:56 +01:00
Gijs van Dulmen
2c175084e4 Add extra possibility for username and emoij to make it more Tekton Like
Fix linting and improve

Fix quotes

Add parameter docs
2021-06-05 11:28:56 +01:00
Chmouel Boudjnah
63fd747f0e Allow to override GO caching environment variable
Allow overriding the GO cache, GO mod caching and golangci-lint caching.

Optimize golang-build and golang-test to not do a fulll copy of the source
inside the GOPATH if we have a go.mod in source root directory.

Bumped task since we add a bunch into it.

Signed-off-by: Chmouel Boudjnah <chmouel@redhat.com>
2021-06-02 12:14:54 +01:00
Konrad Scherer
ae319bc988 Support multiple EXTRA_ARGS by using array type
Signed-off-by: Konrad Scherer <kmscherer@gmail.com>
2021-06-02 07:26:54 +01:00
Chmouel Boudjnah
909ac49c05 Fix getting comment with multi Lines
Fixes issue #731

Signed-off-by: Chmouel Boudjnah <chmouel@redhat.com>
2021-06-02 07:10:54 +01:00
Gijs van Dulmen
149beacbf5 Add Teams Task and README
Update title with copy paste err

Add quotes to get rid of lint issues

Fix some more issues with shell linting

Linting - Add double quotes over here as well

Setup the incoming webhook as a secret due to it's sensitivity
2021-06-01 17:31:54 +01:00
Chmouel Boudjnah
fc29455532 github-app-token allow github api url to be defined
* Allow defining the github api url
* Handle Exception better by showing the error message.
  (i.e: in case if ntp is not syncronized the jwt token would not be issued)
2021-05-26 12:54:52 +01:00
pratap0007
f411787b89 Improves url links in the README
Few task's README contains some url links which had
invalid directory path and was pointing to a invalid page

Signed-off-by: Shiv Verma <shverma@redhat.com>
2021-05-24 17:47:52 +01:00
Chanseok Oh
ee978374c0 Update OWNERS 2021-05-17 13:50:48 +01:00
Chanseok Oh
10c5841b4f Update OWNERS 2021-05-17 13:50:48 +01:00
vinamra28
c88c0ac58b Remove permission check in write-file task
In write-file task's tests we are checking whether file permission is
equal to `--w--wxr-T`. These permissions may vary depending on rbac
enforced cluster. Example on some cluster we can get the value as
`-rw-rwxr-T` thus failing the test.

In this commit I am removing the `grep -- '--w--wxr-T'` so that the
tests doesn't fail on other clusters.

Signed-off-by: vinamra28 <vinjain@redhat.com>
2021-05-11 08:59:45 +01:00
Chmouel Boudjnah
42c4b85788 Update golangci-lint to latest
Signed-off-by: Chmouel Boudjnah <chmouel@redhat.com>
2021-05-10 10:36:45 +01:00
Costel Moraru
eeb97337d9 Removing the inputs param prefix according to the v1beta1 specs 2021-05-07 09:26:43 +01:00
Andrea Frittoli
6358e174e6 [tekton-catalog-publish] Bind the dockerconfig workspace
When the optional dockerconfig workspace is set, set the
DOCKER_CONFIG env variable accordingly.

Signed-off-by: Andrea Frittoli <andrea.frittoli@gmail.com>
2021-05-04 15:11:42 +01:00
Andrea Frittoli
9095458f98 [tekton-publish-catalog] Fix syntax of find command
The syntax of the find command was not correct, and the error was not
caught by CI because of the missing "set -o pipefail".

Signed-off-by: Andrea Frittoli <andrea.frittoli@gmail.com>
2021-05-04 14:44:42 +01:00
Andrea Frittoli
1160467eb9 Add a task to publish a catalog as bundles
Add a new task that uses tkn bundle to publish a Tekton catalog as
bundles to a container registry. Each task corresponds to a dedicated
bundle, which task versions available as tags.

Optionally, bundles are tagged with an extra tag provided as an input
parameter.

Signed-off-by: Andrea Frittoli <andrea.frittoli@gmail.com>
2021-05-04 12:01:42 +01:00
Bittrance
64d1674661 correct write-file params descriptions. 2021-05-03 04:45:42 +01:00
Bittrance
832a58bfa9 write-file now has established tag "generic" 2021-05-03 04:45:42 +01:00
Bittrance
c63533b90c Fix alpine 3.12 with sha256
Missed this when trying to adhere to recommendations.md.
2021-05-03 04:45:42 +01:00
Bittrance
783bfca070 Change write-file permissions -> mode and follow recommendations.md 2021-05-03 04:45:42 +01:00
Bittrance
58d5df4ddc Add Task to write a file onto a workspace
Add a catalog task to write a parameter out as a file, creating
intermediate directories and setting permissions as necessary. While it
is possible today to have a workspace that is a mounted config map
variable, that provides limited support for expanding parameters into
the file (i.e. the [replace-tokens](https://hub.tekton.dev/tekton/task/replace-tokens) task).
Ultimately, my argument for adopting this task into the catalog is that
I believe others will also look for a file-writing task and their
experience of Tekton will be better if they find one.
2021-05-03 04:45:42 +01:00
Scott
046fb8addb Pass git-clone Params as EnvVars Instead
Previously we passed params directly into the `script` block of
the clone step. Because Pipelines doesn't escape variable values
when interpolating them the behaviour of the task could be changed
by the contents of a param.

This commit changes the way params are provided to the script;
instead of being interpolated directly they are converted first
into environment variables and accessed through shell's `${}`
construct.
2021-04-28 17:25:40 +01:00
Siegfried Ehret
bc72cb8ecd Fix typo in sendmail readme 2021-04-28 11:20:40 +01:00
PuneetPunamiya
8966eb7964 Bump tkn image to 0.18
Signed-off-by: Puneet Punamiya <ppunamiy@redhat.com>
2021-04-28 11:11:40 +01:00
Chmouel Boudjnah
0a59b634f7 Add github app token 0.2
Added a new params to allow getting the application_id from the secrets
workspace, still allowing as params directly if user would like to use
this instead.

Signed-off-by: Chmouel Boudjnah <chmouel@redhat.com>
2021-04-27 12:34:08 +01:00
savita ashture
94aede7853 Revert "Add privileged permission to jib-maven task"
This reverts commit 1920b1e36c.
2021-04-27 12:15:09 +01:00
Billy Lynch
46e0bb02bc Add kind catalog task.
This adds support for running kind within Tekton. This primarily configures
the Docker-in-Docker environment necessary to bring up kind clusters.

Users should invoke kind in their own runtime image to create / modify
clusters. See https://github.com/tektoncd/plumbing/pull/821 for an
example runtime image.
2021-04-23 15:12:08 +01:00
Piyush Garg
fdd4499dd3 Use bash instead on sh in jib-maven
This will fix the issue of task failing with some MAVEN_IMAGE
like 3.6.3-adoptopenjdk-11 etc because of [[ not found
2021-04-22 12:09:07 +01:00