Skip to content

Commit b26aaac

Browse files
authored
Merge pull request #140 from akanchhaS/circleci-editor/master
Circleci editor/master
2 parents 3cbcab5 + 235a451 commit b26aaac

File tree

2 files changed

+25
-16
lines changed

2 files changed

+25
-16
lines changed

.circleci/config.yml

Lines changed: 23 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
version: 2.1
22
orbs:
3-
snyk: snyk/snyk@0.0.8
3+
snyk: snyk/snyk@1.1.1
44

55
workflows: #creating a workflow to define the context - collection of different jobs
66
test-env-vars: #setting up a job to define the context which this project will use
@@ -15,23 +15,15 @@ jobs: # a collection of steps
1515
build-test-monitor-app: # runs not using Workflows must have a `build` job as entry point #directory where steps will run
1616
working_directory: ~/goof
1717
docker:
18-
- image: circleci/node:4.8.2
18+
- image: 'cimg/node:lts'
1919
steps:
20-
- checkout
21-
- run:
22-
name: echo "install and build npm project"
23-
command: 'sudo npm install -q'
24-
- run:
25-
name: echo "build project"
26-
command: 'npm run build'
27-
#- run:
28-
# name: echo "build Docker image"
29-
# command: 'docker build -t my-new-container-goof-image .'
30-
- snyk/scan:
20+
- checkout
21+
- run: npm ci
22+
- snyk/scan:
3123
fail-on-issues: false
3224
monitor-on-build: true
3325
token-variable: SNYKTOKEN
34-
organization: panda-not-omar
26+
organization: ninja-snyker
3527
project: circleCi-goof
3628
severity-threshold: high
3729

@@ -52,11 +44,27 @@ jobs: # a collection of steps
5244
fail-on-issues: false
5345
monitor-on-build: true
5446
token-variable: SNYKTOKEN
55-
organization: panda-not-omar
47+
organization: ninja-snyker
5648
project: circleCi-goof-container
5749
severity-threshold: low
5850
target-file: Dockerfile
5951
docker-image-name: my-new-container-circleci-goof-image
52+
docker:
53+
- image: 'snyk/snyk-cli:npm'
54+
parameters:
55+
args:
56+
default: ''
57+
description: >
58+
See the Snyk CLI help page for information on additional arguments:
59+
https://support.snyk.io/hc/en-us/articles/360003812578-CLI-reference
60+
type: string
61+
resource_class: medium
62+
steps:
63+
- checkout
64+
- scan:
65+
additional-arguments: ' '
66+
command: iac test
67+
monitor-on-build: false
6068

6169
#workflows:
6270
#node-tests:

Dockerfile

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
# FROM node:6-stretch
2-
FROM node:14.1.0
2+
FROM node:current-alpine3.14
33

4+
RUN mkdir /usr/src
45
RUN mkdir /usr/src/goof
56
RUN mkdir /tmp/extracted_files
67
COPY . /usr/src/goof

0 commit comments

Comments
 (0)