Skip to content

Commit

Permalink
Merge pull request #218 from platformsh/remove-gh-actions-private-key
Browse files Browse the repository at this point in the history
Remove SSH setup in CI
  • Loading branch information
akalipetis authored Nov 26, 2024
2 parents f80a4d9 + 367dd12 commit 0144431
Showing 1 changed file with 0 additions and 17 deletions.
17 changes: 0 additions & 17 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,6 @@ on:
permissions:
contents: read

env:
GOPRIVATE: github.com/platformsh

jobs:
test:
runs-on: ubuntu-latest
Expand All @@ -38,20 +35,6 @@ jobs:
touch internal/legacy/archives/php_darwin_arm64
touch internal/config/embedded-config.yaml
- name: Add SSH Go Module Private Key
env:
SSH_AUTH_SOCK: /tmp/ssh_agent.sock
run: |
mkdir -p ~/.ssh
ssh-keyscan github.com >> ~/.ssh/known_hosts
ssh-agent -a $SSH_AUTH_SOCK > /dev/null
ssh-add - <<< "${{ secrets.GO_MODULE_PRIVATE_KEY }}"
echo "SSH_AUTH_SOCK=$SSH_AUTH_SOCK" >> $GITHUB_ENV
- name: Setup access for private go modules
run: |
git config --global url."ssh://git@github.com/".insteadOf https://github.com/
- name: Run linter
uses: golangci/golangci-lint-action@v3
with:
Expand Down

0 comments on commit 0144431

Please sign in to comment.