Skip to content

Commit

Permalink
Merge 169f219 into 474e31c
Browse files Browse the repository at this point in the history
  • Loading branch information
spbsoluble authored Nov 11, 2024
2 parents 474e31c + 169f219 commit d0142be
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 2 deletions.
9 changes: 8 additions & 1 deletion .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 All @@ -52,7 +59,7 @@ jobs:
args: ${{ env.GO_ARGS }}
env:
# GitHub sets the GITHUB_TOKEN secret automatically.
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
GITHUB_TOKEN: ${{ secrets.V2BUILDTOKEN}}
PAT_TOKEN: ${{ secrets.GITHUB_TOKEN }}
GPG_FINGERPRINT: ${{ steps.import_gpg.outputs.fingerprint }}
GPG_TTY: $(tty)
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 d0142be

Please sign in to comment.