Skip to content

Commit 09a06f1

Browse files
committed
Fix coverity builds
1 parent 56d23c8 commit 09a06f1

1 file changed

Lines changed: 13 additions & 1 deletion

File tree

.github/workflows/coverity.yml

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,20 @@ on:
99
workflow_dispatch:
1010

1111
jobs:
12+
check-secret:
13+
runs-on: ubuntu-latest
14+
outputs:
15+
token: ${{ steps.token.outputs.defined }}
16+
steps:
17+
- id: token
18+
env:
19+
TOKEN: ${{ secrets.COVERITY_SCAN_TOKEN }}
20+
if: "${{ env.TOKEN != '' }}"
21+
run: echo "::set-output name=defined::true"
22+
1223
coverity:
13-
if: ${{ secrets.COVERITY_SCAN_TOKEN != '' }}
24+
needs: [check-secret]
25+
if: needs.check-secret.outputs.token == 'true'
1426
runs-on: ubuntu-latest
1527
environment: Coverity
1628
steps:

0 commit comments

Comments
 (0)