Skip to content

Commit 0d527c9

Browse files
authored
Merge pull request #41962 from github/repo-sync
Repo sync
2 parents 4b6ab24 + 0375f99 commit 0d527c9

File tree

2 files changed

+52
-1
lines changed

2 files changed

+52
-1
lines changed

content/code-security/code-scanning/managing-your-code-scanning-configuration/codeql-query-suites.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ The built-in {% data variables.product.prodname_codeql %} query suites, `default
4444
* Relative to the `default` query suite, the `security-extended` suite may return a greater number of false positive {% data variables.product.prodname_code_scanning %} results.
4545
* This query suite is available for use with default setup for {% data variables.product.prodname_code_scanning %}, and is referred to as the "Extended" query suite on {% data variables.product.prodname_dotcom %}.
4646

47-
For a complete list of queries included in each query suite for every language, see [AUTOTITLE](/code-security/code-scanning/reference).
47+
For a complete list of queries included in each query suite for every language, see [AUTOTITLE](/code-security/code-scanning/reference/code-ql-built-in-queries).
4848

4949
## Further reading
5050

content/code-security/supply-chain-security/understanding-your-software-supply-chain/configuring-automatic-dependency-submission-for-your-repository.md

Lines changed: 51 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -69,6 +69,57 @@ Once enabled, automatic dependency submission jobs will run on the self-hosted r
6969

7070
>[!NOTE] For Maven or Gradle projects that use self-hosted runners with private Maven registries, you need to modify the Maven server settings file to allow the dependency submission workflows to connect to the registries. For more information about the Maven server settings file, see [Security and Deployment Settings](https://maven.apache.org/guides/introduction/introduction-to-dependency-mechanism.html#transitive-dependencies) in the Maven documentation.
7171
72+
### Configuring network access for self-hosted runners
73+
74+
If your self-hosted runners operate behind a firewall with restricted outbound internet access, you must add certain URLs to the allowlist for automatic dependency submission. The required URLs depend on the ecosystems your repositories use.
75+
76+
#### Required URLs for all ecosystems
77+
78+
These URLs are required for all automatic dependency submission workflows:
79+
80+
* `https://github.com`—Required for accessing {% data variables.product.github %} and downloading actions.
81+
* `https://api.github.com`—Required for {% data variables.product.github %} API access.
82+
* `https://*.githubusercontent.com`—Required for downloading action source code and releases (including `raw.githubusercontent.com`, `github-releases.githubusercontent.com`, and `objects.githubusercontent.com`).
83+
84+
#### Ecosystem-specific URLs
85+
86+
Depending on the ecosystems you use, you may need to allowlist additional URLs.
87+
88+
##### Go
89+
90+
* `https://go.dev`—For downloading the Go toolchain.
91+
* `https://golang.org`—Alternate domain for Go downloads.
92+
* `https://proxy.golang.org`—Official Go module proxy for downloading Go modules during dependency detection.
93+
94+
> [!NOTE]
95+
> The `actions/go-versions` repository is accessed via `https://raw.githubusercontent.com`, which is already covered in the general requirements.
96+
97+
##### Java (Maven and Gradle)
98+
99+
* `https://repo.maven.apache.org`—Maven Central repository for downloading dependencies.
100+
* `https://api.adoptium.net`—For downloading Adoptium/Temurin JDK distributions (default distribution used by `actions/setup-java`).
101+
102+
If you use a different JDK distribution, you may also need:
103+
* `https://aka.ms` and `https://download.microsoft.com`—For Microsoft Build of OpenJDK (note: `aka.ms` is also used for .NET downloads).
104+
* `https://download.oracle.com`—For Oracle JDK.
105+
* `https://api.azul.com`—For Azul Zulu OpenJDK.
106+
107+
##### .NET (C#, F#, Visual Basic)
108+
109+
* `https://aka.ms`—Microsoft URL shortener that redirects to .NET download locations.
110+
* `https://builds.dotnet.microsoft.com`—Primary feed for .NET SDK and runtime downloads.
111+
* `https://ci.dot.net`—Secondary feed for .NET builds.
112+
113+
> [!NOTE]
114+
> The `microsoft/component-detection` tool used by .NET autosubmission is downloaded from {% data variables.product.github %} releases, which is already covered in the general requirements (`https://github.com` and `https://*.githubusercontent.com`).
115+
116+
##### Python
117+
118+
* `https://python.org`—For downloading Python interpreters.
119+
120+
> [!NOTE]
121+
> The `actions/python-versions` repository and `microsoft/component-detection` releases are accessed via URLs already covered in the general requirements (`https://*.githubusercontent.com` and `https://github.com`).
122+
72123
## Using {% data variables.product.company_short %}-hosted {% data variables.actions.hosted_runners %} for automatic dependency submission
73124

74125
{% data variables.product.prodname_team %} or {% data variables.product.prodname_ghe_cloud %} users can use {% data variables.actions.hosted_runners %} to run automatic dependency submissions jobs.

0 commit comments

Comments
 (0)