Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added pnpm support #176

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions scanners/boostsecurityio/pnpm-audit/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
# boostsecurityio/npm-audit

## Environment variables

### `NPM_AUDIT_ARGS`

Additionnal arguments given to `npm audit`.
33 changes: 33 additions & 0 deletions scanners/boostsecurityio/pnpm-audit/module.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
api_version: 1.0


id: boostsecurityio/pnpm-audit
name: pnpm-audit
namespace: boostsecurityio/pnpm-audit
scan_types:
- sca

config:
support_diff_scan: true
include_files:
- pnpm-lock.yaml

steps:
- scan:
command:
docker:
image: node:18.12-alpine3.16@sha256:1f09c210a17508d34277971b19541a47a26dc5a641dedc03bd28cff095052996
command: |
sh -c 'npm install -g pnpm@latest-10 && pnpm audit --json $PNPM_AUDIT_ARGS || true'
workdir: /src
environment:
HOME: /tmp
PNPM_AUDIT_ARGS: ${PNPM_AUDIT_ARGS:-}
format: sarif
post-processor:
docker:
image: public.ecr.aws/boostsecurityio/boost-converter-sca:6e4b6c1@sha256:417c90b672b016b01dac84a4cf24d3a042503b6ddcfd1ba22ebd24d229f78883
command: |
process --scanner pnpm-audit
environment:
PYTHONIOENCODING: utf-8
2 changes: 2 additions & 0 deletions scanners/boostsecurityio/pnpm-audit/rules.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
import:
- boostsecurityio/sca-cve