blaylockbk / SynopticPy

Retrieve mesonet weather data as Polars DataFrames from Synoptic's Weather API.
https://synopticpy.readthedocs.io/
MIT License
50 stars 6 forks source link

Use 11ty for web app #41

Closed blaylockbk closed 1 year ago

blaylockbk commented 1 year ago

Reorganizes the SynopticPy Web App using 11ty static site generator. Thanks @ngblaylock for introducing this to me and doing all this work.

gitguardian[bot] commented 1 year ago

⚠️ GitGuardian has uncovered 4 secrets following the scan of your pull request.

Please consider investigating the findings and remediating the incidents. Failure to do so may lead to compromising the associated services or software components.

🔎 Detected hardcoded secrets in your pull request
| GitGuardian id | Secret | Commit | Filename | | | -------------- | ------------------------- | ---------------- | --------------- | -------------------- | | [6909492](https://dashboard.gitguardian.com/incidents/6909492?occurrence=100265037) | Generic High Entropy Secret | dd98dd4c85c7839a89dfe405cb06ce9e8ae611b1 | 11ty-site/pages/app/assets/python/timeseries.py | [View secret](https://github.com/blaylockbk/SynopticPy/commit/dd98dd4c85c7839a89dfe405cb06ce9e8ae611b1#diff-4fedaed58b4a5de73ea699edbc09a267ff15c4ed4862d4def6946af9e6ebce40R456) | | [6909492](https://dashboard.gitguardian.com/incidents/6909492?occurrence=100265038) | Generic High Entropy Secret | dd98dd4c85c7839a89dfe405cb06ce9e8ae611b1 | 11ty-site/pages/app/assets/python/timeseries.py | [View secret](https://github.com/blaylockbk/SynopticPy/commit/dd98dd4c85c7839a89dfe405cb06ce9e8ae611b1#diff-4fedaed58b4a5de73ea699edbc09a267ff15c4ed4862d4def6946af9e6ebce40R50) | | [6909492](https://dashboard.gitguardian.com/incidents/6909492?occurrence=100274803) | Generic High Entropy Secret | 79a242ffd9fd57a7f15b263a54d2c0301ab19233 | app/assets/python/timeseries.py | [View secret](https://github.com/blaylockbk/SynopticPy/commit/79a242ffd9fd57a7f15b263a54d2c0301ab19233#diff-f6619e7a8a6a1211e4568946815110984abf94488d4261c418fe4b2c7656365cR456) | | [6909492](https://dashboard.gitguardian.com/incidents/6909492?occurrence=100274804) | Generic High Entropy Secret | 79a242ffd9fd57a7f15b263a54d2c0301ab19233 | app/assets/python/timeseries.py | [View secret](https://github.com/blaylockbk/SynopticPy/commit/79a242ffd9fd57a7f15b263a54d2c0301ab19233#diff-f6619e7a8a6a1211e4568946815110984abf94488d4261c418fe4b2c7656365cR50) |
🛠 Guidelines to remediate hardcoded secrets
1. Understand the implications of revoking this secret by investigating where it is used in your code. 2. Replace and store your secrets safely. [Learn here](https://blog.gitguardian.com/secrets-api-management?utm_source=product&utm_medium=GitHub_checks&utm_campaign=check_run_comment) the best practices. 3. Revoke and [rotate these secrets](https://docs.gitguardian.com/secrets-detection/detectors/generics/generic_high_entropy_secret#revoke-the-secret?utm_source=product&utm_medium=GitHub_checks&utm_campaign=check_run_comment). 4. If possible, [rewrite git history](https://blog.gitguardian.com/rewriting-git-history-cheatsheet?utm_source=product&utm_medium=GitHub_checks&utm_campaign=check_run_comment). Rewriting git history is not a trivial act. You might completely break other contributing developers' workflow and you risk accidentally deleting legitimate data. To avoid such incidents in the future consider - following these [best practices](https://blog.gitguardian.com/secrets-api-management/?utm_source=product&utm_medium=GitHub_checks&utm_campaign=check_run_comment) for managing and storing secrets including API keys and other credentials - install [secret detection on pre-commit](https://docs.gitguardian.com/ggshield-docs/integrations/git-hooks/pre-commit?utm_source=product&utm_medium=GitHub_checks&utm_campaign=check_run_comment) to catch secret before it leaves your machine and ease remediation.

🦉 GitGuardian detects secrets in your source code to help developers and security teams secure the modern development process. You are seeing this because you or someone else with access to this repository has authorized GitGuardian to scan your pull request.

Our GitHub checks need improvements? Share your feedbacks!

blaylockbk commented 1 year ago

@ngblaylock, I think I still need to fix the matplotlib font MonaSans, right?

blaylockbk commented 1 year ago

Nevermind, I fixed the matplotlib font in aae02cd