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: troubleshooting/codeql-builds/compiled-languages-go.md
+5-3Lines changed: 5 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -2,11 +2,13 @@
2
2
3
3
Autobuild fails with error "Some packages could not be found"
4
4
5
-
There are two options when it comes to private repositories:
6
-
7
-
-Set-up the Go environment within the Actions workflow (not vendoring then)
5
+
There are a few options when it comes to private repositories:
6
+
- Default Setup [can take advantage of Global Private Registry configuration](https://github.blog/changelog/2025-06-10-private-registries-for-go-codeql-scans/) via `GOPROXY`
7
+
-Advanced setup via yaml configuration can initialize the Go environment within the Actions workflow
8
8
- Vendor the dependencies
9
9
10
+
### Advanced Setup
11
+
10
12
Setting up the Go environment can be done by adding a Actions step to update the [Go settings](https://go.dev/ref/mod#private-modules) pointing them to use a [GitHub Personal Access Token](https://docs.github.com/en/authentication/keeping-your-account-and-data-secure/creating-a-personal-access-token) with the corresponding access to the private repository.
11
13
The example below shows how this can be done using a single step before the CodeQL Initize step - storing the GitHub PAT in an Actions Secret.
0 commit comments