fix: add the "workflow" scope for managing GitHub Actions with gitauth (#5461)

Seen in Discord: https://discord.com/channels/747933592273027093/1054155742871031858/1054155742871031858
This commit is contained in:
Kyle Carberry
2022-12-19 07:17:17 -06:00
committed by GitHub
parent 9983c07e13
commit f239ca7ee3

View File

@ -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