diff --git a/.github/workflows/go-ci.yml b/.github/workflows/go-ci.yml index 32b8be7..a103423 100644 --- a/.github/workflows/go-ci.yml +++ b/.github/workflows/go-ci.yml @@ -3,6 +3,11 @@ name: Go CI on: workflow_call: + secrets: + github_username: + required: false + github_token: + required: false inputs: go-version: description: "The version of Go to use" @@ -58,6 +63,10 @@ jobs: with: go-version-file: go.mod + - name: Setup private repository access + if: inputs.go-private != '' + run: git config --global url."https://${{ secrets.github_username }}:${{ secrets.github_token }}@github.com".insteadOf "https://github.com" + - name: Install dependencies run: | go env