github-advanced-security[bot] commented on code in PR #47279:
URL: https://github.com/apache/airflow/pull/47279#discussion_r1976687096


##########
providers/cncf/kubernetes/src/airflow/providers/cncf/kubernetes/pod_generator.py:
##########
@@ -502,9 +502,12 @@
         if os.path.exists(path):
             with open(path) as stream:
                 pod = yaml.safe_load(stream)
+        elif path is None:
+            pod = None
+            log.warning("Model file is not defined, using default model file.")
         else:
             pod = None
-            log.warning("Model file %s does not exist", path)
+            log.warning("Model file %s does not exist, using default model 
file.", path)

Review Comment:
   ## Clear-text logging of sensitive information
   
   This expression logs [sensitive data (secret)](1) as clear text.
   This expression logs [sensitive data (secret)](2) as clear text.
   
   [Show more 
details](https://github.com/apache/airflow/security/code-scanning/377)



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to