Skip to content

Commit

Permalink
Fix intigriti again
Browse files Browse the repository at this point in the history
  • Loading branch information
arkadiyt committed Oct 8, 2024
1 parent eef16c2 commit 6021951
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lib/bounty-targets/intigriti.rb
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ def scan
return @scan_results if instance_variable_defined?(:@scan_results)

@scan_results = directory_index.select do |program|
program[:confidentiality_level] == 'public' && program[:status] == 'open' && program[:tacRequired] != true
program[:confidentiality_level] == 'public' && program[:status] == 'open' && program[:tacRequired] != true && program[:twoFactorRequired] != true
end.map do |program|
program.merge(program_scopes(program))
end.sort_by do |program|
Expand Down Expand Up @@ -62,6 +62,7 @@ def directory_index
status: STATUSES[program['status']],
confidentiality_level: CONFIDENTIALITY_LEVELS[program['confidentialityLevel']],
tacRequired: program['tacRequired'],
twoFactorRequired: program['twoFactorRequired'],
min_bounty: program['minBounty'],
max_bounty: program['maxBounty']
}
Expand Down
2 changes: 2 additions & 0 deletions spec/bounty-targets/intigriti_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@
id: '12715f4b-d10e-415f-a309-6ab042f6158a',
status: 'open',
tacRequired: true,
twoFactorRequired: nil,
url: 'https://www.intigriti.com/programs/doccle/doccle/detail',
max_bounty: {'currency' => 'EUR', 'value' => 2500},
min_bounty: {'currency' => 'EUR', 'value' => 0},
Expand All @@ -34,6 +35,7 @@
handle: 'e-tracker',
id: 'a09e497e-fd75-4b56-afa0-7a6689389b76',
tacRequired: false,
twoFactorRequired: nil,
max_bounty: {'currency' => 'EUR', 'value' => 0},
min_bounty: {'currency' => 'EUR', 'value' => 0},
name: 'e-tracker',
Expand Down

0 comments on commit 6021951

Please sign in to comment.