
Research
wget to Wipeout: Malicious Go Modules Fetch Destructive Payload
Socket's research uncovers three dangerous Go modules that contain obfuscated disk-wiping malware, threatening complete data loss.
@google-automations/git-file-utils
Advanced tools
Supply Chain Security
Vulnerability
Quality
Maintenance
License
This is a small library for handling git files. Currently it only provides
RepositoryFileCache
which is a read-through cache for a single branch. Because
this library uses GIt Data API, it can fetch files up to 100 MB of size.
npm i @google-automations/git-file-utils
import {Octokit} from '@octokit/rest';
import {
FileNotFoundError,
RepositoryFileCache
} from '@google-automations/git-file-utils';
const octokit = new Octokit();
const cache = new RepositoryFileCache(
octokit,
{
owner: "googleapis",
repo: "repo-automation-bots",
});
try {
const contents = await cache.getFileContents("README.md", "main");
console.log(`content: ${contents.parsedContent}`);
} catch (e) {
if (e instanceof FileNotFoundError) {
console.log(`file not found`);
} else {
// rethrow
throw e;
}
}
FAQs
Utilities for github file operation
The npm package @google-automations/git-file-utils receives a total of 54,147 weekly downloads. As such, @google-automations/git-file-utils popularity was classified as popular.
We found that @google-automations/git-file-utils demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 0 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.
Research
Socket's research uncovers three dangerous Go modules that contain obfuscated disk-wiping malware, threatening complete data loss.
Research
Socket uncovers malicious packages on PyPI using Gmail's SMTP protocol for command and control (C2) to exfiltrate data and execute commands.
Product
We redesigned Socket's first logged-in page to display rich and insightful visualizations about your repositories protected against supply chain threats.