Skip to content

Commit

Permalink
Merge pull request #3171 from gep13/make-user-sensitive-argument
Browse files Browse the repository at this point in the history
(#948) Add user as sensitive argument
  • Loading branch information
gep13 authored May 30, 2023
2 parents ebef819 + 849d776 commit d25f993
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/chocolatey/infrastructure.app/utility/ArgumentsUtility.cs
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,10 @@ public static bool SensitiveArgumentsProvided(string commandArguments)
|| commandArguments.ContainsSafe("-key=")
|| commandArguments.ContainsSafe("-apikey")
|| commandArguments.ContainsSafe("-api-key")
|| commandArguments.ContainsSafe("-u ")
|| commandArguments.ContainsSafe("-u=")
|| commandArguments.ContainsSafe("-user ")
|| commandArguments.ContainsSafe("-user=")
;
}

Expand Down

0 comments on commit d25f993

Please sign in to comment.