Skip to content

Commit

Permalink
sarif: testing of workflows
Browse files Browse the repository at this point in the history
  • Loading branch information
ArturSnyk committed Jul 19, 2021
1 parent 64fa1b0 commit a5545dc
Show file tree
Hide file tree
Showing 6 changed files with 4,668 additions and 848 deletions.
18 changes: 0 additions & 18 deletions .github/snyk-test-sarif.yml

This file was deleted.

Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
name: Testing security scan - using sarif
on: [push]
name: "snyk code manual test"
on: [push, pull_request]

jobs:
build:
Expand All @@ -13,3 +13,4 @@ jobs:
uses: github/codeql-action/upload-sarif@v1
with:
sarif_file: sarif.json
# sarif_file: example111.json
17 changes: 17 additions & 0 deletions .github/workflows/snyk-code.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
name: "snyk code test"
on: [push, pull_request]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: snyk/actions/setup@master
- name: Snyk Test
run: snyk code test --org=${{ secrets.SNYK_ORG }} --sarif > snyk-sarif2.json
continue-on-error: true
env:
SNYK_TOKEN: ${{ secrets.SNYK_TOKEN }}
- name: Upload SARIF file
uses: github/codeql-action/upload-sarif@v1
with:
sarif_file: snyk-sarif2.json
11 changes: 5 additions & 6 deletions .github/workflows/snyk-test-sarif.yml
Original file line number Diff line number Diff line change
@@ -1,17 +1,16 @@
name: "Upload package.json SARIF"
# Run workflow each time code is pushed to your repository.
on: push
name: "snyk test"
on: [push, pull_request]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: snyk/actions/setup@master
- name: Snyk Test
- name: Snyk Test
run: snyk test --sarif-file-output=snyk-sarif1.json
continue-on-error: true
continue-on-error: true
env:
SNYK_TOKEN: ${{ secrets.SNYK_TOKEN }}
SNYK_TOKEN: ${{ secrets.SNYK_TOKEN }}
- name: Upload SARIF file
uses: github/codeql-action/upload-sarif@v1
with:
Expand Down
Loading

0 comments on commit a5545dc

Please sign in to comment.