Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 843380

Summary: Request for write access to proj/dotnet.git and github.com/gentoo/dotnet
Product: Gentoo Infrastructure Reporter: Arsen Shnurkov <Arsen.Shnurkov>
Component: Gentoo OverlaysAssignee: Gentoo Overlays Project <overlays>
Status: RESOLVED FIXED    
Severity: normal CC: mgorny, sam
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
URL: https://forums.gentoo.org/viewtopic-t-1147218-highlight-.html
See Also: https://bugs.gentoo.org/show_bug.cgi?id=885743
Whiteboard:
Package list:
Runtime testing required: ---
Bug Depends on:    
Bug Blocks: 797043    
Attachments: SSH key
ArsenShnurkov.ssh-rsa.pub
invitation on github

Description Arsen Shnurkov 2022-05-09 04:41:32 UTC
I want write access to dotnet overlay, both repositories - in gentoo infrastructire https://gitweb.gentoo.org/repo/proj/dotnet.git, and on github too.

Reproducible: Always
Comment 1 Arsen Shnurkov 2022-05-09 04:42:04 UTC
Created attachment 777644 [details]
SSH key
Comment 2 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2022-05-09 05:53:47 UTC
ACK from me, but not able to process right now, someone else should feel free.

Note that we push to Gentoo servers and it then pushes to GitHub on your behalf.

(Also, a please would be nice!)
Comment 3 Arsen Shnurkov 2022-05-09 06:28:31 UTC
> we push to Gentoo servers and it then pushes to GitHub on your behalf

Please explain, how github PR workflow works. When I proposed PR to dotnet overlay, cynede accepted it, that mean it is added as an extra commit to dotnet repository on github, but not in gentoo inftastructure.

What happens next to keep reposiories identical? I suppose that someone should push changes from github to gentoo.

And also he should have permissions on github, which are dirrerent from permissions on gentoo (for accepting PR's for example)
Comment 4 Michał Górny archtester Gentoo Infrastructure gentoo-dev Security 2022-05-09 07:59:05 UTC
I've added (In reply to Arsen Shnurkov from comment #1)
> Created attachment 777644 [details]
> SSH key

That's PGP key, not SSH key.

You should have gotten an invite to GitHub.  I'll give you repo commit access when you attach the correct key.

You push everything to git.gentoo.org, and then GH will be updated.  The sync is one direction only, anything that happens on GH is overwritten.  You can use app-portage/pram to merge PRs easily.
Comment 5 Arsen Shnurkov 2022-05-09 11:54:05 UTC
> That's PGP key, not SSH key.

I used wrong command to extract public key:

/home/user/.ssh # openssl rsa -in ArsenShnurkov.RSA.private.key -pubout > ArsenShnurkov.pub 

Now I use another one:

$ ssh-keygen -y -f ArsenShnurkov.RSA.private.key >ArsenShnurkov.ssh-rsa.pub
Comment 6 Arsen Shnurkov 2022-05-09 11:54:26 UTC
Created attachment 777755 [details]
ArsenShnurkov.ssh-rsa.pub
Comment 7 Michał Górny archtester Gentoo Infrastructure gentoo-dev Security 2022-05-09 12:09:02 UTC
Added.
Comment 8 Arsen Shnurkov 2022-05-09 12:41:18 UTC
Created attachment 777764 [details]
invitation on github
Comment 9 Arsen Shnurkov 2022-05-09 14:18:18 UTC
$ ssh git@git.gentoo.org info | grep " W"
 R W	proj/eselect-fontconfig
 R W	proj/test
 R W	repo/proj/dotnet
Comment 10 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2022-05-09 14:20:42 UTC
(In reply to Arsen Shnurkov from comment #9)
> $ ssh git@git.gentoo.org info | grep " W"
>  R W	proj/eselect-fontconfig
>  R W	proj/test
>  R W	repo/proj/dotnet

Sounds fine?