Skip to content

Reconnect repository should insert Deploy Key to Github #1837

@equivalent

Description

@equivalent

Before opening, please confirm:

App Id

arn:aws:amplify:eu-west-2:694647969796:apps/dg1s64s7fmyba

Region

eu-west-2

Amplify Console feature

Build settings

Describe the bug

Given I use Github with AWS Amplify
When I select repository
Then "Deployment Key" is inserted to this repository on Github
👍 so far so good

Screenshot from 2021-05-14 12-23-02

Given I remove this "Deployment Key" from Github repository (e.g. due to #1830)
When I Reconnect Repsitory (in AWS Amplify > General settings)
Then deployment key is not reinserted 👎

Screenshot from 2021-05-14 12-32-11

That means when I try to build the AWS Amplify APP this will happen
Screenshot from 2021-05-07 15-10-40

Expected behavior

Given I remove "Deployment Key" from Github repository
When I Reconnect Repsitory (in AWS Amplify > General settings)
Then deployment key should be reinserted

Reproduction steps

  1. configure AWS Amplify to use Github Repo
  2. go to Github repository settings > Deployment Keys > remove the key inserted by AWS Amplify
  3. go to AWS Amplify > general settings > reconnect repsitory
  4. check Github repository settings > Deployment Keys == see no new deployment key

Build Settings

No response

Additional information

this is related to bug #1830

and #157 (comment) and #1815

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions