GitHub Access Token became invalid

It seems like the GitHub access token used for retrieving details about this repository from GitHub became invalid. This might prevent certain types of inspections from being run (in particular, everything related to pull requests).
Please ask an admin of your repository to re-new the access token on this website.
Passed
Pull Request — master (#5)
by
unknown
04:09
created

credentials.*StsTokenCredential.GetType   A

Complexity

Conditions 1

Size

Total Lines 2
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
cc 1
eloc 2
dl 0
loc 2
rs 10
c 0
b 0
f 0
nop 0
1
package credentials
2
3
type StsTokenCredential struct {
0 ignored issues
show
introduced by
exported type StsTokenCredential should have comment or be unexported
Loading history...
4
	AccessKeyID     string
5
	AccessKeySecret string
6
	SecurityToken   string
7
}
8
9
func newStsTokenCredential(accessKeyID, accessKeySecret, securityToken string) *StsTokenCredential {
10
	return &StsTokenCredential{
11
		AccessKeyID:     accessKeyID,
12
		AccessKeySecret: accessKeySecret,
13
		SecurityToken:   securityToken,
14
	}
15
}
16
17
// GetAccessKeyID reutrns  StsTokenCredential's AccessKeyID
18
func (s *StsTokenCredential) GetAccessKeyID() (string, error) {
19
	return s.AccessKeyID, nil
20
}
21
22
// GetAccessSecret reutrns  StsTokenCredential's AccessKeySecret
23
func (s *StsTokenCredential) GetAccessSecret() (string, error) {
24
	return s.AccessKeySecret, nil
25
}
26
27
// GetSecurityToken reutrns  StsTokenCredential's SecurityToken
28
func (s *StsTokenCredential) GetSecurityToken() (string, error) {
29
	return s.SecurityToken, nil
30
}
31
32
// GetBearerToken is useless StsTokenCredential
33
func (s *StsTokenCredential) GetBearerToken() string {
34
	return ""
35
}
36
37
// GetType reutrns  StsTokenCredential's type
38
func (s *StsTokenCredential) GetType() string {
39
	return "sts"
40
}
41