Skip to content

Commit bd7148e

Browse files
committed
fix: remediate sonarqube warnings
1 parent aadecd3 commit bd7148e

File tree

4 files changed

+41
-2
lines changed

4 files changed

+41
-2
lines changed

.github/workflows/stage-2-analyse.yaml

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,12 @@ on:
3434
description: Version of the software
3535
required: true
3636
type: string
37+
38+
secrets:
39+
sonar_token:
40+
description: 'The SONAR_TOKEN for code scanning.'
41+
required: true
42+
3743
jobs:
3844
perform-static-analysis:
3945
name: Perform static analysis
@@ -56,4 +62,4 @@ jobs:
5662
sonar_project_key: ${{ vars.SONAR_PROJECT_KEY }}
5763
sonar_token: ${{ secrets.SONAR_TOKEN }}
5864
coverage_path: "coverage"
59-
unit_test_dir: ${{ inputs.unit_test_dir }} # Added unit_test_dir parameter
65+
unit_test_dir: ${{ inputs.unit_test_dir }} # Added unit_test_dir parameter

.github/workflows/stage-2-test.yaml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,11 @@ on:
5252
required: true
5353
type: string
5454

55+
secrets:
56+
github_token:
57+
description: 'The GITHUB_TOKEN for API interactions.'
58+
required: true
59+
5560
jobs:
5661
check-consolidated-tests:
5762
name: Check for consolidated test project

.github/workflows/stage-3-build-images.yaml

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,23 @@ on:
3030
type: boolean
3131
default: false
3232

33+
secrets:
34+
github_token:
35+
description: 'The GITHUB_TOKEN for API interactions.'
36+
required: true
37+
client-id:
38+
description: 'The Azure Client ID.'
39+
required: true
40+
tenant-id:
41+
description: 'The Azure Tenant ID.'
42+
required: true
43+
subscription-id:
44+
description: 'The Azure Subscription ID.'
45+
required: true
46+
acr-name:
47+
description: 'The name of the Azure Container Registry.'
48+
required: true
49+
3350
jobs:
3451
get-functions:
3552
runs-on: ubuntu-latest

.github/workflows/stage-4-deploy.yaml

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ on:
1515
description: Pull request number when used in a pull request
1616
required: false
1717
type: string
18-
18+
1919
workflow_dispatch:
2020
inputs:
2121
environments:
@@ -31,6 +31,17 @@ on:
3131
required: false
3232
type: string
3333

34+
secrets:
35+
client-id:
36+
description: 'The Azure Client ID.'
37+
required: true
38+
tenant-id:
39+
description: 'The Azure Tenant ID.'
40+
required: true
41+
subscription-id:
42+
description: 'The Azure Subscription ID.'
43+
required: true
44+
3445
jobs:
3546
deploy:
3647
name: Deploy

0 commit comments

Comments
 (0)