Add support for auto-generating github cli token (#165)

* Add support for auto-generating github cli token

Signed-off-by: Sanjula Ganepola <sanjulagane@gmail.com>

* Autogenerate Github CLI token when executing act command

Signed-off-by: Sanjula Ganepola <sanjulagane@gmail.com>

---------

Signed-off-by: Sanjula Ganepola <sanjulagane@gmail.com>
This commit is contained in:
Sanjula Ganepola
2025-02-11 22:02:35 -05:00
committed by GitHub
parent a299e7d1e7
commit 64b16d4e39
6 changed files with 144 additions and 25 deletions

View File

@@ -282,6 +282,18 @@
"title": "Hide",
"icon": "$(eye-closed)"
},
{
"category": "GitHub Local Actions",
"command": "githubLocalActions.enableGithubCLIToken",
"title": "Enable GitHub CLI Token",
"icon": "$(sync)"
},
{
"category": "GitHub Local Actions",
"command": "githubLocalActions.disableGithubCLIToken",
"title": "Disable GitHub CLI Token",
"icon": "$(sync-ignored)"
},
{
"category": "GitHub Local Actions",
"command": "githubLocalActions.createVariableFile",
@@ -472,6 +484,14 @@
"command": "githubLocalActions.hide",
"when": "never"
},
{
"command": "githubLocalActions.enableGithubCLIToken",
"when": "never"
},
{
"command": "githubLocalActions.disableGithubCLIToken",
"when": "never"
},
{
"command": "githubLocalActions.createVariableFile",
"when": "never"
@@ -673,14 +693,24 @@
},
{
"command": "githubLocalActions.show",
"when": "view == settings && viewItem =~ /^githubLocalActions.secret(?!s)_hide.*/",
"when": "view == settings && viewItem =~ /^githubLocalActions.secret(?!s)_hide(?!_generate).*/",
"group": "inline@0"
},
{
"command": "githubLocalActions.hide",
"when": "view == settings && viewItem =~ /^githubLocalActions.secret(?!s)_show.*/",
"when": "view == settings && viewItem =~ /^githubLocalActions.secret(?!s)_show(?!_generate).*/",
"group": "inline@0"
},
{
"command": "githubLocalActions.enableGithubCLIToken",
"when": "view == settings && viewItem =~ /^githubLocalActions.secret(?!s).*_manual.*/",
"group": "inline@2"
},
{
"command": "githubLocalActions.disableGithubCLIToken",
"when": "view == settings && viewItem =~ /^githubLocalActions.secret(?!s).*_generate.*/",
"group": "inline@2"
},
{
"command": "githubLocalActions.createVariableFile",
"when": "view == settings && viewItem =~ /^githubLocalActions.variables.*/",
@@ -743,7 +773,7 @@
},
{
"command": "githubLocalActions.editSetting",
"when": "view == settings && viewItem =~ /^githubLocalActions.(secret|variable|input|runner)(?!(File|s)).*/",
"when": "view == settings && viewItem =~ /^githubLocalActions.(secret|variable|input|runner)(?!(File|s))(?!_(show|hide)_generate).*/",
"group": "inline@1"
}
]