From 2ecd124881e405db181129cda357f16ab7efb452 Mon Sep 17 00:00:00 2001 From: Kyle Carberry Date: Sun, 18 Dec 2022 22:47:32 +0000 Subject: [PATCH] fix: add the "workflow" scope for managing GitHub Actions with gitauth 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 055a8c4d166c0..47a8e94f88803 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