Skip to content

Forks can't fully run CI (because of lack of access to secrets) #913

@adamlamar

Description

@adamlamar

The failing workflow is:

  1. Fork kiwix-build
  2. Push a commit to your fork
  3. Observe most github action jobs are failing, see this failure example: https://github.com/adamlamar/kiwix-build/actions/runs/21456456316

To avoid the failure, we should skip the uploads to tmp.kiwix.org.

Example failure output:

--- Connect to tmp.kiwix.org:30022 ---
/home/runner/.local/lib/python3.10/site-packages/paramiko/client.py:885: UserWarning: Unknown ssh-ed25519 host key for [tmp.kiwix.org]:30022: b'40a99d946e07645ecde210836c2ba25c'
  warnings.warn(
Traceback (most recent call last):
  File "/home/runner/kiwix-build/.github/scripts/upload_failure_logs.py", line 18, in <module>
    upload(ARCHIVE_NAME, "ci@tmp.kiwix.org:30022", "/data/tmp/ci")
  File "/home/runner/kiwix-build/.github/scripts/common.py", line 292, in upload
    with get_sftp() as sftp:
  File "/usr/lib/python3.10/contextlib.py", line 135, in __enter__
    return next(self.gen)
  File "/home/runner/kiwix-build/.github/scripts/common.py", line 282, in get_sftp
    with get_client() as client:
  File "/usr/lib/python3.10/contextlib.py", line 135, in __enter__
    return next(self.gen)
  File "/home/runner/kiwix-build/.github/scripts/common.py", line 267, in get_client
    client.connect(
  File "/home/runner/.local/lib/python3.10/site-packages/paramiko/client.py", line 483, in connect
    self._auth(
  File "/home/runner/.local/lib/python3.10/site-packages/paramiko/client.py", line 814, in _auth
    raise saved_exception
  File "/home/runner/.local/lib/python3.10/site-packages/paramiko/client.py", line 727, in _auth
    key = self._key_from_filepath(
  File "/home/runner/.local/lib/python3.10/site-packages/paramiko/client.py", line 636, in _key_from_filepath
    key = klass.from_private_key_file(key_path, password)
  File "/home/runner/.local/lib/python3.10/site-packages/paramiko/pkey.py", line 431, in from_private_key_file
    key = cls(filename=filename, ***
  File "/home/runner/.local/lib/python3.10/site-packages/paramiko/ed25519key.py", line 60, in __init__
    pkformat, data = self._read_private_key("OPENSSH", f)
  File "/home/runner/.local/lib/python3.10/site-packages/paramiko/pkey.py", line 525, in _read_private_key
    raise SSHException("not a valid {} private key file".format(tag))
paramiko.ssh_exception.SSHException: not a valid OPENSSH private key file
Error: Process completed with exit code 1.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions