Security News
38% of CISOs Fear They’re Not Moving Fast Enough on AI
CISOs are racing to adopt AI for cybersecurity, but hurdles in budgets and governance may leave some falling behind in the fight against cyber threats.
@beesley/pr-metadata
Advanced tools
A cli tool for reading information about pull requests within github actions.
A tool for reading information about pull requests within github actions. Works as a cli or as a node module. Expects a GITHUB_TOKEN env var to be set.
npx @beesley/pr-metadata --help
# Options:
# --help Show help [boolean]
# --version Show version number [boolean]
# --dirNames Whether to return directory names instead of file names [boolean] [default: false]
# --json Whether to return result as a json string [boolean] [default: true]
# --filter An array of globs to act as an include filter for where we look for changes [array]
npx @beesley/pr-metadata
# [".commitlintrc.json","src/__mocks__/mock-context.json","src/__mocks__/push-event.json","src/get-changed-files.test.ts","src/get-changed-files.ts","src/index.ts"]
npx @beesley/pr-metadata --json false
# [
# '.commitlintrc.json',
# 'src/__mocks__/mock-context.json',
# 'src/__mocks__/push-event.json',
# 'src/get-changed-files.test.ts',
# 'src/get-changed-files.ts',
# 'src/index.ts'
# ]
npx @beesley/pr-metadata --dirNames
# ["bin","src/__mocks__","src"]
npx @beesley/pr-metadata --dirNames --filter '**' --filter '!**/__mocks__/**'
# ["bin","src"]
npx @beesley/pr-metadata --filter 'src/**'
# ["src/__mocks__/mock-context.json","src/__mocks__/push-event.json","src/get-changed-files.test.ts","src/get-changed-files.ts","src/index.ts"]
src/get-changed-files.ts:13-17
Uses github actions metadata to get a list of changes files or directories
json
boolean Whether or not to return jsondirNames
boolean Whether or not to return only directory namesfilter
Array<string>? Filter globs to filter results usingReturns any {(Promise<string | string[]>)} The changed files or directories
FAQs
A cli tool for reading information about pull requests within github actions.
The npm package @beesley/pr-metadata receives a total of 0 weekly downloads. As such, @beesley/pr-metadata popularity was classified as not popular.
We found that @beesley/pr-metadata 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
CISOs are racing to adopt AI for cybersecurity, but hurdles in budgets and governance may leave some falling behind in the fight against cyber threats.
Research
Security News
Socket researchers uncovered a backdoored typosquat of BoltDB in the Go ecosystem, exploiting Go Module Proxy caching to persist undetected for years.
Security News
Company News
Socket is joining TC54 to help develop standards for software supply chain security, contributing to the evolution of SBOMs, CycloneDX, and Package URL specifications.