Skip to content
This repository was archived by the owner on Mar 29, 2020. It is now read-only.
This repository was archived by the owner on Mar 29, 2020. It is now read-only.

ERROR: The key you are authenticating with has been marked as read only #116

@Leko

Description

@Leko

Environment

  • Version: 0.4.13
  • package manager: npm
  • directory structure: lerna

Overview

By default, many CI builds don't have write permission.
An error occurred when I want to run hothouse in CI.

https://circleci.com/gh/Leko/hothouse/441

Error: ERROR: The key you are authenticating with has been marked as read only.
fatal: Could not read from remote repository.

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

    at spawn (/root/.npm/_npx/256/lib/node_modules/hothouse/dist/git.js:24:11)
    at Object.push (/root/.npm/_npx/256/lib/node_modules/hothouse/dist/git.js:63:5)
    at Engine.commit (/root/.npm/_npx/256/lib/node_modules/hothouse/dist/Engine.js:218:26)
    at <anonymous>
    at process._tickCallback (internal/process/next_tick.js:188:7)

Actual behavior

Cannot push even if pass personal access token to hothouse

Expected behavior

This problem solved by one of two solutions.

1. (TBV) Add --repo option to git push when token passed

git push can receive --repo option.
(Please refer man git-push)

OPTIONS
       <repository>
           The "remote" repository that is destination of a push operation.
           This parameter can be either a URL (see the section GIT URLS below)
           or the name of a remote (see the section REMOTES below).

--repo can override remote URL temporary.
So can we use HTTPS + Basic Auth?

2. Add documentation

It's a passive solution but useful for many users.
To describe these facts:

  • Many CI cannot push to remote by default.
  • If you want to use hothouse in CI, please add SSH key to your project.

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions