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

Test pr check flow #110

Open
wants to merge 28 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
28 commits
Select commit Hold shift + click to select a range
52df12f
build/adding concourse pipeline and build files + test file
aarlaud Feb 3, 2018
f04e0bd
build/updating pipeline for separating building from testing phases
aarlaud Feb 3, 2018
0550930
ci/added snyk install and test
aarlaud Feb 3, 2018
44db066
ci/added snyk install and test - fixed some stuff
aarlaud Feb 3, 2018
25b4d90
ci/trying again
aarlaud Feb 3, 2018
ebd1293
chore: add backstage catalog info
aarlaud Oct 13, 2022
806ecc1
Update backstage-catalog-info.yaml
aarlaud Oct 13, 2022
bd473e8
Update backstage-catalog-info.yaml
aarlaud Oct 13, 2022
bdfac5c
Update backstage-catalog-info.yaml
aarlaud Oct 13, 2022
2638614
Update backstage-catalog-info.yaml
aarlaud Oct 13, 2022
c7cc701
Update backstage-catalog-info.yaml
aarlaud Oct 14, 2022
5938815
Update backstage-catalog-info.yaml
aarlaud Oct 14, 2022
edd532e
Update backstage-catalog-info.yaml
aarlaud Oct 14, 2022
3dea31e
Update backstage-catalog-info.yaml
aarlaud Oct 14, 2022
a5d626a
Update backstage-catalog-info.yaml
aarlaud Oct 14, 2022
a5edebd
Update backstage-catalog-info.yaml
aarlaud Jun 23, 2023
9607569
Update backstage-catalog-info.yaml
aarlaud Jun 23, 2023
717b44a
Update backstage-catalog-info.yaml
aarlaud Jun 23, 2023
28f7fb3
Update backstage-catalog-info.yaml
aarlaud Jun 23, 2023
6098636
Update backstage-catalog-info.yaml
aarlaud Jun 26, 2023
7b64842
Update backstage-catalog-info.yaml
aarlaud Jun 26, 2023
1cf2248
Update backstage-catalog-info.yaml
aarlaud Jun 26, 2023
fd3ff69
Update backstage-catalog-info.yaml
aarlaud Jun 26, 2023
69dea44
Update backstage-catalog-info.yaml
aarlaud Jan 31, 2024
ee0f661
Update backstage-catalog-info.yaml
aarlaud Jan 31, 2024
879eca4
Update backstage-catalog-info.yaml
aarlaud Jan 31, 2024
82b06b8
Update backstage-catalog-info.yaml
aarlaud Jan 31, 2024
fcb4ac5
Update README.md
aarlaud Mar 29, 2024
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
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@

A vulnerable Node.js demo application, based on the [Dreamers Lab tutorial](http://dreamerslab.com/blog/en/write-a-todo-list-with-express-and-mongodb/).

adding a dummy line in readme

### Running
```bash
mongod &
Expand Down
13 changes: 13 additions & 0 deletions backstage-catalog-info.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
apiVersion: backstage.io/v1alpha1
kind: Component
metadata:
name: goof
description: Goof
annotations:
#snyk.io/org-ids: f20676f4-3066-40aa-bdf6-ac28ba609ab6,78c91b61-4b8c-4c33-b15c-eeb94258f22b
snyk.io/org-id: f20676f4-3066-40aa-bdf6-ac28ba609ab6
github.com/project-slug: aarlaud-playground/goof
spec:
type: service
lifecycle: production
owner: guest
12 changes: 12 additions & 0 deletions build.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
platform: linux

image_resource:
type: docker-image
source:
repository: node

inputs:
- name: goof

run:
path: ./goof/ci/build.sh
7 changes: 7 additions & 0 deletions ci/build.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
#!/bin/bash

set -e -x

pushd goof
npm install
popd
5 changes: 5 additions & 0 deletions ci/install_snyk.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
#!/bin/bash

set -e -x

npm install -g snyk
23 changes: 23 additions & 0 deletions ci/pipeline.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
resources:
- name: goof
type: git
source:
uri: https://github.com/aarlaud-playground/goof
branch: master

jobs:
- name: Install Dependencies
plan:
- get: goof
trigger: true
- task: build app
file: goof/build.yml
- task: install snyk
file: goof/ci/install_snyk.sh
- name: Snyk Test
plan:
- get: goof
trigger: true
passed: [Install Dependencies]
- task: Run Snyk Test
file: goof/ci/snyk_test.sh
7 changes: 7 additions & 0 deletions ci/snyk_test.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
#!/bin/bash

set -e -x

pushd goof
snyk test
popd