Issues with git clone + ssh in pipeline

Hi, I have an issue with ssh keys.
.drone.yml:

---
kind: pipeline
type: docker
name: default

steps:
- name: test
  image: python:3.9
  environment:
    SSH_KEY:
      from_secret: ssh_key
  commands:
  - mkdir $HOME/.ssh
  - echo "$SSH_KEY" > $HOME/.ssh/id_rsa
  - chmod 600 $HOME/.ssh/id_rsa
  - ssh-keyscan git.company.net > $HOME/.ssh/known_hosts
  - if [ -f requirements.txt ]; then pip install -r requirements.txt; fi
  - pip install pytest
  - pytest -v tests/* --junitxml=test-reports/report.xml

requirements.txt:

git+ssh://[email protected]/user/yangson.git

Output is:

Collecting git+ssh://****@git.company.net/user/yangson.git (from -r requirements.txt (line 1))
  Cloning ssh://****@git.company.net/user/yangson.git to /tmp/pip-req-build-2aedxflp
  Running command git clone -q 'ssh://****@git.company.net/user/yangson.git' /tmp/pip-req-build-2aedxflp
  Warning: Permanently added the ECDSA host key for IP address '192.168.123.7' to the list of known hosts.
  Permission denied, please try again.
  Permission denied, please try again.
  [email protected]: Permission denied (publickey,password).
  fatal: Could not read from remote repository.

  Please make sure you have the correct access rights
  and the repository exists.

It’s a gitea repository and my public ssh key exists in it.
What am I doing wrong here?

Thanks in advance