Skip to content

Commit

Permalink
fix: fix github token in credentials
Browse files Browse the repository at this point in the history
  • Loading branch information
artaasadi committed Nov 18, 2024
1 parent 79f0349 commit ca19ca7
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 ca19ca7

Please sign in to comment.