Skip to content

Commit

Permalink
code style fix
Browse files Browse the repository at this point in the history
  • Loading branch information
htrgouvea committed Aug 23, 2024
1 parent ff7b33f commit 181b282
Showing 1 changed file with 9 additions and 10 deletions.
19 changes: 9 additions & 10 deletions security-gate.pl
Original file line number Diff line number Diff line change
Expand Up @@ -12,19 +12,18 @@

sub main {
my ($token, $repository, $dependency_alerts, $secret_scanning_alerts, $code_scanning_alerts);

my %severity_limits = map {$_ => 0} @SEVERITIES;

Getopt::Long::GetOptions(
"t|token=s" => \$token,
"r|repo=s" => \$repository,
"c|critical=i" => \$severity_limits{critical},
"h|high=i" => \$severity_limits{high},
"m|medium=i" => \$severity_limits{medium},
"l|low=i" => \$severity_limits{low},
"dependency-alerts" => \$dependency_alerts,
"t|token=s" => \$token,
"r|repo=s" => \$repository,
"c|critical=i" => \$severity_limits{critical},
"h|high=i" => \$severity_limits{high},
"m|medium=i" => \$severity_limits{medium},
"l|low=i" => \$severity_limits{low},
"dependency-alerts" => \$dependency_alerts,
"secret-scanning-alerts" => \$secret_scanning_alerts,
"code-scanning-alerts" => \$code_scanning_alerts
"code-scanning-alerts" => \$code_scanning_alerts
);

if ($token && $repository) {
Expand Down Expand Up @@ -60,4 +59,4 @@ sub main {

else {
exit main();
}
}

0 comments on commit 181b282

Please sign in to comment.