Security News
PyPI’s New Archival Feature Closes a Major Security Gap
PyPI now allows maintainers to archive projects, improving security and helping users make informed decisions about their dependencies.
A very simple Jekyll plugin to read environment variables and .env
files into themes.
Add this line to your site's Gemfile:
gem 'jekyll-dotenv'
And then execute:
$ bundle
Or install it yourself as:
$ gem install jekyll-dotenv
Add the plugin to your _config.yml
:
plugins:
- jekyll-dotenv
Export a variable:
export SOME_KEY=ITS_VALUE
Or put it on an .env
file:
SOME_KEY=ITS_VALUE
Use in a theme:
{{ site.env.SOME_KEY }}
You can create hashes from environment variables like this:
WEBMASTER_VERIFICATIONS.GOOGLE="something"
WEBMASTER_VERIFICATIONS.FACEBOOK="something"
They will be available in Liquid as
site.env.WEBMASTER_VERIFICATIONS.GOOGLE
and as
site.webmaster_verifications.google
, which makes jekyll-seo-tag get
its configuration from the environment.
Be aware that your environment variables may contain personal
information like username, PATH, etc. so, for instance, site.env
may
not be fit to be dumped whole as JSON.
Bug reports and pull requests are welcome on 0xacab.org at https://0xacab.org/sutty/jekyll/jekyll-dotenv. This project is intended to be a safe, welcoming space for collaboration, and contributors are expected to adhere to the Sutty code of conduct.
If you like our plugins, please consider donating!
The gem is available as free software under the terms of the GPL3 License.
Everyone interacting in the jekyll-dotenv project’s codebases, issue trackers, chat rooms and mailing lists is expected to follow the code of conduct.
FAQs
Unknown package
We found that jekyll-dotenv demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
PyPI now allows maintainers to archive projects, improving security and helping users make informed decisions about their dependencies.
Research
Security News
Malicious npm package postcss-optimizer delivers BeaverTail malware, targeting developer systems; similarities to past campaigns suggest a North Korean connection.
Security News
CISA's KEV data is now on GitHub, offering easier access, API integration, commit history tracking, and automated updates for security teams and researchers.