Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions doc/release_notes.md
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,8 @@

* Add validation of Zenodo deposition ID in `create_zenodo_deposition_cli` to close URL-manipulation finding ([#780](https://github.com/open-energy-transition/open-tyndp/pull/780)).

* Prevent `create_zenodo_deposition_cli` from leaking secrets in logs under `--debug` by scoping debug logging to the local logger instead of the root logger ([#781](https://github.com/open-energy-transition/open-tyndp/pull/781)).


## Upcoming PyPSA-Eur Release
* Security: SBOM security scan included in CI.
Expand Down
6 changes: 5 additions & 1 deletion utils/create_zenodo_deposition_cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -458,6 +458,9 @@ def main(
"""
Guide the user through creating a new Zenodo deposition or version.
"""
# Set the global logging level
logging.basicConfig(level=logging.INFO)

global ZENODO_API_URL
ZENODO_API_URL = API_URLS["sandbox"] if sandbox else API_URLS["production"]

Expand All @@ -469,7 +472,8 @@ def main(
fg=typer.colors.YELLOW,
)
if debug:
logging.basicConfig(level=logging.DEBUG)
# change local logger level to debug
logger.setLevel(logging.DEBUG)
typer.secho("Debug mode enabled.", fg=typer.colors.YELLOW)

typer.secho("=" * 80, fg=typer.colors.CYAN)
Expand Down
Loading