Skip to content

Commit

Permalink
Merge pull request #2 from Checkmarx/master
Browse files Browse the repository at this point in the history
Upgrading KICS to version 1.7  for fun and profit
  • Loading branch information
kazaker authored Oct 12, 2023
2 parents 75980f3 + 6d02dc9 commit da5a083
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 15 deletions.
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM checkmarx/kics:gh-action-kics1.6
FROM checkmarx/kics:gh-action-kics1.7

COPY ./entrypoint.sh /entrypoint.sh

Expand Down
28 changes: 14 additions & 14 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ And ensure that you're using the <a href="https://github.com/Checkmarx/kics-gith

| Variable | Example Value &nbsp; | Description &nbsp; | Type | Required | Default |
|-------------------------------------------|--------------------------------------------------------|-------------------------------------------------------------------------------------------------------------------------------------------------------------|---------| -------- |--------------------------------------------------------|
| enable_comment | true | Enable pull request report comments | Boolean | No | false |
| enable_comments | true | Enable pull request report comments | Boolean | No | false |
| enable_jobs_summary | true | Enable report as jobs summary | Boolean | No | false |
| enable_annotations | true | Enable annotations report | Boolean | No | true |
| comments_with_queries | true | Add queries in th pull request report comments (available when enable_comments = true) | Boolean | No | false |
Expand Down Expand Up @@ -115,7 +115,7 @@ And ensure that you're using the <a href="https://github.com/Checkmarx/kics-gith
- uses: actions/checkout@v3
# Scan Iac with kics
- name: run kics Scan
uses: checkmarx/kics-github-action@v1.6
uses: checkmarx/kics-github-action@v1.7.0
with:
# scanning two directories: ./terraform/ ./cfn-templates/ plus a single file
path: 'terraform,cfn-templates,my-other-sub-folder/Dockerfile'
Expand All @@ -138,7 +138,7 @@ If you want KICS to ignore the results and return exit status code 0 unless a KI
steps:
- uses: actions/checkout@v3
- name: run kics Scan
uses: checkmarx/kics-github-action@v1.6
uses: checkmarx/kics-github-action@v1.7.0
with:
path: 'terraform'
ignore_on_exit: results
Expand All @@ -156,7 +156,7 @@ If want your pipeline just to fail on HIGH and MEDIUM severity results and KICS
steps:
- uses: actions/checkout@v3
- name: run kics Scan
uses: checkmarx/kics-github-action@v1.6
uses: checkmarx/kics-github-action@v1.7.0
with:
path: 'terraform,my-other-sub-folder/Dockerfile'
fail_on: high,medium
Expand All @@ -182,13 +182,13 @@ jobs:
steps:
- uses: actions/checkout@v3
- name: run kics Scan
uses: checkmarx/kics-github-action@v1.6
with:
path: test/samples/positive1.tf,test/samples/positive2.tf
token: ${{ secrets.GITHUB_TOKEN }}
output_path: myResults/
ignore_on_exit: results
enable_comments: true
uses: checkmarx/kics-github-action@v1.7.0
with:
path: test/samples/positive1.tf,test/samples/positive2.tf
token: ${{ secrets.GITHUB_TOKEN }}
output_path: myResults/
ignore_on_exit: results
enable_comments: true
```

### PR Comment Example
Expand Down Expand Up @@ -241,7 +241,7 @@ You can only enable one profiler at a time, CPU or MEM.
steps:
- uses: actions/checkout@v3
- name: run kics Scan
uses: checkmarx/kics-github-action@v1.6
uses: checkmarx/kics-github-action@v1.7.0
with:
path: 'terraform'
profiling: MEM
Expand Down Expand Up @@ -272,7 +272,7 @@ jobs:
# make sure results dir is created
run: mkdir -p results-dir
- name: Run KICS Scan with SARIF result
uses: checkmarx/kics-github-action@v1.6
uses: checkmarx/kics-github-action@v1.7.0
with:
path: 'terraform'
# when provided with a directory on output_path
Expand Down Expand Up @@ -337,7 +337,7 @@ jobs:
}
EOF
- name: Run KICS Scan using config
uses: checkmarx/kics-github-action@v1.6
uses: checkmarx/kics-github-action@v1.7.0
with:
path: 'terraform'
config_path: ./kics.config
Expand Down

0 comments on commit da5a083

Please sign in to comment.