Skip to content

Commit

Permalink
adding ci pipeline
Browse files Browse the repository at this point in the history
  • Loading branch information
jordaniac89 committed Jul 27, 2023
1 parent abb4d48 commit 2274e42
Show file tree
Hide file tree
Showing 6 changed files with 36,829 additions and 23,741 deletions.
2 changes: 1 addition & 1 deletion .dccache

Large diffs are not rendered by default.

19 changes: 14 additions & 5 deletions .github/workflows/snyk_ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,19 +26,28 @@ jobs:
cache: 'npm'

- run: npm install

- run: npm i -g snyk

- run: npm i -g snyk # note you can also use the snyk setup github action here, I'm just installing via NPM
- run: npm i -g snyk-to-html

- run: snyk auth ${{ secrets.SNYK_TOKEN }}

- name: run test
run: |
snyk test --json | snyk-to-html -o build/result.html
snyk monitor --target-name="my_target_from_GH"
- name: run test
run: |
snyk test --json --target-name="my_os_target_from_GH" | snyk-to-html -o build/os_result.html
snyk code test --report --target-name="my_code_target_from_GH" | snyk-to-html -o build/code_result.html
- name: Use the Upload Artifact GitHub Action
uses: actions/upload-artifact@v2
with:
name: results
path: build/os_results.html

- name: Use the Upload Artifact GitHub Action
uses: actions/upload-artifact@v2
with:
name: results
path: build/results.html
path: build/code_results.html
1 change: 1 addition & 0 deletions .gitlab-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ snyk_scan:
- npm install snyk-to-html -g
- snyk auth $SNYK_TOKEN
- snyk code test --json-file-output=results.json
- snyk test

artifacts:
when: always
Expand Down
Loading

0 comments on commit 2274e42

Please sign in to comment.