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 00ec2c6 commit 425bc9f
Showing 1 changed file with 13 additions and 5 deletions.
18 changes: 13 additions & 5 deletions .github/workflows/snyk_ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,23 +30,31 @@ jobs:

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

- name: run test
- name: run monitor
run: |
snyk monitor --target-name="my_target_from_GH"
- name: run tests
run: |
snyk test --json --target-name="my_os_target_from_GH"
snyk code test --report --target-name="my_code_target_from_GH"
snyk test --target-name="my_os_target_from_GH" --json-output-file=os_results.json
snyk code test --report --target-name="my_code_target_from_GH" --json-output-file=code_results.json
- name: run html
if: always()
run: |
snyk-to-html -i os_results.json -o os_results.html
snyk-to-html -i code_results.json -o code_results.html
- name: Use the Upload Artifact GitHub Action
if: always()
uses: actions/upload-artifact@v2
with:
name: results
path: build/os_results.html
path: os_results.html

- name: Use the Upload Artifact GitHub Action
if: always()
uses: actions/upload-artifact@v2
with:
name: results
path: build/code_results.html
path: code_results.html

0 comments on commit 425bc9f

Please sign in to comment.