Skip to content

Commit

Permalink
Setup snyk workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
n-insaidoo committed Nov 15, 2023
1 parent 680dfb8 commit 8f61be8
Showing 1 changed file with 19 additions and 20 deletions.
39 changes: 19 additions & 20 deletions .github/workflows/main.yaml
Original file line number Diff line number Diff line change
@@ -1,24 +1,23 @@
name: Meterian Scanner workflow
name: Snyk Security

on: push

permissions:
contents: read

jobs:
meterian_scan_autofix:
name: Meterian scan
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Meterian Scanner
uses: MeterianHQ/meterian-github-action@correct-branch-adjustments
env:
METERIAN_API_TOKEN: ${{ secrets.METERIAN_API_TOKEN }}
# GITHUB_TOKEN: ${{ github.token }}
GITHUB_TOKEN: ${{ secrets.GH_PAT }}
ALWAYS_OPEN_PRS: true
with:
# autofix_security: safe
# autofix_with_pr: true
# autofix_with_report: true
cli_args: --scopes=prod --report-console:stability

security:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@master
- name: Run Snyk to check for vulnerabilities
uses: snyk/actions/maven-3-jdk-11@master
continue-on-error: true # To make sure that SARIF upload gets called
env:
SNYK_TOKEN: ${{ secrets.SNYK_TOKEN }}
with:
args: --sarif-file-output=snyk.sarif
- name: Upload result to GitHub Code Scanning
uses: github/codeql-action/upload-sarif@v2
with:
sarif_file: snyk.sarif

0 comments on commit 8f61be8

Please sign in to comment.