Skip to content

Commit

Permalink
Clean up clear text logging in tpt_reports brough over from skeleton …
Browse files Browse the repository at this point in the history
…base code.
  • Loading branch information
nickviola committed Aug 7, 2023
1 parent 635ce1a commit 6813f48
Showing 1 changed file with 10 additions and 7 deletions.
17 changes: 10 additions & 7 deletions src/tpt_reports/tpt_reports.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,8 @@

# Third-Party Libraries
import docopt
import pkg_resources

# import pkg_resources
from schema import And, Schema, SchemaError, Use

from ._version import __version__
Expand Down Expand Up @@ -92,12 +93,14 @@ def main() -> None:
logging.info('ECHO_MESSAGE="%s"', message)

# Access some data from our package data (see the setup.py)
secret_message: str = (
pkg_resources.resource_string("tpt_reports", "data/secret.txt")
.decode("utf-8")
.strip()
)
logging.info('Secret="%s"', secret_message)
# Commenting skeleton base code section because of Clear-text logging
# of sensitive information error in CI
# secret_message: str = (
# pkg_resources.resource_string("tpt_reports", "data/secret.txt")
# .decode("utf-8")
# .strip()
# )
# logging.info('Secret="%s"', secret_message)

# Stop logging and clean up
logging.shutdown()

0 comments on commit 6813f48

Please sign in to comment.