File tree Expand file tree Collapse file tree 2 files changed +3
-2
lines changed
pkg/analyzer/analyzers/github Expand file tree Collapse file tree 2 files changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -37,6 +37,7 @@ func secretInfoToAnalyzerResult(info *common.SecretInfo) *analyzers.AnalyzerResu
37
37
return nil
38
38
}
39
39
result := & analyzers.AnalyzerResult {
40
+ AnalyzerType : analyzers .AnalyzerTypeGitHub ,
40
41
Metadata : map [string ]any {
41
42
"owner" : info .Metadata .User .Login ,
42
43
"type" : info .Metadata .Type ,
Original file line number Diff line number Diff line change @@ -35,7 +35,7 @@ func TestAnalyzer_Analyze(t *testing.T) {
35
35
key : analyzerSecrets .MustGetField ("GITHUB_FINEGRAINED_ALLREPOS_ACTIONS_RW_CONTENTS_RW_ISSUES_RW" ),
36
36
wantErr : false ,
37
37
want : `{
38
- "AnalyzerType": 0 ,
38
+ "AnalyzerType": 7 ,
39
39
"Bindings": [
40
40
{
41
41
"Resource": {
@@ -240,7 +240,7 @@ func TestAnalyzer_Analyze(t *testing.T) {
240
240
name : "v2 ghp" ,
241
241
key : testSecrets .MustGetField ("GITHUB_VERIFIED_GHP" ),
242
242
want : `{
243
- "AnalyzerType": 0 ,
243
+ "AnalyzerType": 7 ,
244
244
"Bindings": [
245
245
{
246
246
"Resource": {
You can’t perform that action at this time.
0 commit comments