eea.stringinterp 1.2__tar.gz → 1.3__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {eea_stringinterp-1.2/eea.stringinterp.egg-info → eea_stringinterp-1.3}/PKG-INFO +56 -1
- {eea_stringinterp-1.2 → eea_stringinterp-1.3}/README.rst +50 -0
- {eea_stringinterp-1.2 → eea_stringinterp-1.3}/docs/HISTORY.txt +5 -0
- eea_stringinterp-1.3/eea/stringinterp/locales/bg/LC_MESSAGES/eea.mo +0 -0
- eea_stringinterp-1.3/eea/stringinterp/locales/bg/LC_MESSAGES/plone.mo +0 -0
- eea_stringinterp-1.3/eea/stringinterp/locales/cs/LC_MESSAGES/eea.mo +0 -0
- eea_stringinterp-1.3/eea/stringinterp/locales/cs/LC_MESSAGES/plone.mo +0 -0
- eea_stringinterp-1.3/eea/stringinterp/locales/da/LC_MESSAGES/eea.mo +0 -0
- eea_stringinterp-1.3/eea/stringinterp/locales/da/LC_MESSAGES/plone.mo +0 -0
- eea_stringinterp-1.3/eea/stringinterp/locales/de/LC_MESSAGES/eea.mo +0 -0
- eea_stringinterp-1.3/eea/stringinterp/locales/de/LC_MESSAGES/plone.mo +0 -0
- eea_stringinterp-1.3/eea/stringinterp/locales/el/LC_MESSAGES/eea.mo +0 -0
- eea_stringinterp-1.3/eea/stringinterp/locales/el/LC_MESSAGES/plone.mo +0 -0
- eea_stringinterp-1.3/eea/stringinterp/locales/en/LC_MESSAGES/eea.mo +0 -0
- eea_stringinterp-1.3/eea/stringinterp/locales/en/LC_MESSAGES/plone.mo +0 -0
- eea_stringinterp-1.3/eea/stringinterp/locales/es/LC_MESSAGES/eea.mo +0 -0
- eea_stringinterp-1.3/eea/stringinterp/locales/es/LC_MESSAGES/plone.mo +0 -0
- eea_stringinterp-1.3/eea/stringinterp/locales/et/LC_MESSAGES/eea.mo +0 -0
- eea_stringinterp-1.3/eea/stringinterp/locales/et/LC_MESSAGES/plone.mo +0 -0
- eea_stringinterp-1.3/eea/stringinterp/locales/eu/LC_MESSAGES/eea.mo +0 -0
- eea_stringinterp-1.3/eea/stringinterp/locales/eu/LC_MESSAGES/plone.mo +0 -0
- eea_stringinterp-1.3/eea/stringinterp/locales/fi/LC_MESSAGES/eea.mo +0 -0
- eea_stringinterp-1.3/eea/stringinterp/locales/fi/LC_MESSAGES/plone.mo +0 -0
- eea_stringinterp-1.3/eea/stringinterp/locales/fr/LC_MESSAGES/eea.mo +0 -0
- eea_stringinterp-1.3/eea/stringinterp/locales/fr/LC_MESSAGES/plone.mo +0 -0
- eea_stringinterp-1.3/eea/stringinterp/locales/hr/LC_MESSAGES/eea.mo +0 -0
- eea_stringinterp-1.3/eea/stringinterp/locales/hr/LC_MESSAGES/plone.mo +0 -0
- eea_stringinterp-1.3/eea/stringinterp/locales/hu/LC_MESSAGES/eea.mo +0 -0
- eea_stringinterp-1.3/eea/stringinterp/locales/hu/LC_MESSAGES/plone.mo +0 -0
- eea_stringinterp-1.3/eea/stringinterp/locales/is/LC_MESSAGES/eea.mo +0 -0
- eea_stringinterp-1.3/eea/stringinterp/locales/is/LC_MESSAGES/plone.mo +0 -0
- eea_stringinterp-1.3/eea/stringinterp/locales/it/LC_MESSAGES/eea.mo +0 -0
- eea_stringinterp-1.3/eea/stringinterp/locales/it/LC_MESSAGES/plone.mo +0 -0
- eea_stringinterp-1.3/eea/stringinterp/locales/kl/LC_MESSAGES/eea.mo +0 -0
- eea_stringinterp-1.3/eea/stringinterp/locales/kl/LC_MESSAGES/plone.mo +0 -0
- eea_stringinterp-1.3/eea/stringinterp/locales/lt/LC_MESSAGES/eea.mo +0 -0
- eea_stringinterp-1.3/eea/stringinterp/locales/lt/LC_MESSAGES/plone.mo +0 -0
- eea_stringinterp-1.3/eea/stringinterp/locales/lv/LC_MESSAGES/eea.mo +0 -0
- eea_stringinterp-1.3/eea/stringinterp/locales/lv/LC_MESSAGES/plone.mo +0 -0
- eea_stringinterp-1.3/eea/stringinterp/locales/mt/LC_MESSAGES/eea.mo +0 -0
- eea_stringinterp-1.3/eea/stringinterp/locales/mt/LC_MESSAGES/plone.mo +0 -0
- eea_stringinterp-1.3/eea/stringinterp/locales/nl/LC_MESSAGES/eea.mo +0 -0
- eea_stringinterp-1.3/eea/stringinterp/locales/nl/LC_MESSAGES/plone.mo +0 -0
- eea_stringinterp-1.3/eea/stringinterp/locales/no/LC_MESSAGES/eea.mo +0 -0
- eea_stringinterp-1.3/eea/stringinterp/locales/no/LC_MESSAGES/plone.mo +0 -0
- eea_stringinterp-1.3/eea/stringinterp/locales/pl/LC_MESSAGES/eea.mo +0 -0
- eea_stringinterp-1.3/eea/stringinterp/locales/pl/LC_MESSAGES/plone.mo +0 -0
- eea_stringinterp-1.3/eea/stringinterp/locales/pt/LC_MESSAGES/eea.mo +0 -0
- eea_stringinterp-1.3/eea/stringinterp/locales/pt/LC_MESSAGES/plone.mo +0 -0
- eea_stringinterp-1.3/eea/stringinterp/locales/pt_BR/LC_MESSAGES/eea.mo +0 -0
- eea_stringinterp-1.3/eea/stringinterp/locales/pt_BR/LC_MESSAGES/plone.mo +0 -0
- eea_stringinterp-1.3/eea/stringinterp/locales/ro/LC_MESSAGES/eea.mo +0 -0
- eea_stringinterp-1.3/eea/stringinterp/locales/ro/LC_MESSAGES/plone.mo +0 -0
- eea_stringinterp-1.3/eea/stringinterp/locales/ru/LC_MESSAGES/eea.mo +0 -0
- eea_stringinterp-1.3/eea/stringinterp/locales/ru/LC_MESSAGES/plone.mo +0 -0
- eea_stringinterp-1.3/eea/stringinterp/locales/sk/LC_MESSAGES/eea.mo +0 -0
- eea_stringinterp-1.3/eea/stringinterp/locales/sk/LC_MESSAGES/plone.mo +0 -0
- eea_stringinterp-1.3/eea/stringinterp/locales/sl/LC_MESSAGES/eea.mo +0 -0
- eea_stringinterp-1.3/eea/stringinterp/locales/sl/LC_MESSAGES/plone.mo +0 -0
- eea_stringinterp-1.3/eea/stringinterp/locales/sv/LC_MESSAGES/eea.mo +0 -0
- eea_stringinterp-1.3/eea/stringinterp/locales/sv/LC_MESSAGES/plone.mo +0 -0
- eea_stringinterp-1.3/eea/stringinterp/locales/tr/LC_MESSAGES/eea.mo +0 -0
- eea_stringinterp-1.3/eea/stringinterp/locales/tr/LC_MESSAGES/plone.mo +0 -0
- eea_stringinterp-1.3/eea/stringinterp/locales/zh_TW/LC_MESSAGES/eea.mo +0 -0
- eea_stringinterp-1.3/eea/stringinterp/locales/zh_TW/LC_MESSAGES/plone.mo +0 -0
- eea_stringinterp-1.3/eea/stringinterp/tests/test_adapters.py +166 -0
- eea_stringinterp-1.3/eea/stringinterp/version.txt +1 -0
- {eea_stringinterp-1.2 → eea_stringinterp-1.3/eea.stringinterp.egg-info}/PKG-INFO +56 -1
- {eea_stringinterp-1.2 → eea_stringinterp-1.3}/eea.stringinterp.egg-info/SOURCES.txt +63 -2
- eea_stringinterp-1.2/eea/stringinterp/tests/base.py +0 -51
- eea_stringinterp-1.2/eea/stringinterp/tests/test_doctests.py +0 -49
- eea_stringinterp-1.2/eea/stringinterp/version.txt +0 -1
- {eea_stringinterp-1.2 → eea_stringinterp-1.3}/CONTRIBUTING.md +0 -0
- {eea_stringinterp-1.2 → eea_stringinterp-1.3}/MANIFEST.in +0 -0
- {eea_stringinterp-1.2 → eea_stringinterp-1.3}/docs/LICENSE.GPL +0 -0
- {eea_stringinterp-1.2 → eea_stringinterp-1.3}/docs/LICENSE.txt +0 -0
- {eea_stringinterp-1.2 → eea_stringinterp-1.3}/eea/__init__.py +0 -0
- {eea_stringinterp-1.2 → eea_stringinterp-1.3}/eea/stringinterp/README.txt +0 -0
- {eea_stringinterp-1.2 → eea_stringinterp-1.3}/eea/stringinterp/__init__.py +0 -0
- {eea_stringinterp-1.2 → eea_stringinterp-1.3}/eea/stringinterp/adapters/__init__.py +0 -0
- {eea_stringinterp-1.2 → eea_stringinterp-1.3}/eea/stringinterp/adapters/configure.zcml +0 -0
- {eea_stringinterp-1.2 → eea_stringinterp-1.3}/eea/stringinterp/adapters/dollarReplace.py +0 -0
- {eea_stringinterp-1.2 → eea_stringinterp-1.3}/eea/stringinterp/browser/__init__.py +0 -0
- {eea_stringinterp-1.2 → eea_stringinterp-1.3}/eea/stringinterp/browser/configure.zcml +0 -0
- {eea_stringinterp-1.2 → eea_stringinterp-1.3}/eea/stringinterp/configure.zcml +0 -0
- {eea_stringinterp-1.2 → eea_stringinterp-1.3}/eea/stringinterp/interfaces.py +0 -0
- {eea_stringinterp-1.2 → eea_stringinterp-1.3}/eea/stringinterp/locales/__init__.py +0 -0
- {eea_stringinterp-1.2 → eea_stringinterp-1.3}/eea/stringinterp/locales/bg/LC_MESSAGES/eea.po +0 -0
- {eea_stringinterp-1.2 → eea_stringinterp-1.3}/eea/stringinterp/locales/bg/LC_MESSAGES/plone.po +0 -0
- {eea_stringinterp-1.2 → eea_stringinterp-1.3}/eea/stringinterp/locales/cs/LC_MESSAGES/eea.po +0 -0
- {eea_stringinterp-1.2 → eea_stringinterp-1.3}/eea/stringinterp/locales/cs/LC_MESSAGES/plone.po +0 -0
- {eea_stringinterp-1.2 → eea_stringinterp-1.3}/eea/stringinterp/locales/da/LC_MESSAGES/eea.po +0 -0
- {eea_stringinterp-1.2 → eea_stringinterp-1.3}/eea/stringinterp/locales/da/LC_MESSAGES/plone.po +0 -0
- {eea_stringinterp-1.2 → eea_stringinterp-1.3}/eea/stringinterp/locales/de/LC_MESSAGES/eea.po +0 -0
- {eea_stringinterp-1.2 → eea_stringinterp-1.3}/eea/stringinterp/locales/de/LC_MESSAGES/plone.po +0 -0
- {eea_stringinterp-1.2 → eea_stringinterp-1.3}/eea/stringinterp/locales/eea.pot +0 -0
- {eea_stringinterp-1.2 → eea_stringinterp-1.3}/eea/stringinterp/locales/el/LC_MESSAGES/eea.po +0 -0
- {eea_stringinterp-1.2 → eea_stringinterp-1.3}/eea/stringinterp/locales/el/LC_MESSAGES/plone.po +0 -0
- {eea_stringinterp-1.2 → eea_stringinterp-1.3}/eea/stringinterp/locales/en/LC_MESSAGES/eea.po +0 -0
- {eea_stringinterp-1.2 → eea_stringinterp-1.3}/eea/stringinterp/locales/en/LC_MESSAGES/plone.po +0 -0
- {eea_stringinterp-1.2 → eea_stringinterp-1.3}/eea/stringinterp/locales/es/LC_MESSAGES/eea.po +0 -0
- {eea_stringinterp-1.2 → eea_stringinterp-1.3}/eea/stringinterp/locales/es/LC_MESSAGES/plone.po +0 -0
- {eea_stringinterp-1.2 → eea_stringinterp-1.3}/eea/stringinterp/locales/et/LC_MESSAGES/eea.po +0 -0
- {eea_stringinterp-1.2 → eea_stringinterp-1.3}/eea/stringinterp/locales/et/LC_MESSAGES/plone.po +0 -0
- {eea_stringinterp-1.2 → eea_stringinterp-1.3}/eea/stringinterp/locales/eu/LC_MESSAGES/eea.po +0 -0
- {eea_stringinterp-1.2 → eea_stringinterp-1.3}/eea/stringinterp/locales/eu/LC_MESSAGES/plone.po +0 -0
- {eea_stringinterp-1.2 → eea_stringinterp-1.3}/eea/stringinterp/locales/fi/LC_MESSAGES/eea.po +0 -0
- {eea_stringinterp-1.2 → eea_stringinterp-1.3}/eea/stringinterp/locales/fi/LC_MESSAGES/plone.po +0 -0
- {eea_stringinterp-1.2 → eea_stringinterp-1.3}/eea/stringinterp/locales/fr/LC_MESSAGES/eea.po +0 -0
- {eea_stringinterp-1.2 → eea_stringinterp-1.3}/eea/stringinterp/locales/fr/LC_MESSAGES/plone.po +0 -0
- {eea_stringinterp-1.2 → eea_stringinterp-1.3}/eea/stringinterp/locales/hr/LC_MESSAGES/eea.po +0 -0
- {eea_stringinterp-1.2 → eea_stringinterp-1.3}/eea/stringinterp/locales/hr/LC_MESSAGES/plone.po +0 -0
- {eea_stringinterp-1.2 → eea_stringinterp-1.3}/eea/stringinterp/locales/hu/LC_MESSAGES/eea.po +0 -0
- {eea_stringinterp-1.2 → eea_stringinterp-1.3}/eea/stringinterp/locales/hu/LC_MESSAGES/plone.po +0 -0
- {eea_stringinterp-1.2 → eea_stringinterp-1.3}/eea/stringinterp/locales/is/LC_MESSAGES/eea.po +0 -0
- {eea_stringinterp-1.2 → eea_stringinterp-1.3}/eea/stringinterp/locales/is/LC_MESSAGES/plone.po +0 -0
- {eea_stringinterp-1.2 → eea_stringinterp-1.3}/eea/stringinterp/locales/it/LC_MESSAGES/eea.po +0 -0
- {eea_stringinterp-1.2 → eea_stringinterp-1.3}/eea/stringinterp/locales/it/LC_MESSAGES/plone.po +0 -0
- {eea_stringinterp-1.2 → eea_stringinterp-1.3}/eea/stringinterp/locales/kl/LC_MESSAGES/eea.po +0 -0
- {eea_stringinterp-1.2 → eea_stringinterp-1.3}/eea/stringinterp/locales/kl/LC_MESSAGES/plone.po +0 -0
- {eea_stringinterp-1.2 → eea_stringinterp-1.3}/eea/stringinterp/locales/lt/LC_MESSAGES/eea.po +0 -0
- {eea_stringinterp-1.2 → eea_stringinterp-1.3}/eea/stringinterp/locales/lt/LC_MESSAGES/plone.po +0 -0
- {eea_stringinterp-1.2 → eea_stringinterp-1.3}/eea/stringinterp/locales/lv/LC_MESSAGES/eea.po +0 -0
- {eea_stringinterp-1.2 → eea_stringinterp-1.3}/eea/stringinterp/locales/lv/LC_MESSAGES/plone.po +0 -0
- {eea_stringinterp-1.2 → eea_stringinterp-1.3}/eea/stringinterp/locales/mt/LC_MESSAGES/eea.po +0 -0
- {eea_stringinterp-1.2 → eea_stringinterp-1.3}/eea/stringinterp/locales/mt/LC_MESSAGES/plone.po +0 -0
- {eea_stringinterp-1.2 → eea_stringinterp-1.3}/eea/stringinterp/locales/nl/LC_MESSAGES/eea.po +0 -0
- {eea_stringinterp-1.2 → eea_stringinterp-1.3}/eea/stringinterp/locales/nl/LC_MESSAGES/plone.po +0 -0
- {eea_stringinterp-1.2 → eea_stringinterp-1.3}/eea/stringinterp/locales/no/LC_MESSAGES/eea.po +0 -0
- {eea_stringinterp-1.2 → eea_stringinterp-1.3}/eea/stringinterp/locales/no/LC_MESSAGES/plone.po +0 -0
- {eea_stringinterp-1.2 → eea_stringinterp-1.3}/eea/stringinterp/locales/pl/LC_MESSAGES/eea.po +0 -0
- {eea_stringinterp-1.2 → eea_stringinterp-1.3}/eea/stringinterp/locales/pl/LC_MESSAGES/plone.po +0 -0
- {eea_stringinterp-1.2 → eea_stringinterp-1.3}/eea/stringinterp/locales/plone-manual.pot +0 -0
- {eea_stringinterp-1.2 → eea_stringinterp-1.3}/eea/stringinterp/locales/pt/LC_MESSAGES/eea.po +0 -0
- {eea_stringinterp-1.2 → eea_stringinterp-1.3}/eea/stringinterp/locales/pt/LC_MESSAGES/plone.po +0 -0
- {eea_stringinterp-1.2 → eea_stringinterp-1.3}/eea/stringinterp/locales/pt_BR/LC_MESSAGES/eea.po +0 -0
- {eea_stringinterp-1.2 → eea_stringinterp-1.3}/eea/stringinterp/locales/pt_BR/LC_MESSAGES/plone.po +0 -0
- {eea_stringinterp-1.2 → eea_stringinterp-1.3}/eea/stringinterp/locales/ro/LC_MESSAGES/eea.po +0 -0
- {eea_stringinterp-1.2 → eea_stringinterp-1.3}/eea/stringinterp/locales/ro/LC_MESSAGES/plone.po +0 -0
- {eea_stringinterp-1.2 → eea_stringinterp-1.3}/eea/stringinterp/locales/ru/LC_MESSAGES/eea.po +0 -0
- {eea_stringinterp-1.2 → eea_stringinterp-1.3}/eea/stringinterp/locales/ru/LC_MESSAGES/plone.po +0 -0
- {eea_stringinterp-1.2 → eea_stringinterp-1.3}/eea/stringinterp/locales/sk/LC_MESSAGES/eea.po +0 -0
- {eea_stringinterp-1.2 → eea_stringinterp-1.3}/eea/stringinterp/locales/sk/LC_MESSAGES/plone.po +0 -0
- {eea_stringinterp-1.2 → eea_stringinterp-1.3}/eea/stringinterp/locales/sl/LC_MESSAGES/eea.po +0 -0
- {eea_stringinterp-1.2 → eea_stringinterp-1.3}/eea/stringinterp/locales/sl/LC_MESSAGES/plone.po +0 -0
- {eea_stringinterp-1.2 → eea_stringinterp-1.3}/eea/stringinterp/locales/sv/LC_MESSAGES/eea.po +0 -0
- {eea_stringinterp-1.2 → eea_stringinterp-1.3}/eea/stringinterp/locales/sv/LC_MESSAGES/plone.po +0 -0
- {eea_stringinterp-1.2 → eea_stringinterp-1.3}/eea/stringinterp/locales/tr/LC_MESSAGES/eea.po +0 -0
- {eea_stringinterp-1.2 → eea_stringinterp-1.3}/eea/stringinterp/locales/tr/LC_MESSAGES/plone.po +0 -0
- {eea_stringinterp-1.2 → eea_stringinterp-1.3}/eea/stringinterp/locales/update.sh +0 -0
- {eea_stringinterp-1.2 → eea_stringinterp-1.3}/eea/stringinterp/locales/zh_TW/LC_MESSAGES/eea.po +0 -0
- {eea_stringinterp-1.2 → eea_stringinterp-1.3}/eea/stringinterp/locales/zh_TW/LC_MESSAGES/plone.po +0 -0
- {eea_stringinterp-1.2 → eea_stringinterp-1.3}/eea/stringinterp/profiles/default/browserlayer.xml +0 -0
- {eea_stringinterp-1.2 → eea_stringinterp-1.3}/eea/stringinterp/profiles/default/metadata.xml +0 -0
- {eea_stringinterp-1.2 → eea_stringinterp-1.3}/eea/stringinterp/profiles/uninstall/browserlayer.xml +0 -0
- {eea_stringinterp-1.2 → eea_stringinterp-1.3}/eea/stringinterp/profiles.zcml +0 -0
- {eea_stringinterp-1.2 → eea_stringinterp-1.3}/eea/stringinterp/setuphandlers.py +0 -0
- {eea_stringinterp-1.2 → eea_stringinterp-1.3}/eea/stringinterp/tests/__init__.py +0 -0
- {eea_stringinterp-1.2 → eea_stringinterp-1.3}/eea/stringinterp/upgrades/__init__.py +0 -0
- {eea_stringinterp-1.2 → eea_stringinterp-1.3}/eea/stringinterp/upgrades/configure.zcml +0 -0
- {eea_stringinterp-1.2 → eea_stringinterp-1.3}/eea.stringinterp.egg-info/dependency_links.txt +0 -0
- {eea_stringinterp-1.2 → eea_stringinterp-1.3}/eea.stringinterp.egg-info/entry_points.txt +0 -0
- {eea_stringinterp-1.2 → eea_stringinterp-1.3}/eea.stringinterp.egg-info/namespace_packages.txt +0 -0
- {eea_stringinterp-1.2 → eea_stringinterp-1.3}/eea.stringinterp.egg-info/not-zip-safe +0 -0
- {eea_stringinterp-1.2 → eea_stringinterp-1.3}/eea.stringinterp.egg-info/requires.txt +0 -0
- {eea_stringinterp-1.2 → eea_stringinterp-1.3}/eea.stringinterp.egg-info/top_level.txt +0 -0
- {eea_stringinterp-1.2 → eea_stringinterp-1.3}/setup.cfg +0 -0
- {eea_stringinterp-1.2 → eea_stringinterp-1.3}/setup.py +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: eea.stringinterp
|
|
3
|
-
Version: 1.
|
|
3
|
+
Version: 1.3
|
|
4
4
|
Summary: Extended plone.stringinterp functionality
|
|
5
5
|
Home-page: https://github.com/eea/eea.stringinterp
|
|
6
6
|
Author: European Environment Agency: IDM2 A-Team
|
|
@@ -166,9 +166,64 @@ EEA_ - European Environment Agency (EU)
|
|
|
166
166
|
.. _EEA: https://www.eea.europa.eu/
|
|
167
167
|
.. _`EEA Web Systems Training`: http://www.youtube.com/user/eeacms/videos?view=1
|
|
168
168
|
|
|
169
|
+
Secret Scanning
|
|
170
|
+
===============
|
|
171
|
+
|
|
172
|
+
This repository uses the Betterleaks GitHub Action to scan the current
|
|
173
|
+
repository content on every push and pull request. The scan uses the rules in
|
|
174
|
+
``.gitleaks.toml`` and uploads a ``betterleaks-report`` artifact when a finding
|
|
175
|
+
is detected.
|
|
176
|
+
|
|
177
|
+
If the optional SMTP secrets are configured, failed scans also send an email to
|
|
178
|
+
the last commit committer. The workflow expects these repository or
|
|
179
|
+
organization secrets:
|
|
180
|
+
|
|
181
|
+
- ``SMTP_URL``
|
|
182
|
+
- ``SMTP_PORT`` (optional, defaults to ``25``)
|
|
183
|
+
- ``SMTP_EMAIL``
|
|
184
|
+
- ``SMTP_PASSWORD`` (optional if the SMTP server does not require authentication)
|
|
185
|
+
|
|
186
|
+
Port ``465`` is sent with direct TLS; other ports use the default SMTP
|
|
187
|
+
handshake. The email includes a short finding summary from the redacted
|
|
188
|
+
Betterleaks report, including the redacted matched line from each finding.
|
|
189
|
+
|
|
190
|
+
There are three common outcomes:
|
|
191
|
+
|
|
192
|
+
1. Everything is OK. The ``Betterleaks / Scan for secrets`` check is green and
|
|
193
|
+
no action is needed. Regular references to runtime values are OK, for example::
|
|
194
|
+
|
|
195
|
+
token_from_cookie = request.cookies.get("auth_token")
|
|
196
|
+
|
|
197
|
+
2. A real secret was found. The check is red and the workflow log asks you to
|
|
198
|
+
download the ``betterleaks-report`` artifact. Open the artifact from the
|
|
199
|
+
GitHub Actions run and check the reported file, line and rule. Remove the
|
|
200
|
+
committed value, move it to the proper secret store, and rotate it if it was
|
|
201
|
+
exposed. A report entry looks like this::
|
|
202
|
+
|
|
203
|
+
{
|
|
204
|
+
"RuleID": "secret-literal-assignment",
|
|
205
|
+
"File": "src/config.py",
|
|
206
|
+
"StartLine": 12,
|
|
207
|
+
"Secret": "[REDACTED]"
|
|
208
|
+
}
|
|
209
|
+
|
|
210
|
+
3. The finding is a false positive. Keep the value only if it is clearly not
|
|
211
|
+
sensitive, such as a test fixture, placeholder, or public example. Add
|
|
212
|
+
``betterleaks:allow`` on the same line and include a short explanation in the
|
|
213
|
+
pull request::
|
|
214
|
+
|
|
215
|
+
test_password = "admin" #betterleaks:allow
|
|
216
|
+
|
|
217
|
+
Do not add ``betterleaks:allow`` to real credentials.
|
|
218
|
+
|
|
169
219
|
Changelog
|
|
170
220
|
=========
|
|
171
221
|
|
|
222
|
+
1.3 - (2026-07-13)
|
|
223
|
+
---------------------------
|
|
224
|
+
* Change: fix: SonarQube report - refs #305404
|
|
225
|
+
[avoinea]
|
|
226
|
+
|
|
172
227
|
1.2 - (2025-11-18)
|
|
173
228
|
---------------------------
|
|
174
229
|
* Change: Replace Python linting to ruff
|
|
@@ -128,3 +128,53 @@ EEA_ - European Environment Agency (EU)
|
|
|
128
128
|
|
|
129
129
|
.. _EEA: https://www.eea.europa.eu/
|
|
130
130
|
.. _`EEA Web Systems Training`: http://www.youtube.com/user/eeacms/videos?view=1
|
|
131
|
+
|
|
132
|
+
Secret Scanning
|
|
133
|
+
===============
|
|
134
|
+
|
|
135
|
+
This repository uses the Betterleaks GitHub Action to scan the current
|
|
136
|
+
repository content on every push and pull request. The scan uses the rules in
|
|
137
|
+
``.gitleaks.toml`` and uploads a ``betterleaks-report`` artifact when a finding
|
|
138
|
+
is detected.
|
|
139
|
+
|
|
140
|
+
If the optional SMTP secrets are configured, failed scans also send an email to
|
|
141
|
+
the last commit committer. The workflow expects these repository or
|
|
142
|
+
organization secrets:
|
|
143
|
+
|
|
144
|
+
- ``SMTP_URL``
|
|
145
|
+
- ``SMTP_PORT`` (optional, defaults to ``25``)
|
|
146
|
+
- ``SMTP_EMAIL``
|
|
147
|
+
- ``SMTP_PASSWORD`` (optional if the SMTP server does not require authentication)
|
|
148
|
+
|
|
149
|
+
Port ``465`` is sent with direct TLS; other ports use the default SMTP
|
|
150
|
+
handshake. The email includes a short finding summary from the redacted
|
|
151
|
+
Betterleaks report, including the redacted matched line from each finding.
|
|
152
|
+
|
|
153
|
+
There are three common outcomes:
|
|
154
|
+
|
|
155
|
+
1. Everything is OK. The ``Betterleaks / Scan for secrets`` check is green and
|
|
156
|
+
no action is needed. Regular references to runtime values are OK, for example::
|
|
157
|
+
|
|
158
|
+
token_from_cookie = request.cookies.get("auth_token")
|
|
159
|
+
|
|
160
|
+
2. A real secret was found. The check is red and the workflow log asks you to
|
|
161
|
+
download the ``betterleaks-report`` artifact. Open the artifact from the
|
|
162
|
+
GitHub Actions run and check the reported file, line and rule. Remove the
|
|
163
|
+
committed value, move it to the proper secret store, and rotate it if it was
|
|
164
|
+
exposed. A report entry looks like this::
|
|
165
|
+
|
|
166
|
+
{
|
|
167
|
+
"RuleID": "secret-literal-assignment",
|
|
168
|
+
"File": "src/config.py",
|
|
169
|
+
"StartLine": 12,
|
|
170
|
+
"Secret": "[REDACTED]"
|
|
171
|
+
}
|
|
172
|
+
|
|
173
|
+
3. The finding is a false positive. Keep the value only if it is clearly not
|
|
174
|
+
sensitive, such as a test fixture, placeholder, or public example. Add
|
|
175
|
+
``betterleaks:allow`` on the same line and include a short explanation in the
|
|
176
|
+
pull request::
|
|
177
|
+
|
|
178
|
+
test_password = "admin" #betterleaks:allow
|
|
179
|
+
|
|
180
|
+
Do not add ``betterleaks:allow`` to real credentials.
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
@@ -0,0 +1,166 @@
|
|
|
1
|
+
"""Tests for LazyDict adapter."""
|
|
2
|
+
|
|
3
|
+
import unittest
|
|
4
|
+
|
|
5
|
+
from zope.interface import Interface, implementer
|
|
6
|
+
from zope.component import getGlobalSiteManager
|
|
7
|
+
|
|
8
|
+
from plone.stringinterp.interfaces import IStringSubstitution
|
|
9
|
+
from eea.stringinterp.adapters.dollarReplace import LazyDict
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
@implementer(IStringSubstitution)
|
|
13
|
+
class SuccessAdapter:
|
|
14
|
+
"""Test adapter that returns a value."""
|
|
15
|
+
|
|
16
|
+
def __init__(self, context):
|
|
17
|
+
self.context = context
|
|
18
|
+
|
|
19
|
+
def __call__(self, key=None):
|
|
20
|
+
return f"value_for_{key}"
|
|
21
|
+
|
|
22
|
+
|
|
23
|
+
@implementer(IStringSubstitution)
|
|
24
|
+
class UnauthorizedAdapter:
|
|
25
|
+
"""Test adapter that raises Unauthorized."""
|
|
26
|
+
|
|
27
|
+
def __init__(self, context):
|
|
28
|
+
self.context = context
|
|
29
|
+
|
|
30
|
+
def __call__(self, key=None):
|
|
31
|
+
from AccessControl import Unauthorized
|
|
32
|
+
|
|
33
|
+
raise Unauthorized("Not allowed")
|
|
34
|
+
|
|
35
|
+
|
|
36
|
+
class DummyContext:
|
|
37
|
+
"""Simple context for testing."""
|
|
38
|
+
|
|
39
|
+
pass
|
|
40
|
+
|
|
41
|
+
|
|
42
|
+
class TestLazyDictKeyFiltering(unittest.TestCase):
|
|
43
|
+
"""Test LazyDict key filtering — no adapters needed."""
|
|
44
|
+
|
|
45
|
+
def setUp(self):
|
|
46
|
+
self.ldict = LazyDict(DummyContext())
|
|
47
|
+
|
|
48
|
+
def test_underscore_key_raises_keyerror(self):
|
|
49
|
+
"""Test that keys starting with _ raise KeyError."""
|
|
50
|
+
with self.assertRaises(KeyError):
|
|
51
|
+
self.ldict["_test"]
|
|
52
|
+
|
|
53
|
+
def test_dot_key_raises_keyerror(self):
|
|
54
|
+
"""Test that keys starting with . raise KeyError."""
|
|
55
|
+
with self.assertRaises(KeyError):
|
|
56
|
+
self.ldict[".test"]
|
|
57
|
+
|
|
58
|
+
def test_empty_key_raises_keyerror(self):
|
|
59
|
+
"""Test that empty key raises KeyError."""
|
|
60
|
+
with self.assertRaises(KeyError):
|
|
61
|
+
self.ldict[""]
|
|
62
|
+
|
|
63
|
+
def test_none_key_raises_keyerror(self):
|
|
64
|
+
"""Test that None key raises KeyError."""
|
|
65
|
+
with self.assertRaises(KeyError):
|
|
66
|
+
self.ldict[None]
|
|
67
|
+
|
|
68
|
+
|
|
69
|
+
class TestLazyDictNoAdapter(unittest.TestCase):
|
|
70
|
+
"""Test LazyDict with no adapters registered — both paths fail."""
|
|
71
|
+
|
|
72
|
+
def setUp(self):
|
|
73
|
+
self.ldict = LazyDict(DummyContext())
|
|
74
|
+
|
|
75
|
+
def test_unregistered_key_raises_keyerror(self):
|
|
76
|
+
"""Test that unregistered key raises KeyError."""
|
|
77
|
+
with self.assertRaises(KeyError):
|
|
78
|
+
self.ldict["nonexistent_key"]
|
|
79
|
+
|
|
80
|
+
|
|
81
|
+
class TestLazyDictNamedAdapter(unittest.TestCase):
|
|
82
|
+
"""Test LazyDict with named adapter — parent path succeeds."""
|
|
83
|
+
|
|
84
|
+
def setUp(self):
|
|
85
|
+
self.sm = getGlobalSiteManager()
|
|
86
|
+
self.sm.registerAdapter(
|
|
87
|
+
SuccessAdapter, (Interface,), IStringSubstitution, name="named_key"
|
|
88
|
+
)
|
|
89
|
+
self.ldict = LazyDict(DummyContext())
|
|
90
|
+
|
|
91
|
+
def tearDown(self):
|
|
92
|
+
self.sm.unregisterAdapter(
|
|
93
|
+
SuccessAdapter, (Interface,), IStringSubstitution, name="named_key"
|
|
94
|
+
)
|
|
95
|
+
|
|
96
|
+
def test_named_adapter_returns_value(self):
|
|
97
|
+
"""Test that named adapter returns value via parent path."""
|
|
98
|
+
result = self.ldict["named_key"]
|
|
99
|
+
self.assertEqual(result, "value_for_None")
|
|
100
|
+
|
|
101
|
+
|
|
102
|
+
class TestLazyDictUnnamedAdapter(unittest.TestCase):
|
|
103
|
+
"""Test LazyDict with unnamed adapter — fallback path succeeds."""
|
|
104
|
+
|
|
105
|
+
def setUp(self):
|
|
106
|
+
self.sm = getGlobalSiteManager()
|
|
107
|
+
self.sm.registerAdapter(SuccessAdapter, (Interface,), IStringSubstitution)
|
|
108
|
+
self.ldict = LazyDict(DummyContext())
|
|
109
|
+
|
|
110
|
+
def tearDown(self):
|
|
111
|
+
self.sm.unregisterAdapter(SuccessAdapter, (Interface,), IStringSubstitution)
|
|
112
|
+
|
|
113
|
+
def test_unnamed_adapter_fallback(self):
|
|
114
|
+
"""Test that fallback path with unnamed adapter returns value."""
|
|
115
|
+
result = self.ldict["fallback_key"]
|
|
116
|
+
self.assertEqual(result, "value_for_fallback_key")
|
|
117
|
+
|
|
118
|
+
|
|
119
|
+
class TestLazyDictUnauthorized(unittest.TestCase):
|
|
120
|
+
"""Test LazyDict with Unauthorized adapter."""
|
|
121
|
+
|
|
122
|
+
def setUp(self):
|
|
123
|
+
self.sm = getGlobalSiteManager()
|
|
124
|
+
self.sm.registerAdapter(UnauthorizedAdapter, (Interface,), IStringSubstitution)
|
|
125
|
+
self.ldict = LazyDict(DummyContext())
|
|
126
|
+
|
|
127
|
+
def tearDown(self):
|
|
128
|
+
self.sm.unregisterAdapter(
|
|
129
|
+
UnauthorizedAdapter, (Interface,), IStringSubstitution
|
|
130
|
+
)
|
|
131
|
+
|
|
132
|
+
def test_unauthorized_returns_unauthorized_string(self):
|
|
133
|
+
"""Test that Unauthorized exception returns 'Unauthorized' string."""
|
|
134
|
+
result = self.ldict["protected_key"]
|
|
135
|
+
self.assertEqual(result, "Unauthorized")
|
|
136
|
+
|
|
137
|
+
|
|
138
|
+
class TestLazyDictCaching(unittest.TestCase):
|
|
139
|
+
"""Test LazyDict caching behavior."""
|
|
140
|
+
|
|
141
|
+
def setUp(self):
|
|
142
|
+
self.sm = getGlobalSiteManager()
|
|
143
|
+
self.sm.registerAdapter(SuccessAdapter, (Interface,), IStringSubstitution)
|
|
144
|
+
self.ldict = LazyDict(DummyContext())
|
|
145
|
+
|
|
146
|
+
def tearDown(self):
|
|
147
|
+
self.sm.unregisterAdapter(SuccessAdapter, (Interface,), IStringSubstitution)
|
|
148
|
+
|
|
149
|
+
def test_result_is_cached(self):
|
|
150
|
+
"""Test that result is cached in _cache."""
|
|
151
|
+
result1 = self.ldict["cache_key"]
|
|
152
|
+
self.assertEqual(result1, "value_for_cache_key")
|
|
153
|
+
self.assertIn("cache_key", self.ldict._cache)
|
|
154
|
+
|
|
155
|
+
def test_cached_value_used_on_second_call(self):
|
|
156
|
+
"""Test that second call uses cached value."""
|
|
157
|
+
result1 = self.ldict["cache_key"]
|
|
158
|
+
# Manually change cache to verify it's used
|
|
159
|
+
self.ldict._cache["cache_key"] = "cached_value"
|
|
160
|
+
result2 = self.ldict["cache_key"]
|
|
161
|
+
self.assertEqual(result2, "cached_value")
|
|
162
|
+
|
|
163
|
+
|
|
164
|
+
def test_suite():
|
|
165
|
+
"""Test suite."""
|
|
166
|
+
return unittest.defaultTestLoader.loadTestsFromName(__name__)
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
1.3
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: eea.stringinterp
|
|
3
|
-
Version: 1.
|
|
3
|
+
Version: 1.3
|
|
4
4
|
Summary: Extended plone.stringinterp functionality
|
|
5
5
|
Home-page: https://github.com/eea/eea.stringinterp
|
|
6
6
|
Author: European Environment Agency: IDM2 A-Team
|
|
@@ -166,9 +166,64 @@ EEA_ - European Environment Agency (EU)
|
|
|
166
166
|
.. _EEA: https://www.eea.europa.eu/
|
|
167
167
|
.. _`EEA Web Systems Training`: http://www.youtube.com/user/eeacms/videos?view=1
|
|
168
168
|
|
|
169
|
+
Secret Scanning
|
|
170
|
+
===============
|
|
171
|
+
|
|
172
|
+
This repository uses the Betterleaks GitHub Action to scan the current
|
|
173
|
+
repository content on every push and pull request. The scan uses the rules in
|
|
174
|
+
``.gitleaks.toml`` and uploads a ``betterleaks-report`` artifact when a finding
|
|
175
|
+
is detected.
|
|
176
|
+
|
|
177
|
+
If the optional SMTP secrets are configured, failed scans also send an email to
|
|
178
|
+
the last commit committer. The workflow expects these repository or
|
|
179
|
+
organization secrets:
|
|
180
|
+
|
|
181
|
+
- ``SMTP_URL``
|
|
182
|
+
- ``SMTP_PORT`` (optional, defaults to ``25``)
|
|
183
|
+
- ``SMTP_EMAIL``
|
|
184
|
+
- ``SMTP_PASSWORD`` (optional if the SMTP server does not require authentication)
|
|
185
|
+
|
|
186
|
+
Port ``465`` is sent with direct TLS; other ports use the default SMTP
|
|
187
|
+
handshake. The email includes a short finding summary from the redacted
|
|
188
|
+
Betterleaks report, including the redacted matched line from each finding.
|
|
189
|
+
|
|
190
|
+
There are three common outcomes:
|
|
191
|
+
|
|
192
|
+
1. Everything is OK. The ``Betterleaks / Scan for secrets`` check is green and
|
|
193
|
+
no action is needed. Regular references to runtime values are OK, for example::
|
|
194
|
+
|
|
195
|
+
token_from_cookie = request.cookies.get("auth_token")
|
|
196
|
+
|
|
197
|
+
2. A real secret was found. The check is red and the workflow log asks you to
|
|
198
|
+
download the ``betterleaks-report`` artifact. Open the artifact from the
|
|
199
|
+
GitHub Actions run and check the reported file, line and rule. Remove the
|
|
200
|
+
committed value, move it to the proper secret store, and rotate it if it was
|
|
201
|
+
exposed. A report entry looks like this::
|
|
202
|
+
|
|
203
|
+
{
|
|
204
|
+
"RuleID": "secret-literal-assignment",
|
|
205
|
+
"File": "src/config.py",
|
|
206
|
+
"StartLine": 12,
|
|
207
|
+
"Secret": "[REDACTED]"
|
|
208
|
+
}
|
|
209
|
+
|
|
210
|
+
3. The finding is a false positive. Keep the value only if it is clearly not
|
|
211
|
+
sensitive, such as a test fixture, placeholder, or public example. Add
|
|
212
|
+
``betterleaks:allow`` on the same line and include a short explanation in the
|
|
213
|
+
pull request::
|
|
214
|
+
|
|
215
|
+
test_password = "admin" #betterleaks:allow
|
|
216
|
+
|
|
217
|
+
Do not add ``betterleaks:allow`` to real credentials.
|
|
218
|
+
|
|
169
219
|
Changelog
|
|
170
220
|
=========
|
|
171
221
|
|
|
222
|
+
1.3 - (2026-07-13)
|
|
223
|
+
---------------------------
|
|
224
|
+
* Change: fix: SonarQube report - refs #305404
|
|
225
|
+
[avoinea]
|
|
226
|
+
|
|
172
227
|
1.2 - (2025-11-18)
|
|
173
228
|
---------------------------
|
|
174
229
|
* Change: Replace Python linting to ruff
|