forked from Checkmarx/kics
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
aws codebuild integration (Checkmarx#4790)
Signed-off-by: joaorufi <[email protected]>
- Loading branch information
Showing
6 changed files
with
56 additions
and
17 deletions.
There are no files selected for viewing
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
# Running KICS on AWS CodeBuild | ||
|
||
You can integrate KICS into your AWS CodeBuild workflows. | ||
|
||
This provides you the ability to run KICS scans to find vulnerabilities and misconfiguration checks to your infrastructure as code (IaC). | ||
|
||
## Example setup with GitHub | ||
|
||
Enable AWS CodeBuild to access your personal profile or GitHub organization. | ||
|
||
Create a `buildspec.yml` file on the root of your repository, for example: | ||
|
||
```yaml | ||
version: 0.2 | ||
|
||
phases: | ||
build: | ||
commands: | ||
- echo Starting Kics scan | ||
- docker run -v $PWD:/path checkmarx/kics scan --no-progress --ignore-on-exit all -p /path -o /path --report-formats junit --output-name kics-report | ||
reports: | ||
kics-report: | ||
files: | ||
- junit-kics-report.xml | ||
``` | ||
After running the pipeline, you can see the logs and the reports section: | ||
<img src="https://raw.githubusercontent.com/Checkmarx/kics/master/docs/img/codebuild-report.png" width="850"> | ||
Go to report section to see reports: | ||
<img src="https://raw.githubusercontent.com/Checkmarx/kics/master/docs/img/codebuild-report-section.png" width="850"> | ||
Select the desired report to see the test cases: | ||
<img src="https://raw.githubusercontent.com/Checkmarx/kics/master/docs/img/codebuild-test-cases.png" width="850"> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters