Security News
Research
Data Theft Repackaged: A Case Study in Malicious Wrapper Packages on npm
The Socket Research Team breaks down a malicious wrapper package that uses obfuscation to harvest credentials and exfiltrate sensitive data.
This Jekyll plugin provides a liquid tag that needs a Google Poly URL as input and will generates a (responsive) html snippet to embed the video into your site.
Add tests to this gem.
You will need to have a Google Poly API key created and have activated the Google Poly API on your google account.
Visit the https://developers.google.com/poly/develop/api and activate your Google Poly API (Not the Oauth section !) following the button Get API Key.
You will need to add this API key to your _config.yml file:
google_poly:
API_key: YOUR_API_KEY
Add this line to your Gemfile:
group :jekyll_plugins do
gem "jekyll-polylist"
end
And then execute:
$ bundle
Alternatively install the gem yourself as:
$ gem install jekyll-polylist
and put this in your _config.yml
plugins: [jekyll-polylist]
# This will require each of these gems automatically.
{% google_poly_list %}
{% google_poly_list "keyword" %}
By default the plugin will output the following code
<style>
.google-poly-embed-container {
position: relative;
padding-bottom: 56.25%;
height: 0;
overflow: hidden;
max-width: 100%;
}
.google-poly-embed-container iframe,
.google-poly-embed-container object,
.google-poly-embed-container embed {
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
}
</style>
<ul>
<li>
<div class='google-poly-embed-container'>
<iframe width="100%" height="480px" src="https://poly.google.com/view/7aCY_MMZWm8/embed" frameborder="0" style="border:none;" allowvr="yes" allow="vr; xr; accelerometer; magnetometer; gyroscope; autoplay;" allowfullscreen mozallowfullscreen="true" webkitallowfullscreen="true" onmousewheel="" ></iframe>
</div>
</li>
<li>
....
</ul>
You can specify your own snippet by creating a partial _includes/poly.html
. Inside that partial the Google Poly ID is available as {{ poly_id }}
.
FAQs
Unknown package
We found that jekyll-polylist demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 2 open source maintainers 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
Research
The Socket Research Team breaks down a malicious wrapper package that uses obfuscation to harvest credentials and exfiltrate sensitive data.
Research
Security News
Attackers used a malicious npm package typosquatting a popular ESLint plugin to steal sensitive data, execute commands, and exploit developer systems.
Security News
The Ultralytics' PyPI Package was compromised four times in one weekend through GitHub Actions cache poisoning and failure to rotate previously compromised API tokens.