Skip to content

Commit

Permalink
Merge pull request #2034 from opengovern/fix-github-account
Browse files Browse the repository at this point in the history
fix: fix github token in credentials
  • Loading branch information
artaasadi authored Nov 18, 2024
2 parents 79f0349 + ca19ca7 commit 59b57a0
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
package configs

type IntegrationCredentials struct {
Token string `json:"token"`
PatToken string `json:"pat_token"`
}
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ func (i *GithubAccountIntegration) HealthCheck(jsonData []byte, providerId strin
name = v
}
isHealthy, err := healthcheck.GithubIntegrationHealthcheck(healthcheck.Config{
Token: credentials.Token,
Token: credentials.PatToken,
OrganizationName: name,
})
return isHealthy, err
Expand All @@ -51,7 +51,7 @@ func (i *GithubAccountIntegration) DiscoverIntegrations(jsonData []byte) ([]mode
}
var integrations []models.Integration
accounts, err := discovery.GithubIntegrationDiscovery(discovery.Config{
Token: credentials.Token,
Token: credentials.PatToken,
})
for _, a := range accounts {
labels := map[string]string{
Expand Down

0 comments on commit 59b57a0

Please sign in to comment.