🪢 Open source agent evals & observability: Trace, evaluate, and improve LLM applications with one open platform.
TypeScript analyticsautogenevaluationlangchainlarge-language-modelsllama-indexllmllm-evaluationllm-observabilityllmopsmonitoringobservabilityopen-sourceopenaiplaygroundprompt-engineeringprompt-managementself-hostedycombinator
chore: improve snyk setup (#11957)
Max Deichmann28426c9b3c32
diff --git a/.github/workflows/snyk-web.yml b/.github/workflows/snyk-web.ymlnew file mode 100644index 0000000000..5c09300f98--- /dev/null+++ b/.github/workflows/snyk-web.yml@@ -0,0 +1,27 @@+name: Snyk Container - Web+on:+ push:+ branches: ["production", "test-snyk-again"]++jobs:+ snyk:+ runs-on: ubuntu-latest+ steps:+ - uses: actions/checkout@v2+ - name: Run Snyk to check Docker image for vulnerabilities+ # Snyk can be used to break the build when it detects vulnerabilities.+ # In this case we want to upload the issues to GitHub Code Scanning+ continue-on-error: true+ uses: snyk/actions/docker@master+ env:+ # In order to use the Snyk Action you will need to have a Snyk API token.+ # See https://docs.snyk.io/integrations/ci-cd-integrations/github-actions-integration#getting-your-snyk-token+ # or you can sign up for free at https://snyk.io/login+ SNYK_TOKEN: ${{ secrets.SNYK_TOKEN }}+ with:+ image: langfuse/langfuse+ args: --sarif-file-output=snyk.sarif+ - name: Upload result to GitHub Code Scanning+ uses: github/codeql-action/upload-sarif@v4+ with:+ sarif_file: snyk.sarifdiff --git a/.github/workflows/snyk-worker.yml b/.github/workflows/snyk-worker.ymlnew file mode 100644index 0000000000..b9c1f56b5f--- /dev/null+++ b/.github/workflows/snyk-worker.yml@@ -0,0 +1,27 @@+name: Snyk Container - Worker+on:+ push:+ branches: ["production", "test-snyk-again"]++jobs:+ snyk:+ runs-on: ubuntu-latest+ steps:+ - uses: actions/checkout@v2+ - name: Run Snyk to check Docker image for vulnerabilities+ # Snyk can be used to break the build when it detects vulnerabilities.+ # In this case we want to upload the issues to GitHub Code Scanning+ continue-on-error: true+ uses: snyk/actions/docker@master+ env:+ # In order to use the Snyk Action you will need to have a Snyk API token.+ # See https://docs.snyk.io/integrations/ci-cd-integrations/github-actions-integration#getting-your-snyk-token+ # or you can sign up for free at https://snyk.io/login+ SNYK_TOKEN: ${{ secrets.SNYK_TOKEN }}+ with:+ image: langfuse/langfuse-worker+ args: --sarif-file-output=snyk.sarif+ - name: Upload result to GitHub Code Scanning+ uses: github/codeql-action/upload-sarif@v4+ with:+ sarif_file: snyk.sarifdiff --git a/.github/workflows/snyk.yml b/.github/workflows/snyk.ymldeleted file mode 100644index ad33652f4e..0000000000--- a/.github/workflows/snyk.yml+++ /dev/null@@ -1,28 +0,0 @@-name: Snyk Container-on:- push:- branches: ["main"]--jobs:- snyk:- runs-on: ubuntu-latest- steps:- - uses: actions/checkout@v3-- - name: Scan web image with Snyk- uses: snyk/actions/docker@master- continue-on-error: true # let upload step always run- env:- SNYK_TOKEN: ${{ secrets.SNYK_TOKEN }}- with:- image: langfuse/langfuse # pulled from Docker Hub- args: --severity-threshold=high # (any extra CLI flags, but NO --file)-- - name: Scan worker image with Snyk- uses: snyk/actions/docker@master- continue-on-error: true # let upload step always run- env:- SNYK_TOKEN: ${{ secrets.SNYK_TOKEN }}- with:- image: langfuse/langfuse-worker # pulled from Docker Hub- args: --severity-threshold=high # (any extra CLI flags, but NO --file)