🪢 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: fix snyk again (#8050)
Max Deichmanne51e2df2dc48
diff --git a/.github/workflows/snyk.yml b/.github/workflows/snyk.ymlindex cdbd8c81bf..ad33652f4e 100644--- a/.github/workflows/snyk.yml+++ b/.github/workflows/snyk.yml@@ -1,60 +1,28 @@name: Snyk Containeron:push:- branches:- - "main"- # Snyk cannot upload results in merge group. Hence, we only run when pushing https://github.com/github/codeql-action/issues/1572--concurrency:- group: ${{ github.workflow }}-${{ github.ref }}- cancel-in-progress: false+ branches: ["main"]jobs:snyk:runs-on: ubuntu-lateststeps:- - uses: actions/checkout@v2+ - uses: actions/checkout@v3- - name: Run Snyk to check Docker image for vulnerabilities (langfuse-web)- continue-on-error: true+ - name: Scan web image with Snykuses: snyk/actions/docker@master+ continue-on-error: true # let upload step always runenv:SNYK_TOKEN: ${{ secrets.SNYK_TOKEN }}with:- image: langfuse/langfuse- args: --file=web/Dockerfile --sarif-file-output=snyk-web.sarif-- # Workaround for https://github.com/github/codeql-action/issues/2187- - name: Replace security-severity undefined for license-related findings (web)- run: 'sed -i ''s/"security-severity": "undefined"/"security-severity": "0"/g'' snyk-web.sarif'-- - name: Replace security-severity null for license-related findings (web)- run: 'sed -i ''s/"security-severity": "null"/"security-severity": "0"/g'' snyk-web.sarif'-- - name: Upload result to GitHub Code Scanning (web)- uses: github/codeql-action/upload-sarif@v3- with:- sarif_file: snyk-web.sarif- category: web+ image: langfuse/langfuse # pulled from Docker Hub+ args: --severity-threshold=high # (any extra CLI flags, but NO --file)- - name: Run Snyk to check Docker image for vulnerabilities (langfuse-worker)- continue-on-error: true+ - name: Scan worker image with Snykuses: snyk/actions/docker@master+ continue-on-error: true # let upload step always runenv:SNYK_TOKEN: ${{ secrets.SNYK_TOKEN }}with:- image: langfuse/langfuse-worker- args: --file=worker/Dockerfile --sarif-file-output=snyk-worker.sarif-- # Workaround for https://github.com/github/codeql-action/issues/2187- - name: Replace security-severity undefined for license-related findings (worker)- run: 'sed -i ''s/"security-severity": "undefined"/"security-severity": "0"/g'' snyk-worker.sarif'-- - name: Replace security-severity null for license-related findings (worker)- run: 'sed -i ''s/"security-severity": "null"/"security-severity": "0"/g'' snyk-worker.sarif'-- - name: Upload result to GitHub Code Scanning (worker)- uses: github/codeql-action/upload-sarif@v3- with:- sarif_file: snyk-worker.sarif- category: worker+ image: langfuse/langfuse-worker # pulled from Docker Hub+ args: --severity-threshold=high # (any extra CLI flags, but NO --file)diff --git a/.github/workflows/trivy.yml b/.github/workflows/trivy.ymlnew file mode 100644index 0000000000..dd7fb1aecb--- /dev/null+++ b/.github/workflows/trivy.yml@@ -0,0 +1,43 @@+name: Trivy Container Security+on:+ push:+ branches: ["main"]++jobs:+ trivy-web:+ runs-on: ubuntu-latest+ steps:+ - uses: actions/checkout@master++ - name: Run Trivy vulnerability scanner (web)+ uses: aquasecurity/trivy-action@master+ with:+ image-ref: "langfuse/langfuse"+ format: "sarif"+ output: "trivy-web.sarif"++ - name: Upload Trivy scan results to GitHub Security tab (web)+ if: always() && hashFiles('trivy-web.sarif') != ''+ uses: github/codeql-action/upload-sarif@v3+ with:+ sarif_file: "trivy-web.sarif"+ category: trivy-web++ trivy-worker:+ runs-on: ubuntu-latest+ steps:+ - uses: actions/checkout@master++ - name: Run Trivy vulnerability scanner (worker)+ uses: aquasecurity/trivy-action@master+ with:+ image-ref: "langfuse/langfuse-worker"+ format: "sarif"+ output: "trivy-worker.sarif"++ - name: Upload Trivy scan results to GitHub Security tab (worker)+ if: always() && hashFiles('trivy-worker.sarif') != ''+ uses: github/codeql-action/upload-sarif@v3+ with:+ sarif_file: "trivy-worker.sarif"+ category: trivy-worker