Skip to content

Commit a549e42

Browse files
author
Cesar Rodriguez
authored
Merge pull request #8 from accurics/sarif
Updates readme to clarify code scanning support
2 parents 4b24816 + 5a49d3f commit a549e42

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

README.md

+4-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
# Terrascan GitHub Action
2-
This action runs Terrascan, a static code analyzer for infrastructure as code(IaC) security best practices. It supports displaying the results of the scan in the GitHub repository's Security tab, when the `sarif_upload` input variable is set to true.
2+
This action runs Terrascan, a static code analyzer for infrastructure as code(IaC) security best practices. It supports displaying the results of the scan in the GitHub repository's Security tab under [code scanning alerts](https://docs.github.com/en/code-security/secure-coding/automatically-scanning-your-code-for-vulnerabilities-and-errors/about-code-scanning), when the `sarif_upload` input variable is included.
33

44
## Inputs
55
### `iac_type`
@@ -30,7 +30,7 @@ Config file path.
3030
The action will only warn and not error when violations are found.
3131

3232
### `sarif_upload`
33-
If true, a sarif file named terrascan.sarif will be generated with the results of the scan.
33+
If this variable is included, a sarif file named terrascan.sarif will be generated with the results of the scan.
3434

3535
## Example usage
3636

@@ -64,6 +64,8 @@ jobs:
6464

6565
Using the SARIF output option, the results of the scan will be displayed in the security tab of the repository being scanned. The example below shows how to accomplish this. More information on GitHub code scanning is available [here](https://docs.github.com/en/code-security/secure-coding/automatically-scanning-your-code-for-vulnerabilities-and-errors/about-code-scanning#about-third-party-code-scanning-tools).
6666

67+
![Image of code scanning results](code-scanning.png)
68+
6769
```yaml
6870
on: [push]
6971

code-scanning.png

350 KB
Loading

0 commit comments

Comments
 (0)