Skip to content

Commit

Permalink
Merge pull request #402 from DaveYesland/typo/398
Browse files Browse the repository at this point in the history
fix typo closes #398
  • Loading branch information
DaveYesland authored Jan 18, 2024
2 parents cdd72b3 + b007898 commit c7e3cfb
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pacu/modules/lambda__enum/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,7 @@ def main(args, pacu_main):
func['Versions'] = fetch_lambda_data(client, 'list_versions_by_function', 'Versions', print, FunctionName=func_arn)

# Check for secrets in data
check_evn_secrets(func)
check_env_secrets(func)
if args.checksource:
check_source_secrets(func)

Expand All @@ -139,7 +139,7 @@ def summary(data, pacu_main):
return out


def check_evn_secrets(function):
def check_env_secrets(function):
try:
env_vars = function['Environment']['Variables']
[Color.print(Color.GREEN, '\t[+] Secret (ENV): {}= {}'.format(key, env_vars[key])) for key in env_vars if contains_secret(env_vars[key])]
Expand Down

0 comments on commit c7e3cfb

Please sign in to comment.