-
Notifications
You must be signed in to change notification settings - Fork 3
54 lines (48 loc) · 1.37 KB
/
tests.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
name: tests
on:
pull_request:
types: [opened, synchronize]
paths:
- tests/**
- .github/workflows/tests.yml
- entrypoint.sh
- Dockerfile
- .dockerignore
push:
branches:
- main
paths:
- tests/**
- .github/workflows/tests.yml
- entrypoint.sh
- Dockerfile
- .dockerignore
permissions: read-all
jobs:
tests:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@a5ac7e51b41094c92402da3b24376905380afc29 # v4.1.6
- name: Test 1 - Check done in tests/test2 - tests/test2/normal.md
# Unpinned Actions Full Length Commit SHA
# kics-scan ignore-line
uses: ./
with:
debug: true
search_paths: tests/test2
- name: Test 2 - Check with "exclude" and "search_paths" - tests/test2/normal.md
# kics-scan ignore-line
uses: ./
with:
debug: true
exclude: |
CHANGELOG.md
test1/excluded_file.md
bad.md
excluded_dir/
search_paths: tests/
- name: Test 3 - Check with "fd_cmd_params" - tests/test2/normal.md
# kics-scan ignore-line
uses: ./
with:
fd_cmd_params: ". -0 --extension md --type f --hidden --no-ignore --exclude CHANGELOG.md --exclude test1/excluded_file.md --exclude bad.md --exclude excluded_dir/ tests/"