Skip to content

Commit 55b2144

Browse files
TEST: Creation SAST TESTS
1 parent a5d908b commit 55b2144

File tree

1 file changed

+55
-0
lines changed

1 file changed

+55
-0
lines changed
Lines changed: 55 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,55 @@
1+
---
2+
apiVersion: tekton.dev/v1
3+
kind: Pipeline
4+
metadata:
5+
name: test-sast-unicode-check
6+
spec:
7+
description: |
8+
Test the sast-unicode-check task with the DVWA web application
9+
workspaces:
10+
- name: tests-workspace
11+
tasks:
12+
- name: run-task
13+
workspaces:
14+
- name: output
15+
workspace: tests-workspace
16+
params:
17+
- name: url
18+
value: https://gitlab.cee.redhat.com/chhan/unicode_control_test
19+
- name: revision
20+
value: main
21+
taskRef:
22+
resolver: git
23+
params:
24+
- name: url
25+
value: https://github.com/konflux-ci/build-definitions.git
26+
- name: revision
27+
value: main
28+
- name: pathInRepo
29+
value: task/git-clone/0.1/git-clone.yaml
30+
- name: scan-with-unicode
31+
workspaces:
32+
- name: workspace
33+
workspace: tests-workspace
34+
runAfter:
35+
- run-task
36+
taskRef:
37+
name: sast-unicode-check
38+
params:
39+
- name: image-url
40+
value: "https://gitlab.cee.redhat.com/chhan/unicode_control_test"
41+
- name: check-result
42+
runAfter:
43+
- scan-with-unicode
44+
workspaces:
45+
- name: workspace
46+
workspace: tests-workspace
47+
taskSpec:
48+
steps:
49+
- name: check-result
50+
image: quay.io/konflux-ci/appstudio-utils:48c311af02858e2422d6229600e9959e496ddef1@sha256:91ddd999271f65d8ec8487b10f3dd378f81aa894e11b9af4d10639fd52bba7e8
51+
script: |
52+
#!/usr/bin/env sh
53+
set -eux
54+
files=$(find "$(workspaces.tests-workspace.path)/source/" -mindepth 1 -maxdepth 1)
55+
test -n "$files"

0 commit comments

Comments
 (0)