-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(build):
go
build allow private repo access
- Loading branch information
1 parent
474e31c
commit b41916a
Showing
2 changed files
with
15 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -27,6 +27,13 @@ jobs: | |
with: | ||
# Allow goreleaser to access older tag information. | ||
fetch-depth: 0 | ||
|
||
- name: Set up private repo access for go get | ||
run: | | ||
git config --global url."https://$GITHUB_TOKEN:[email protected]/".insteadOf "https://github.com/" | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.V2BUILDTOKEN}} | ||
|
||
- uses: keyfactor/[email protected] | ||
with: | ||
go-version-file: 'go.mod' | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
|
||
# Changelog | ||
|
||
## v3.1.3 | ||
|
||
### Fixes | ||
|
||
- Configure `go` build process to use build token for private repository access. |