diff --git a/.github/workflows/verify-on-macos.yml b/.github/workflows/verify-on-macos.yml index b631750..5363970 100644 --- a/.github/workflows/verify-on-macos.yml +++ b/.github/workflows/verify-on-macos.yml @@ -23,11 +23,34 @@ jobs: uses: ./. with: key: ${{ secrets.SSH_KEY_PEM }} - known_hosts: ${{ secrets.KNOWN_HOSTS }} + known_hosts: unnecessary - name: print created files run: ls -l ~/.ssh - name: git clone through SSH run: git clone git@github.com:shimataro/ssh-key-action.git tmp + ssh-pem-bitbucket: + name: Connect to bitbucket.org (PEM format) + runs-on: ${{ matrix.os }} + strategy: + fail-fast: false + matrix: + os: + - macos-10.15 + - macos-11 + - macos-12 + steps: + - name: Checkout source codes + uses: actions/checkout@v2 + - name: Install SSH key + uses: ./. + with: + key: ${{ secrets.SSH_KEY_PEM }} + known_hosts: | + bitbucket.org ssh-rsa AAAAB3NzaC1yc2EAAAABIwAAAQEAubiN81eDcafrgMeLzaFPsw2kNvEcqTKl/VqLat/MaB33pZy0y3rJZtnqwR2qOOvbwKZYKiEO1O6VqNEBxKvJJelCq0dTXWT5pbO2gDXC6h6QDXCaHo6pOHGPUy+YBaGQRGuSusMEASYiWunYN0vCAI8QaXnWMXNMdFP3jHAJH0eDsoiGnLPBlBp4TNm6rYI74nMzgz3B9IikW4WVK+dc8KZJZWYjAuORU3jc1c/NPskD2ASinf8v3xnfXeukU0sJ5N6m5E8VLjObPEO+mN2t/FZTMZLiFqPWc/ALSqnMnnhwrNi2rbfg/rd/IpL8Le3pSBne8+seeFVBoGqzHM9yXw== + - name: print created files + run: ls -l ~/.ssh + - name: git clone through SSH + run: git clone git@bitbucket.org:shimataro999/ssh-test.git tmp ssh-pkcs8: name: Connect to github.com (PKCS8 format) runs-on: ${{ matrix.os }} @@ -257,26 +280,3 @@ jobs: run: ls -l ~/.ssh - name: git clone through SSH run: git clone git@github.com:shimataro/ssh-key-action.git tmp - - known_hosts-unnecessary: - name: without known_hosts file - runs-on: ${{ matrix.os }} - strategy: - fail-fast: false - matrix: - os: - - macos-10.15 - - macos-11 - - macos-12 - steps: - - name: Checkout source codes - uses: actions/checkout@v2 - - name: Install SSH key - uses: ./. - with: - key: ${{ secrets.SSH_KEY_PEM }} - known_hosts: unnecessary - - name: print created files - run: ls -l ~/.ssh - - name: git clone through SSH # can clone because key of "github.com" always set to "known_hosts" - run: git clone git@github.com:shimataro/ssh-key-action.git tmp