From bae036ddbfa395850ee683b601bff0386afe0a91 Mon Sep 17 00:00:00 2001 From: Achille Roussel Date: Fri, 26 May 2023 22:02:01 -0700 Subject: [PATCH] try to allow access to private repositories Signed-off-by: Achille Roussel --- .github/workflows/build.yml | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 4cc77153..61e10915 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -16,6 +16,7 @@ concurrency: env: # renovate: datasource=go depName=github.com/golangci/golangci-lint GOLANGCI_LINT_VERSION: v1.52.2 + GOPRIVATE: github.com/stealthrocket/* jobs: spellcheck: @@ -54,6 +55,11 @@ jobs: name: Go Test runs-on: ubuntu-latest steps: + - name: Configure git for private modules + env: + TOKEN: ${{ secrets.PRIVATE_ACCESS_TOKEN }} + run: git config --global url."https://stealthrocket:${TOKEN}@github.com".insteadOf "https://github.com" + - uses: actions/checkout@v3 - name: Set up Go