Skip to content

Commit

Permalink
fix: Adding Snyk workflow to the project (#58) (#50)
Browse files Browse the repository at this point in the history
  • Loading branch information
NicolasOmar authored Mar 16, 2023
2 parents 9f9cf1a + f0e68be commit 0329160
Show file tree
Hide file tree
Showing 3 changed files with 37 additions and 1 deletion.
7 changes: 7 additions & 0 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,14 +9,21 @@ updates:
directory: "/"
schedule:
interval: "weekly"
day: "saturday"
time: "09:00"
timezone: "America/Argentina/Cordoba"
assignees:
- "nicolasomar"
target-branch: "main"
versioning-strategy: increase-if-necessary

- package-ecosystem: "github-actions"
directory: "/"
schedule:
interval: "weekly"
day: "saturday"
time: "09:00"
timezone: "America/Argentina/Cordoba"
assignees:
- "nicolasomar"
target-branch: "main"
2 changes: 1 addition & 1 deletion .github/workflows/check_quality.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ on:
pull_request:
branches: ["main"]

jobs:
jobs:
codecovAndSonarcloud:
runs-on: ubuntu-latest
steps:
Expand Down
29 changes: 29 additions & 0 deletions .github/workflows/check_security.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
name: Check code security

on:
push:
branches: ["main"]
pull_request:
branches: ["main"]

jobs:
security:
runs-on: ubuntu-latest
steps:
- name: 1/3 | Checkout repo
uses: actions/checkout@v3
with:
# Disabling shallow clone is recommended for improving relevancy of reporting
fetch-depth: 0
- name: 2/3 | Run Snyk Scanner
uses: snyk/actions/node@master
continue-on-error: true
env:
SNYK_TOKEN: ${{ secrets.SNYK_TOKEN }}
with:
command: test
args: --sarif-file-output=snyk.sarif --all-projects --dev --detection-depth=4 --show-vulnerable-paths=all
- name: 3/3 | Upload Snyk result to GitHub Code Scanning
uses: github/codeql-action/upload-sarif@v2
with:
sarif_file: snyk.sarif

0 comments on commit 0329160

Please sign in to comment.