Skip to content

Private dependency installation fails #52

@lancehudson

Description

@lancehudson

The current version of ghcr.io/psalm/psalm-security-scan:5.12.0 does not have ssh in the container preventing the installation of private dependencies as described here https://github.com/psalm/psalm-github-actions/blob/master/README.md#auth-for-private-composer-repositories

$ docker run -ti --rm --entrypoint sh ghcr.io/psalm/psalm-security-scan:5.12.0 ssh
sh: can't open 'ssh': No such file or directory

Error from GitHub action

 Error: Failed to execute git clone --mirror -- 'ssh://[email protected]/my-org/my-dep.git' '/github/home/.composer/cache/vcs/ssh---git-github.com-my-org-my-dep.git/'
  
  Cloning into bare repository '/github/home/.composer/cache/vcs/ssh---git-github.com-my-org-my-dep.git'...
  error: cannot run ssh: No such file or directory
  fatal: unable to fork

I was able to resolve this by installing the dependencies in an earlier step, Is that the intended method?

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