
Research
Two Malicious Rust Crates Impersonate Popular Logger to Steal Wallet Keys
Socket uncovers malicious Rust crates impersonating fast_log to steal Solana and Ethereum wallet keys from source code.
@pvm/cowners
Advanced tools
A library for working with CODEOWNERS file.
const { readCodeOwners } = require('@pvm/cowners')
async function main() {
const codeOwners = await readCodeOwners()
}
OwnersEntry
Structure which holds each valid line with pattern and owners in CODEWNERS file. Here is typescript definition:
interface OwnersGroup {
attrs: Record<string, string | number | boolean | null>,
pattern: string,
owners: string[],
match(path: string): boolean,
}
Where attrs
are being parsed from shebang comments.
Example shebang comment with all available cases:
#! int=4 str='cat\'s ball' new=false old=true greet="hello world!" vs=null
* @owners
getGroups(): OwnersGroup[]
Returns all OwnersGroups which has been parsed.
affectedGroups(paths: string[]): IterableIterator<OwnersGroup>
Returns OwnersGroups which related to given paths.
getOwners(paths: string[]): string[]
Get all owners for given paths.
getMajority(paths: string[], opts: GetMajorityOpts = {}): string[]
Get majority of owners required for review merge request.
For each mask majority is Math.ceil(owners_for_mask / 2)
.
GetMajorityOpts.initial
List if initial reviewers.
GetMajorityOpts.exclude
List of reviewers which should be excluded from result.
groupOwnersByMask(paths: string[]): Record<string, string[]>
Get all owners for given paths and group by filename patterns.
v0.56.18
2023.06.02
List of updated packages:
FAQs
A library for working with CODEOWNERS file
The npm package @pvm/cowners receives a total of 256 weekly downloads. As such, @pvm/cowners popularity was classified as not popular.
We found that @pvm/cowners demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 3 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 uncovers malicious Rust crates impersonating fast_log to steal Solana and Ethereum wallet keys from source code.
Research
A malicious package uses a QR code as steganography in an innovative technique.
Research
/Security News
Socket identified 80 fake candidates targeting engineering roles, including suspected North Korean operators, exposing the new reality of hiring as a security function.