Skip to content

Commit

Permalink
fix: github secrets
Browse files Browse the repository at this point in the history
  • Loading branch information
KimNorgaard committed Dec 10, 2024
1 parent 65dfe60 commit 293f0f7
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions .github/workflows/go-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit 293f0f7

Please sign in to comment.