Skip to content

Commit 82f83c9

Browse files
authored
Merge pull request #4 from CodeAnt-AI/scanners
scanners
2 parents ebce024 + 659f3f4 commit 82f83c9

File tree

2 files changed

+40
-1
lines changed

2 files changed

+40
-1
lines changed

README.md

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,7 @@ Customize the scan with additional options:
5555
include_paths: 'src/,lib/'
5656
exclude_paths: 'test/,docs/'
5757
scan_timeout: '600'
58+
scanners: 'sast,sca,secrets'
5859
```
5960
6061
## Inputs
@@ -66,6 +67,38 @@ Customize the scan with additional options:
6667
| `include_paths` | Comma-separated paths to include in scan | No | `''` (all files) |
6768
| `exclude_paths` | Comma-separated paths to exclude from scan | No | `''` (none) |
6869
| `scan_timeout` | Scan timeout in seconds | No | `300` |
70+
| `scanners` | Security scanners to run | No | `sast,sca` |
71+
72+
## Scanner Options
73+
74+
The `scanners` parameter allows you to customize which security scanners run during analysis:
75+
76+
- **`sast`** - Static Application Security Testing (code vulnerabilities)
77+
- **`sca`** - Software Composition Analysis (dependency vulnerabilities)
78+
- **`secrets`** - Secret detection (API keys, passwords, tokens)
79+
- **`antipatterns`** - Code quality and duplicate code detection
80+
- **`iac`** - Infrastructure as Code security (Terraform, CloudFormation, etc.)
81+
- **`all`** - Run all available scanners
82+
83+
**Default:** If not specified, runs `sast,sca`
84+
85+
### Scanner Examples
86+
87+
Run all scanners:
88+
```yaml
89+
- uses: CodeAnt-AI/[email protected]
90+
with:
91+
access_token: ${{ secrets.ACCESS_TOKEN_GITHUB }}
92+
scanners: 'all'
93+
```
94+
95+
Run specific scanners:
96+
```yaml
97+
- uses: CodeAnt-AI/[email protected]
98+
with:
99+
access_token: ${{ secrets.ACCESS_TOKEN_GITHUB }}
100+
scanners: 'sast,secrets,iac'
101+
```
69102

70103
## Setup
71104

action.yml

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,10 @@ inputs:
2525
description: 'Scan timeout in seconds'
2626
required: false
2727
default: '300'
28+
scanners:
29+
description: 'Security scanners to run (sast, sca, secrets, antipatterns, iac, all)'
30+
required: false
31+
default: 'sast,sca'
2832

2933
runs:
3034
using: 'composite'
@@ -59,6 +63,7 @@ runs:
5963
INCLUDE_PATHS: ${{ inputs.include_paths }}
6064
EXCLUDE_PATHS: ${{ inputs.exclude_paths }}
6165
SCAN_TIMEOUT: ${{ inputs.scan_timeout }}
66+
SCANNERS: ${{ inputs.scanners }}
6267
run: |
6368
bash start_scan.sh \
6469
-a "$ACCESS_TOKEN" \
@@ -68,4 +73,5 @@ runs:
6873
-s github \
6974
-i "$INCLUDE_PATHS" \
7075
-e "$EXCLUDE_PATHS" \
71-
-t "$SCAN_TIMEOUT"
76+
-t "$SCAN_TIMEOUT" \
77+
--scanners "$SCANNERS"

0 commit comments

Comments
 (0)