Skip to content

Commit f239ca7

Browse files
authored
fix: add the "workflow" scope for managing GitHub Actions with gitauth (#5461)
Seen in Discord: https://discord.com/channels/747933592273027093/1054155742871031858/1054155742871031858
1 parent 9983c07 commit f239ca7

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

coderd/gitauth/oauth.go

+2-1
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,8 @@ var scope = map[codersdk.GitProvider][]string{
4141
codersdk.GitProviderAzureDevops: {"vso.code_write"},
4242
codersdk.GitProviderBitBucket: {"account", "repository:write"},
4343
codersdk.GitProviderGitLab: {"write_repository"},
44-
codersdk.GitProviderGitHub: {"repo"},
44+
// "workflow" is required for managing GitHub Actions in a repository.
45+
codersdk.GitProviderGitHub: {"repo", "workflow"},
4546
}
4647

4748
// regex provides defaults for each Git provider to

0 commit comments

Comments
 (0)