Skip to content

Commit 26757d8

Browse files
use credential settings for release repo access
Use the credential settings in '~/.gitconfig' instead of the custom bloom configuration file in order to avoid maintaining an additional file with tokens and to avoid mapping https to ssh. Signed-off-by: Christian Rauch <[email protected]>
1 parent bf46139 commit 26757d8

File tree

1 file changed

+15
-0
lines changed

1 file changed

+15
-0
lines changed

source/How-To-Guides/Releasing/_Personal-Access-Token.rst

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,3 +27,18 @@ Save your GitHub username and PAT to a new file called ``~/.config/bloom``, with
2727
"github_user": "<your-github-username>",
2828
"oauth_token": "<token-you-created-for-bloom>"
2929
}
30+
31+
Configure in your ``~/.gitconfig`` that your GitHub account and PAT are used for all release repositories under https://github.com/ros2-gbp:
32+
33+
.. code-block:: ini
34+
35+
[credential "https://github.com/ros2-gbp"]
36+
username = x-access-token
37+
helper = "!f() { test \"$1\" = get && echo \"password=<token-you-created-for-bloom>\"; }; f"
38+
39+
You can additionally use different GitHub accounts and PATs for different release repos:
40+
41+
.. code-block:: ini
42+
[credential "https://github.com/ros2-gbp/my_package-release.git"]
43+
username = x-access-token
44+
helper = "!f() { test \"$1\" = get && echo \"password=<other-token-you-created-for-bloom>\"; }; f"

0 commit comments

Comments
 (0)