openSUSE / obs-service-tar_scm

An OBS source service: fetches code from any SCM and archives it
GNU General Public License v2.0
31 stars 105 forks source link

Support URL hostname in keyring #489

Open nickbroon opened 2 months ago

nickbroon commented 2 months ago

Allows adding just a single entry to keyring for use by multiple packages, instead of having to add them with same username/password. Very useful when there are lots packages from same source accessed using the same credentials.

https://github.com/foo/pkg1.git https://github.com/foo/pkg2.git https://github.com/bar/pkg3.git

can now share a single keyring entry for github if desire, with more specific full url taking priority if needed.

sudo -H -u obsservicerun XDG_DATA_HOME=/etc/obs/services/tar_scm.d \
keyring -b keyrings.alt.file.EncryptedKeyring \
set github.com user1

Extends very useful feature added in #342