Skip to content

Commit

Permalink
Fix private repo access
Browse files Browse the repository at this point in the history
  • Loading branch information
merschformann committed Feb 22, 2024
1 parent 5157db7 commit 662b6ec
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions .github/workflows/go-test-lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,12 +19,13 @@ jobs:
with:
go-version: ${{ env.GO_VERSION }}
# TODO: only required until making the repo public
- name: setup SSH Keys and known_hosts
- name: allow access to private repos
run: |
mkdir -p ~/.ssh
ssh-keyscan github.com >> ~/.ssh/known_hosts
ssh-agent -a $SSH_AUTH_SOCK > /dev/null || true
ssh-add - <<< "${{ secrets.NEXTMVBOT_SSH_KEY }}"
git config --global url."[email protected]:".insteadOf "https://github.com/"
- name: golangci-lint
uses: golangci/golangci-lint-action@v4
with:
Expand All @@ -43,11 +44,12 @@ jobs:
with:
go-version: ${{ env.GO_VERSION }}
# TODO: only required until making the repo public
- name: setup SSH Keys and known_hosts
- name: allow access to private repos
run: |
mkdir -p ~/.ssh
ssh-keyscan github.com >> ~/.ssh/known_hosts
ssh-agent -a $SSH_AUTH_SOCK > /dev/null || true
ssh-add - <<< "${{ secrets.NEXTMVBOT_SSH_KEY }}"
git config --global url."[email protected]:".insteadOf "https://github.com/"
- name: go test
run: go test ./...

0 comments on commit 662b6ec

Please sign in to comment.