Skip to content

Commit

Permalink
fix(build): go build allow private repo access
Browse files Browse the repository at this point in the history
  • Loading branch information
spbsoluble committed Nov 11, 2024
1 parent 474e31c commit b41916a
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 0 deletions.
7 changes: 7 additions & 0 deletions .github/workflows/go-build-and-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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'
Expand Down
8 changes: 8 additions & 0 deletions CHANGELOG.md
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.

0 comments on commit b41916a

Please sign in to comment.