-
Notifications
You must be signed in to change notification settings - Fork 0
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
add vuln #2
add vuln #2
Changes from 6 commits
97e34b2
ae4f0bb
c68c8e3
f5101c0
ce90c91
4ad8e50
352ec5e
13462e0
0c29453
6eaa0dd
230b424
4db8a5e
ff07bd1
39834cd
c0db00e
b616ea9
14a0fa0
04ad793
2ae1872
695ea4e
5a85dda
97900ea
bd8253c
e22ad1a
52cdf5f
3af67ce
a732494
8949c49
2068508
1e3f331
5e328b1
a61bcba
e6ec77e
b7220dc
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,7 +2,7 @@ name: scan with KICS and upload SARIF | |
|
||
on: | ||
pull_request: | ||
branches: [master] | ||
branches: [main] | ||
|
||
jobs: | ||
kics-job: | ||
|
@@ -17,16 +17,15 @@ jobs: | |
- name: Run KICS Scan with SARIF result | ||
uses: checkmarx/[email protected] | ||
with: | ||
path: 'terraform' | ||
path: vulns | ||
# when provided with a directory on output_path | ||
# it will generate the specified reports file named 'results.{extension}' | ||
# in this example it will generate: | ||
# - results-dir/results.json | ||
# - results-dir/results.sarif | ||
output_path: results-dir | ||
platform_type: terraform | ||
output_formats: 'json,sarif' | ||
exclude_paths: "terraform/gcp/big_data.tf,terraform/azure" | ||
ignore_on_exit: results | ||
# seek query id in it's metadata.json | ||
exclude_queries: 0437633b-daa6-4bbc-8526-c0d2443b946e | ||
- name: Show results | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
FROM gliderlabs/alpine:3.3 | ||
Check warning on line 1 in vulns/positive.dockerfile GitHub Actions / kics-action[HIGH] Missing User Instruction
|
||
Check notice Code scanning / KICS Healthcheck Instruction Missing Note
Dockerfile doesn't contain instruction 'HEALTHCHECK'
|
||
RUN apk add --update-cache python | ||
Check warning on line 2 in vulns/positive.dockerfile GitHub Actions / kics-action[MEDIUM] Unpinned Package Version in Apk Add
|
||
Check warning Code scanning / KICS Unpinned Package Version in Apk Add Warning
RUN instruction apk add --update-cache python does not use package pinning form
Check notice Code scanning / KICS Apk Add Using Local Cache Path
'RUN' contains 'apk add' command without '--no-cache' switch
|
||
WORKDIR /app | ||
ONBUILD COPY . /app | ||
ONBUILD RUN virtualenv /env && /env/bin/pip install -r /app/requirements.txt | ||
EXPOSE 8080 | ||
EXPOSE 8081 | ||
CMD ["/env/bin/python", "main.py"] |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
FROM gliderlabs/alpine:3.3 | ||
Check warning on line 1 in vulns/positive2.dockerfile GitHub Actions / kics-action[HIGH] Missing User Instruction
|
||
Check failure Code scanning / KICS Missing User Instruction Error
The 'Dockerfile' does not contain any 'USER' instruction
Check notice Code scanning / KICS Healthcheck Instruction Missing Note
Dockerfile doesn't contain instruction 'HEALTHCHECK'
|
||
RUN apk add --update-cache python | ||
Check warning on line 2 in vulns/positive2.dockerfile GitHub Actions / kics-action[MEDIUM] Unpinned Package Version in Apk Add
|
||
Check warning Code scanning / KICS Unpinned Package Version in Apk Add Warning
RUN instruction apk add --update-cache python does not use package pinning form
Check notice Code scanning / KICS Apk Add Using Local Cache Path
'RUN' contains 'apk add' command without '--no-cache' switch
|
||
WORKDIR /app | ||
ONBUILD COPY . /app | ||
ONBUILD RUN virtualenv /env; \ | ||
/env/bin/pip install -r /app/requirements.txt | ||
EXPOSE 8080 | ||
CMD ["/env/bin/python", "main.py"] |
Check failure
Code scanning / KICS
Missing User Instruction Error