Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.

Lars-Janssen's avatar

Laravel 7 Nova Github action not working anymore

Hi,

I've upgraded my app to Laravel 7 (with Laravel Nova). But now my github action is failing:

- Installing laravel/nova (3.0.x-dev 73f71a3): Downloading (connecting...)Downloading (0%)           Downloading (failed)    Failed to download laravel/nova from dist: The "https://api.github.com/repos/laravel/nova/zipball/73f71a38401dfbdfd6130a0fcc392a9c621b4e45" file could not be downloaded (HTTP/1.1 404 Not Found)
    Now trying to download from source
  - Installing laravel/nova (3.0.x-dev 73f71a3): Cloning 73f71a3840

                                                                                                                                                                                                                                                                                                                                                                                                                              
  [RuntimeException]                                                                                                                                                                                                                                                                                                                                                                                                          
  Failed to execute git clone --no-checkout '[email protected]:laravel/nova.git' '/__w/project/vendor/laravel/nova' && cd '/__w/orihect/vendor/laravel/nova' && git remote add composer '[email protected]:laravel/nova.git' && git fetch composer && git remote set-url origin '[email protected]:laravel/nova.git' && git remote set-url composer '[email protected]:laravel/nova.git'  
                                                                                                                                                                                                                                                                                                                                                                                                                              
  Cloning into '/__w/project/vendor/laravel/nova'...                                                                                                                                                                                                                                                                                                                                                  
  Host key verification failed.                                                                                                                                                                                                                                                                                                                                                                                               
  fatal: Could not read from remote repository.                                                                                                                                                                                                                                                                                                                                                                               
                                                                                                                                                                                                                                                                                                                                                                                                                              
  Please make sure you have the correct access rights                                                                                                                                                                                                                                                                                                                                                                         
  and the repository exists. 

My github action looks like this:

name: Laravel

on: [push]

jobs:
  phpunit:
    runs-on: ubuntu-latest
    container:
      image: kirschbaumdevelopment/laravel-test-runner:7.4

    services:
      mysql:
        image: mysql:5.7
        env:
          MYSQL_ROOT_PASSWORD: password
          MYSQL_DATABASE: test
        ports:
          - 33306:3306
        options: --health-cmd="mysqladmin ping" --health-interval=10s --health-timeout=5s --health-retries=3

    steps:
      - uses: actions/checkout@v1
        with:
          fetch-depth: 1

      - name: Install composer dependencies
        run: |
          php --version
          composer config "http-basic.nova.laravel.com" "${{ secrets.NOVA_USERNAME }}" "${{ secrets.NOVA_PASSWORD }}"
          composer install -n --prefer-dist
      - name: Prepare Laravel Application
        run: |
          cp .env.ci .env
          php artisan key:generate
      - name: Migrate database
        run: |
          php artisan migrate --database=mysql_testing
      - name: Run Testsuite
        run: vendor/bin/phpunit tests/
      - uses: 8398a7/action-slack@v2
        with:
          status: ${{ job.status }}
          text: overwrite text
        env:
          GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} # required
          SLACK_WEBHOOK_URL: ${{ secrets.SLACK_WEBHOOK_URL }} # required
        if: always()

I've defined the NOVA_USERNAME and NOVA_PASSWORD in my github secrets. It was working before but now it doesn't. Nova is updated to version 3 has it something to do with that?

Please let me know.

0 likes
4 replies
bobbybouwmann's avatar
Level 88

I believe the problem lies in this part

Cloning into '/__w/project/vendor/laravel/nova'...
Host key verification failed.  fatal: 
Could not read from remote repository.

Host key verification failed mostly means that you are not allowed to pull the repo over [email protected]:laravel/nova because your SSH key is not available inside the runner.

This might be useful for you: https://github.community/t5/GitHub-Actions/Github-Actions-CI-how-to-use-store-deploy-key-to-download-from/td-p/29584

Please or to participate in this conversation.