Skip to content

Commit ceb28c8

Browse files
STO: Document GHAS Native Step (#11382)
* Document: GHAS Native Step * Fix Broken links * Add Prerequisites for Scan Configs
1 parent 20ebb89 commit ceb28c8

File tree

6 files changed

+166
-13
lines changed

6 files changed

+166
-13
lines changed

docs/security-testing-orchestration/set-up-scans/shared/sast-scanners.md

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,10 @@
66
6. **[Coverity](/docs/security-testing-orchestration/sto-techref-category/coverity-scanner-reference)** - *open-source*
77
7. **[CodeQL](/docs/security-testing-orchestration/sto-techref-category/codeql-scanner-reference)**
88
8. **[FOSSA](/docs/security-testing-orchestration/sto-techref-category/fossa-scanner-reference)**
9-
9. **[Mend](/docs/security-testing-orchestration/sto-techref-category/mend-scanner-reference)** (formerly known as WhiteSource)
10-
10. **[Semgrep](/docs/security-testing-orchestration/sto-techref-category/semgrep/semgrep-scanner-reference)** - *open-source option*
11-
11. **[Snyk](/docs/security-testing-orchestration/sto-techref-category/snyk/snyk-scanner-reference)**
12-
12. **[SonarQube](/docs/security-testing-orchestration/sto-techref-category/sonarqube-sonar-scanner-reference)**
13-
13. **[Veracode](/docs/security-testing-orchestration/sto-techref-category/veracode-scanner-reference)**
14-
14. **[Wiz](/docs/security-testing-orchestration/sto-techref-category/wiz/repo-scans-with-wiz)**
9+
9. **[GitHub Advanced Security](/docs/security-testing-orchestration/sto-techref-category/github-advanced-security)**
10+
10. **[Mend](/docs/security-testing-orchestration/sto-techref-category/mend-scanner-reference)** (formerly known as WhiteSource)
11+
11. **[Semgrep](/docs/security-testing-orchestration/sto-techref-category/semgrep/semgrep-scanner-reference)** - *open-source option*
12+
12. **[Snyk](/docs/security-testing-orchestration/sto-techref-category/snyk/snyk-scanner-reference)**
13+
13. **[SonarQube](/docs/security-testing-orchestration/sto-techref-category/sonarqube-sonar-scanner-reference)**
14+
14. **[Veracode](/docs/security-testing-orchestration/sto-techref-category/veracode-scanner-reference)**
15+
15. **[Wiz](/docs/security-testing-orchestration/sto-techref-category/wiz/repo-scans-with-wiz)**
Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,9 @@
11
1. **[Aqua Trivy](/docs/security-testing-orchestration/sto-techref-category/trivy/aqua-trivy-scanner-reference)** - *open-source*
22
2. **[Checkmarx](/docs/security-testing-orchestration/sto-techref-category/checkmarx/checkmarx-scanner-reference)**
33
3. **[Checkmarx One](/docs/security-testing-orchestration/sto-techref-category/checkmarx/checkmarxone-scanner-reference)**
4-
4. **[OSV Scanner](/docs/security-testing-orchestration/sto-techref-category/osv-scanner-reference)** - *open-source*
5-
5. **[OWASP Dependency-Check](/docs/security-testing-orchestration/sto-techref-category/owasp-scanner-reference)** - *open-source*
6-
6. **[Snyk](/docs/security-testing-orchestration/sto-techref-category/snyk/snyk-code-scanning)**
7-
7. **[Veracode](/docs/security-testing-orchestration/sto-techref-category/veracode-scanner-reference)**
8-
8. **[Wiz](/docs/security-testing-orchestration/sto-techref-category/wiz/repo-scans-with-wiz)**
4+
4. **[GitHub Advanced Security](/docs/security-testing-orchestration/sto-techref-category/github-advanced-security)**
5+
5. **[OSV Scanner](/docs/security-testing-orchestration/sto-techref-category/osv-scanner-reference)** - *open-source*
6+
6. **[OWASP Dependency-Check](/docs/security-testing-orchestration/sto-techref-category/owasp-scanner-reference)** - *open-source*
7+
7. **[Snyk](/docs/security-testing-orchestration/sto-techref-category/snyk/snyk-code-scanning)**
8+
8. **[Veracode](/docs/security-testing-orchestration/sto-techref-category/veracode-scanner-reference)**
9+
9. **[Wiz](/docs/security-testing-orchestration/sto-techref-category/wiz/repo-scans-with-wiz)**
Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
11
1. **[Aqua Trivy](/docs/security-testing-orchestration/sto-techref-category/trivy/aqua-trivy-scanner-reference)** - *open-source*
22
2. **[Checkmarx One](/docs/security-testing-orchestration/sto-techref-category/checkmarx/checkmarxone-scanner-reference)**
3-
3. **[Gitleaks](/docs/security-testing-orchestration/sto-techref-category/gitleaks-scanner-reference)** - *open-source*
3+
3. **[Gitleaks](/docs/security-testing-orchestration/sto-techref-category/gitleaks-scanner-reference)** - *open-source*
4+
4. **[GitHub Advanced Security](/docs/security-testing-orchestration/sto-techref-category/github-advanced-security)**
Lines changed: 149 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,149 @@
1+
---
2+
title: GitHub Advanced Security step configuration
3+
description: Scan code repositories with GitHub Advanced Security (GHAS).
4+
sidebar_label: GitHub Advanced Security step configuration
5+
sidebar_position: 201
6+
---
7+
8+
<DocsTag text="Code repo scanners" backgroundColor="#cbe2f9" textColor="#0b5cad" link="/docs/security-testing-orchestration/whats-supported/scanners?view-by=target-type#code-repo-scanners" />
9+
<DocsTag text="Orchestration" backgroundColor="#e3cbf9" textColor="#5c0bad" link="/docs/security-testing-orchestration/get-started/key-concepts/run-an-orchestrated-scan-in-sto" />
10+
<DocsTag text="Extraction" backgroundColor="#e3cbf9" textColor="#5c0bad" link="/docs/security-testing-orchestration/get-started/key-concepts/extraction-scans" />
11+
<DocsTag text="Ingestion" backgroundColor="#e3cbf9" textColor="#5c0bad" link="/docs/security-testing-orchestration/get-started/key-concepts/ingest-scan-results-into-an-sto-pipeline" />
12+
<br/>
13+
<br/>
14+
15+
The GitHub Advanced Security (GHAS) step in Harness STO enables you to scan your code repositories from the following GHAS products:
16+
17+
- **[CodeQL](#codeql) (SAST):** Identify code vulnerabilities. Supported in [**Orchestration**](#scan-mode), [**Extraction**](#scan-mode), and [**Ingestion**](#scan-mode).
18+
- **[Dependabot](#dependabot) (SCA):** Detect vulnerable open-source dependencies. Supported in [**Orchestration**](#scan-mode), [**Extraction**](#scan-mode), and [**Ingestion**](#scan-mode).
19+
- **[Secret Scanning](#secret-scanning):** Detect exposed secrets such as API keys and tokens. Supported in [**Extraction**](#scan-mode) and [**Ingestion**](#scan-mode).
20+
21+
:::info
22+
- To run scans as a non-root user, you can use custom STO scan images and pipelines. See [Configure your pipeline to use STO images from private registry](/docs/security-testing-orchestration/use-sto/set-up-sto-pipelines/configure-pipeline-to-use-sto-images-from-private-registry).
23+
- STO supports multiple workflows for loading self-signed certificates. See [Run STO scans with custom SSL certificates](/docs/security-testing-orchestration/use-sto/secure-sto-pipelines/ssl-setup-in-sto/#supported-workflows-for-adding-custom-ssl-certificates).
24+
:::
25+
26+
## GitHub Advanced Security step settings
27+
28+
The recommended workflow is to add a GitHub Advanced Security step to a **Security** or **Build** stage and configure it as described below.
29+
30+
### Scan
31+
32+
#### Scan Mode
33+
34+
- **Orchestration**: Executes the scan, normalizes, and deduplicates results. Supported for **CodeQL** and **Dependabot**.
35+
:::note
36+
- To comply with [GitHub’s licensing requirements](https://docs.github.com/en/get-started/learning-about-github/about-github-advanced-security#about-github-advanced-security-products), orchestration scans are uploaded to GitHub and then imported into STO.
37+
- **Orchestration** mode currently supports *Python (pip)* and *JavaScript/TypeScript (npm or yarn)*. **Extraction** mode supports all languages available in GHAS.
38+
:::
39+
40+
- **Extraction**: Pulls existing results from GitHub APIs (**CodeQL**, **Dependabot**, **Secret Scanning**).
41+
- **Ingestion**: Ingests SARIF files from previously run GHAS scans.
42+
43+
#### Scan Configuration
44+
45+
import StoSettingProductConfigName from './shared/step-palette/scan/config-name.md';
46+
47+
<StoSettingProductConfigName />
48+
49+
The GitHub Advanced Security step supports the following configurations:
50+
- **[CodeQL](#codeql)**
51+
- **[Dependabot](#dependabot)**
52+
- **[Secret Scanning](#secret-scanning)**
53+
54+
### CodeQL
55+
You can use **CodeQL** to perform Static Application Security Testing (SAST). For details about CodeQL itself, see the [CodeQL documentation](https://docs.github.com/en/code-security/code-scanning/introduction-to-code-scanning/about-code-scanning-with-codeql).
56+
57+
Here are a few important points to note when using CodeQL with **Orchestration mode**:
58+
- The repository must be configured with **Advanced setup** for **CodeQL analysis**. To do this, go to your repository settings, click on **Advanced Security**, then go to **Code scanning** section and select **Advanced setup** for **CodeQL analysis**. If you're using default setup, you must switch to Advanced setup before running scans with Orchestration scan mode.
59+
60+
For **Extraction mode**, CodeQL works with both **Default** and **Advanced setup**.
61+
62+
---
63+
64+
### Dependabot
65+
You can use **Dependabot** for dependency (SCA) scans. For more information, see the [Dependabot documentation](https://docs.github.com/en/code-security/dependabot/dependabot-alerts/about-dependabot-alerts).
66+
67+
Prerequisites for Dependabot scans:
68+
- **Dependabot alerts** must be enabled. To check this, go to your repository settings, select **Advanced Security**, then click on **Enable** for **Dependabot alerts**.
69+
- **Dependabot** with **Orchestration mode** requires a **Docker-in-Docker (DinD)** background step. When you configure this step, set the **Entrypoint** to `dockerd-entrypoint.sh` instead of `dockerd`. For setup instructions, go to [Configure Docker-in-Docker (DinD) for your pipeline](/docs/security-testing-orchestration/sto-techref-category/security-step-settings-reference#configuring-docker-in-docker-dind-for-your-pipeline).
70+
71+
---
72+
73+
### Secret Scanning
74+
You can use **Secret Scanning** to detect exposed secrets such as API keys, tokens, or other sensitive values in your repositories. For more details about this feature, see the [Secret Scanning documentation](https://docs.github.com/en/code-security/securing-your-organization/understanding-your-organizations-exposure-to-leaked-secrets/choosing-github-secret-protection).
75+
76+
Prerequisites for Secret Scanning:
77+
- **Secret protection** must be enabled. To enable this, go to your repository settings, click on **Advanced Security**, then click on **Enable** for **Secret Protection**.
78+
79+
### Target
80+
81+
#### Type
82+
import StoSettingScanTypeRepo from './shared/step-palette/target/type/repo.md';
83+
84+
<StoSettingScanTypeRepo />
85+
86+
#### Name
87+
import StoSettingTargetName from './shared/step-palette/target/name.md';
88+
89+
<StoSettingTargetName />
90+
91+
#### Variant
92+
import StoSettingTargetVariant from './shared/step-palette/target/variant.md';
93+
94+
<StoSettingTargetVariant />
95+
96+
#### Workspace
97+
import StoSettingTargetWorkspace from './shared/step-palette/target/workspace.md';
98+
99+
<StoSettingTargetWorkspace />
100+
101+
### Ingestion File
102+
import StoSettingIngestionFile from './shared/step-palette/ingest/file.md';
103+
104+
<StoSettingIngestionFile />
105+
106+
### Authentication
107+
108+
#### Access Token
109+
import StoSettingAuthAccessToken from './shared/step-palette/auth/access-token.md';
110+
111+
<StoSettingAuthAccessToken />
112+
113+
Use a GitHub fine-grained **Personal Access Token (PAT)** with the following repository permissions:
114+
115+
| **Scan Mode** | **Permission** | **Level** |
116+
|---------------|--------------------------|---------------|
117+
| **Orchestration** (CodeQL, Dependabot) | Code scanning alerts | Read & Write |
118+
| | Dependabot alerts | Read & Write |
119+
| | Secret scanning alerts | Read & Write |
120+
| **Extraction** (CodeQL, Dependabot, Secret Scanning) | Code scanning alerts | Read-only |
121+
| | Dependabot alerts | Read-only |
122+
| | Secret scanning alerts | Read-only |
123+
124+
Make sure **Repository access** is set to *All repositories* or *Only selected repositories*.
125+
126+
### Log Level
127+
import StoSettingLogLevel from './shared/step-palette/all/log-level.md';
128+
129+
<StoSettingLogLevel />
130+
131+
### Fail on Severity
132+
import StoSettingFailOnSeverity from './shared/step-palette/all/fail-on-severity.md';
133+
134+
<StoSettingFailOnSeverity />
135+
136+
### Additional Configuration
137+
import ScannerRefAdditionalConfigs from './shared/additional-config.md';
138+
139+
<ScannerRefAdditionalConfigs />
140+
141+
### Advanced Settings
142+
import ScannerRefAdvancedSettings from './shared/advanced-settings.md';
143+
144+
<ScannerRefAdvancedSettings />
145+
146+
## Proxy settings
147+
import ProxySettings from './shared/proxy-settings.md';
148+
149+
<ProxySettings />

docs/security-testing-orchestration/sto-techref-category/shared/sto-supported-ingestion-formats.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
21
:::info
32
Static Analysis Results Interchange Format (SARIF) is an open JSON format supported by many scan tools, especially tools available as GitHub Actions. Harness STO can [ingest SARIF 2.1.0 data](/docs/security-testing-orchestration/custom-scanning/ingest-sarif-data) from any tool that supports this format.
43

@@ -26,6 +25,7 @@ Harness recommends that you publish and ingest using the scanner-specific JSON f
2625
- **Fortify on Demand** — JSON
2726
- **Fossa** — JSON
2827
- **Gitleaks** — JSON _(recommended)_, SARIF
28+
- **GitHub Advanced Security** — SARIF
2929
- **HQL AppScan** — XML
3030
- **Grype** — JSON
3131
- **Mend _(formerly Whitesource)_** — JSON

docs/security-testing-orchestration/sto-techref-category/shared/sto-supported-scanners.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,7 @@ A code scanner can detect one or more of the following issue types in your sourc
5151
<li><a href="/docs/security-testing-orchestration/sto-techref-category/fortify-on-demand-scanner-reference">Fortify on Demand</a> Orchestration, Extraction, Ingestion</li>
5252
<li><a href="/docs/security-testing-orchestration/sto-techref-category/fortify-scanner-reference">Fortify Static Code Analyzer</a> Ingestion</li>
5353
<li><a href="/docs/security-testing-orchestration/sto-techref-category/fossa-scanner-reference">Fossa</a> Ingestion</li>
54+
<li><a href="/docs/security-testing-orchestration/sto-techref-category/github-advanced-security">GitHub Advanced Security</a> Orchestration, Extraction, Ingestion</li>
5455
<li><a href="/docs/security-testing-orchestration/sto-techref-category/mend-scanner-reference">Mend (formerly WhiteSource)</a> Orchestration, Extraction, Ingestion</li>
5556
<li><a href="/docs/security-testing-orchestration/sto-techref-category/nexus-scanner-reference">Nexus IQ</a> Orchestration, Extraction, Ingestion </li>
5657
<li><a href="/docs/security-testing-orchestration/sto-techref-category/qwiet-scanner-reference">Qwiet AI (formerly ShiftLeft)</a> Orchestration, Extraction, Ingestion</li>

0 commit comments

Comments
 (0)