You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: content/admin/configuration/configuring-code-scanning-for-your-appliance.md
+22-1Lines changed: 22 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -42,7 +42,6 @@ For the users of {% data variables.product.product_location %} to be able to ena
42
42

43
43
{% data reusables.enterprise_management_console.save-settings %}
44
44
45
-
46
45
### Running {% data variables.product.prodname_code_scanning %} using {% data variables.product.prodname_actions %}
47
46
48
47
#### Setting up a self-hosted runner
@@ -89,3 +88,25 @@ The {% data variables.product.prodname_codeql_runner %} is a command-line tool t
89
88
1. Under "{% data variables.product.prodname_advanced_security %}", unselect **{% data variables.product.prodname_code_scanning_capc %}**.
90
89

91
90
{% data reusables.enterprise_management_console.save-settings %}
91
+
92
+
### Enabling or disabling {% data variables.product.prodname_code_scanning %} via the administrative shell (SSH)
93
+
94
+
You can enable or disable {% data variables.product.prodname_code_scanning %} programmatically on {% data variables.product.product_location %}. For example, you can enable {% data variables.product.prodname_code_scanning %} with your infrastructure-as-code tooling when you deploy an instance for staging or disaster recovery.
95
+
96
+
For more information about the administrative shell and command-line utilities for {% data variables.product.prodname_ghe_server %}, see "[Accessing the administrative shell (SSH)](/admin/configuration/accessing-the-administrative-shell-ssh)" and "[Command-line utilities](/admin/configuration/command-line-utilities#ghe-config)."
97
+
98
+
1. SSH into {% data variables.product.product_location %}.
99
+
1. Enable {% data variables.product.prodname_code_scanning %}.
100
+
```shell
101
+
ghe-config app.minio.enabled true
102
+
ghe-config app.code-scanning.enabled true
103
+
```
104
+
2. Optionally, disable {% data variables.product.prodname_code_scanning %}.
0 commit comments