From f239ca7ee3bd76b26b1446f39f8442a6712ee53b Mon Sep 17 00:00:00 2001 From: Kyle Carberry Date: Mon, 19 Dec 2022 07:17:17 -0600 Subject: [PATCH] fix: add the "workflow" scope for managing GitHub Actions with gitauth (#5461) Seen in Discord: https://discord.com/channels/747933592273027093/1054155742871031858/1054155742871031858 --- coderd/gitauth/oauth.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/coderd/gitauth/oauth.go b/coderd/gitauth/oauth.go index 055a8c4d16..47a8e94f88 100644 --- a/coderd/gitauth/oauth.go +++ b/coderd/gitauth/oauth.go @@ -41,7 +41,8 @@ var scope = map[codersdk.GitProvider][]string{ codersdk.GitProviderAzureDevops: {"vso.code_write"}, codersdk.GitProviderBitBucket: {"account", "repository:write"}, codersdk.GitProviderGitLab: {"write_repository"}, - codersdk.GitProviderGitHub: {"repo"}, + // "workflow" is required for managing GitHub Actions in a repository. + codersdk.GitProviderGitHub: {"repo", "workflow"}, } // regex provides defaults for each Git provider to