Skip to content

🪢 Open source agent evals & observability: Trace, evaluate, and improve LLM applications with one open platform.

chore: fix snyk configuration (#7944)

Max Deichmann42306e5247fa
diff --git a/.github/workflows/snyk.yml b/.github/workflows/snyk.yml
index ff3a75b289..49916d7dca 100644
--- a/.github/workflows/snyk.yml
+++ b/.github/workflows/snyk.yml
@@ -1,24 +1,19 @@
name: Snyk Container
on:
- pull_request:
- branches:
- - "**"
push:
branches:
- - main
- # Snyk cannot upload results in merge group. Hence, we only run on PRs and when pushingon the main branch https://github.com/github/codeql-action/issues/1572
+ - "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: ${{ github.event_name == 'pull_request' }}
+ cancel-in-progress: false
jobs:
snyk:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- - name: Build a Docker image
- run: docker compose -f docker-compose.build.yml up -d
- name: Run Snyk to check Docker image for vulnerabilities (langfuse-web)
continue-on-error: true
@@ -26,15 +21,15 @@ jobs:
env:
SNYK_TOKEN: ${{ secrets.SNYK_TOKEN }}
with:
- image: langfuse-langfuse-web
+ image: langfuse/langfuse
args: --file=web/Dockerfile
# Workaround for https://github.com/github/codeql-action/issues/2187
- name: Replace security-severity undefined for license-related findings
- run: "sed -i 's/\"security-severity\": \"undefined\"/\"security-severity\": \"0\"/g' snyk.sarif"
+ run: 'sed -i ''s/"security-severity": "undefined"/"security-severity": "0"/g'' snyk.sarif'
- name: Replace security-severity null for license-related findings
- run: "sed -i 's/\"security-severity\": \"null\"/\"security-severity\": \"0\"/g' snyk.sarif"
+ run: 'sed -i ''s/"security-severity": "null"/"security-severity": "0"/g'' snyk.sarif'
- name: Upload result to GitHub Code Scanning
uses: github/codeql-action/upload-sarif@v3
@@ -48,15 +43,15 @@ jobs:
env:
SNYK_TOKEN: ${{ secrets.SNYK_TOKEN }}
with:
- image: langfuse-langfuse-worker
+ image: langfuse/langfuse-worker
args: --file=worker/Dockerfile
# Workaround for https://github.com/github/codeql-action/issues/2187
- name: Replace security-severity undefined for license-related findings
- run: "sed -i 's/\"security-severity\": \"undefined\"/\"security-severity\": \"0\"/g' snyk.sarif"
+ run: 'sed -i ''s/"security-severity": "undefined"/"security-severity": "0"/g'' snyk.sarif'
- name: Replace security-severity null for license-related findings
- run: "sed -i 's/\"security-severity\": \"null\"/\"security-severity\": \"0\"/g' snyk.sarif"
+ run: 'sed -i ''s/"security-severity": "null"/"security-severity": "0"/g'' snyk.sarif'
- name: Upload result to GitHub Code Scanning
uses: github/codeql-action/upload-sarif@v3