From ef8ef612fb4a5e4a8064eb6c354cb1965333c193 Mon Sep 17 00:00:00 2001 From: Philipp Schmelter Date: Wed, 2 Oct 2024 17:57:04 +0200 Subject: [PATCH] Test SSH --- .github/workflows/ci.yml | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 70b45ff4f7..5c5e4ebbad 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -22,6 +22,9 @@ jobs: checkout_code: runs-on: ubuntu-latest steps: + - name: Test SSH Key Authorization + if: secrets.SSH_PRIVATE_KEY + run: ssh -T git@github.com || echo "SSH key not authorized" - name: Checkout Code uses: actions/checkout@v4 with: @@ -29,6 +32,7 @@ jobs: ref: ${{ github.event.pull_request.head.ref || github.ref }} repository: ${{ github.event.pull_request.head.repo.full_name || github.repository }} ssh-key: ${{ secrets.SSH_PRIVATE_KEY }} - - name: Show current Branch + + - name: Show current branch run: | git rev-parse --abbrev-ref HEAD \ No newline at end of file