Skip to content

Commit a3134e9

Browse files
committed
Add optional SonarCloud token requirement for workflow call
1 parent 7a13b18 commit a3134e9

1 file changed

Lines changed: 6 additions & 2 deletions

File tree

.github/workflows/fe-code-quality.yml

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,10 @@
11
name: Frontend Code Quality Workflow
22

3-
on: workflow_call
4-
3+
on:
4+
workflow_call:
5+
secrets:
6+
SONAR_CLOUD_TOKEN:
7+
required: false
58
jobs:
69
code-quality:
710
runs-on: ubuntu-latest
@@ -60,6 +63,7 @@ jobs:
6063
name: SonarCloud
6164
needs: code-quality
6265
runs-on: ubuntu-latest
66+
if: ${{ secrets.SONAR_CLOUD_TOKEN != '' }}
6367
steps:
6468
- name: Checkout
6569
uses: actions/checkout@v4

0 commit comments

Comments
 (0)