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

feat: add prodsec/security_scans #282

Merged
merged 1 commit into from
Jun 5, 2024
Merged
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
26 changes: 25 additions & 1 deletion .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ version: 2.1
orbs:
node: circleci/[email protected]
win: circleci/[email protected]
prodsec: snyk/prodsec-orb@1.0
prodsec: snyk/prodsec-orb@1

defaults: &defaults
parameters:
Expand Down Expand Up @@ -185,6 +185,23 @@ commands:
paths:
- ~\AppData\Local\Temp\jdk
jobs:
security-scans:
resource_class: small
<<: *defaults
docker:
- image: cimg/node:<< parameters.node_version >>
steps:
- checkout
- node-install-packages
- run:
name: Generate package-lock.json (Required for snyk OS scanning)
command: npm install --package-lock
- show_node_version
- prodsec/security_scans:
mode: auto
open-source-additional-arguments: --exclude=test
iac-scan: disabled

lint:
<<: *defaults
docker:
Expand Down Expand Up @@ -264,6 +281,13 @@ workflows:
channel: os-team-managed-alerts
<<: *filters_branches_ignore_main

- security-scans:
name: Security Scans
node_version: "20.9"
context:
- open_source-managed
- nodejs-install

- lint:
name: Lint
context: nodejs-install
Expand Down