From d9a692b950d97fcee277ca28b627c142a8d46956 Mon Sep 17 00:00:00 2001 From: Axel Navarro Date: Wed, 24 Feb 2021 10:11:22 -0300 Subject: [PATCH] gh-auth: add refresh examples (#5306) --- pages/common/gh-auth.md | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/pages/common/gh-auth.md b/pages/common/gh-auth.md index 282fb70107..50625760cd 100644 --- a/pages/common/gh-auth.md +++ b/pages/common/gh-auth.md @@ -22,3 +22,11 @@ - Login with a specific GitHub Enterprise Server: `gh auth login --hostname {{github.example.com}}` + +- Refresh the session to ensure authentication credentials have the correct minimum scopes (removes additional scopes requested previously): + +`gh auth refresh` + +- Expand the permission scopes: + +`gh auth refresh --scopes {{write:org,read:public_key}}`