From b41916a5c5736d6a32e4a1da4b8dd71400d7beed Mon Sep 17 00:00:00 2001 From: spbsoluble <1661003+spbsoluble@users.noreply.github.com> Date: Mon, 11 Nov 2024 10:04:21 -0800 Subject: [PATCH] fix(build): `go` build allow private repo access --- .github/workflows/go-build-and-release.yml | 7 +++++++ CHANGELOG.md | 8 ++++++++ 2 files changed, 15 insertions(+) create mode 100644 CHANGELOG.md diff --git a/.github/workflows/go-build-and-release.yml b/.github/workflows/go-build-and-release.yml index 73d711e..f7d6ee3 100644 --- a/.github/workflows/go-build-and-release.yml +++ b/.github/workflows/go-build-and-release.yml @@ -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:x-oauth-basic@github.com/".insteadOf "https://github.com/" + env: + GITHUB_TOKEN: ${{ secrets.V2BUILDTOKEN}} + - uses: keyfactor/setup-go@v5.0.1 with: go-version-file: 'go.mod' diff --git a/CHANGELOG.md b/CHANGELOG.md new file mode 100644 index 0000000..3be47a6 --- /dev/null +++ b/CHANGELOG.md @@ -0,0 +1,8 @@ + +# Changelog + +## v3.1.3 + +### Fixes + +- Configure `go` build process to use build token for private repository access. \ No newline at end of file