Skip to content

Commit

Permalink
Merge e1c3e05 into 474e31c
Browse files Browse the repository at this point in the history
  • Loading branch information
spbsoluble authored Nov 11, 2024
2 parents 474e31c + e1c3e05 commit 9354208
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 1 deletion.
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: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'
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/starter.yml
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@ jobs:
call-go-build-and-release-workflow:
needs: [call-get-primary-language, call-assign-from-json-workflow, call-create-github-release-workflow,call-goreleaser-exists]
if: needs.call-get-primary-language.outputs.primary_language == 'Go' && needs.call-goreleaser-exists.outputs.goreleaser-exists == 'true'
uses: keyfactor/actions/.github/workflows/go-build-and-release.yml@v3
uses: keyfactor/actions/.github/workflows/go-build-and-release.yml@go_build_private_repo_access
with:
release_version: ${{ needs.call-create-github-release-workflow.outputs.release_version }}
secrets:
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 9354208

Please sign in to comment.