
Security News
Opengrep Adds Apex Support and New Rule Controls in Latest Updates
The latest Opengrep releases add Apex scanning, precision rule tuning, and performance gains for open source static code analysis.
@google-automations/git-file-utils
Advanced tools
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 123,046 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 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
The latest Opengrep releases add Apex scanning, precision rule tuning, and performance gains for open source static code analysis.
Security News
npm now supports Trusted Publishing with OIDC, enabling secure package publishing directly from CI/CD workflows without relying on long-lived tokens.
Research
/Security News
A RubyGems malware campaign used 60 malicious packages posing as automation tools to steal credentials from social media and marketing tool users.