]> git.ipfire.org Git - thirdparty/tvheadend.git/commitdiff
Fix coverity builds
authorFlole <Flole998@users.noreply.github.com>
Mon, 9 Jun 2025 15:19:47 +0000 (15:19 +0000)
committerFlole <Flole998@users.noreply.github.com>
Mon, 9 Jun 2025 15:20:24 +0000 (15:20 +0000)
.github/workflows/coverity.yml

index c48d7ec61380f05534c5f910b367034e8cc1a1d4..8353331a1bc36f2d1c2cb876bf0a72ede733b9ed 100644 (file)
@@ -9,8 +9,20 @@ on:
   workflow_dispatch:
 
 jobs:
+  check-secret:
+      runs-on: ubuntu-latest
+      outputs:
+        token: ${{ steps.token.outputs.defined }}
+      steps:
+          - id: token
+            env:
+                TOKEN: ${{ secrets.COVERITY_SCAN_TOKEN }}
+            if: "${{ env.TOKEN != '' }}"
+            run: echo "::set-output name=defined::true"
+
   coverity:
-    if: ${{ secrets.COVERITY_SCAN_TOKEN != '' }}
+    needs: [check-secret]
+    if: needs.check-secret.outputs.token == 'true'
     runs-on: ubuntu-latest
     environment: Coverity
     steps: