Bookmarklets for listing gitlab bookmarklets and copy them
gitlab secrets bookmarkletsHelper bookmarklets to display all keys and values of a gitlab secrets page in a single element. This way, you can copy them all in one go.
Why? Because
5.1k
By Kate Angelou
gitlab secrets bookmarklets
Helper bookmarklets to display all keys and values of a gitlab secrets page in a single element. This way, you can copy them all in one go.
Why? Because otherwise, you'd have to select, copy and paste each key and value manually, which is tedious.
Not a common use case, but I needed this several times, e.g. when requested by project managers, or when you need to replicate deployments or builds on a different system or locally.
Installation
Create new bookmark, give it some title like "Gitlab Secrets", but instead of a URL, use the javascript:(...) code found below
You can also just select the code below and drag it to your browser's bookmarks bar:
Usage
On a gitlab secrets page, simply click the bookmark.
In other gitlab versions, the selectors might need to be adjusted, but the concept is the same.
The scripts are below and you change selectors as needed. Afterwards, minify the script so it's a one-liner and wrap it in javacript:() so it runs as a bookmarklet.