30
30
- name : Checkout GitHub Action Repos
31
31
uses : daspn/private-actions-checkout@v2
32
32
with :
33
- actions_list :
' [ "covergo/get-version@v1.7 ", "covergo/[email protected] ", "covergo/[email protected] ", "covergo/[email protected] ", "covergo/[email protected] ", "covergo/[email protected] " ]'
33
+ actions_list :
' [ "covergo/get-version@v1.8 ", "covergo/[email protected] ", "covergo/[email protected] ", "covergo/[email protected] ", "covergo/[email protected] ", "covergo/[email protected] " ]'
34
34
checkout_base_path : ./.github/actions
35
35
app_id : ${{ secrets.PRIVATE_ACTION_APP_ID }}
36
36
app_private_key : ${{ secrets.PRIVATE_ACTION_APP_PRIVATE_KEY }}
54
54
if [[ ${{ steps.version.outputs.app_version }} =~ ^[0-9]+\.[0-9]+\.[0-9]+$ ]]; then
55
55
echo ::set-output name=is_production::true
56
56
fi
57
- scan-code :
57
+ scan-code-net :
58
58
name : Sonar scan
59
59
timeout-minutes : 20
60
60
runs-on : ubuntu-latest
81
81
coverage-artifact-pooling-timeout-sec : " 1200"
82
82
env :
83
83
GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
84
+ scan-code :
85
+ name : Sonar scan
86
+ runs-on : ubuntu-latest
87
+ timeout-minutes : 10
88
+ steps :
89
+ - uses : actions/checkout@v3
90
+ with :
91
+ fetch-depth : 0
92
+ - name : downcase GITHUB_REPOSITORY_OWNER
93
+ run : |
94
+ echo "GITHUB_REPOSITORY_OWNER_DOWNCASE=${GITHUB_REPOSITORY_OWNER,,}" >>${GITHUB_ENV}
95
+ - name : SonarCloud Scan
96
+ uses : SonarSource/sonarcloud-github-action@master
97
+ with :
98
+ args : |
99
+ -Dsonar.organization=${{ env.GITHUB_REPOSITORY_OWNER_DOWNCASE }} -Dsonar.projectKey=${{ github.repository_owner }}_${{ github.event.repository.name }}
100
+ env :
101
+ GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
102
+ SONAR_TOKEN : ${{ secrets.SONAR_TOKEN }}
84
103
nuget-build-auth-nuget :
85
104
name : Build Auth client nuget
86
105
timeout-minutes : 20
@@ -113,7 +132,7 @@ jobs:
113
132
build-args : |-
114
133
COMMIT_SHA=${{ github.sha }}
115
134
GITHUB_TOKEN=${{ secrets.GITHUB_TOKEN }}
116
- BUILD_DATETIME=${{ fromJSON(steps.meta.outputs.json).labels['org.opencontainers.image.created'] }}
135
+ BUILD_DATETIME=${{ steps.meta.outputs.json && fromJSON(steps.meta.outputs.json).labels['org.opencontainers.image.created'] }}
117
136
APP_VERSION=${{ needs.version.outputs.app_version }}
118
137
FILE_VERSION=${{ needs.version.outputs.file_version }}
119
138
INFORMATIONAL_VERSION=${{ needs.version.outputs.information_version }}
@@ -125,7 +144,7 @@ jobs:
125
144
- name : Checkout GitHub Action Repos
126
145
uses : daspn/private-actions-checkout@v2
127
146
with :
128
- actions_list :
' [ "covergo/get-version@v1.7 ", "covergo/[email protected] ", "covergo/[email protected] ", "covergo/[email protected] ", "covergo/[email protected] ", "covergo/[email protected] " ]'
147
+ actions_list :
' [ "covergo/get-version@v1.8 ", "covergo/[email protected] ", "covergo/[email protected] ", "covergo/[email protected] ", "covergo/[email protected] ", "covergo/[email protected] " ]'
129
148
checkout_base_path : ./.github/actions
130
149
app_id : ${{ secrets.PRIVATE_ACTION_APP_ID }}
131
150
app_private_key : ${{ secrets.PRIVATE_ACTION_APP_PRIVATE_KEY }}
@@ -187,7 +206,7 @@ jobs:
187
206
build-args : |-
188
207
COMMIT_SHA=${{ github.sha }}
189
208
GITHUB_TOKEN=${{ secrets.GITHUB_TOKEN }}
190
- BUILD_DATETIME=${{ fromJSON(steps.meta.outputs.json).labels['org.opencontainers.image.created'] }}
209
+ BUILD_DATETIME=${{ steps.meta.outputs.json && fromJSON(steps.meta.outputs.json).labels['org.opencontainers.image.created'] }}
191
210
APP_VERSION=${{ needs.version.outputs.app_version }}
192
211
FILE_VERSION=${{ needs.version.outputs.file_version }}
193
212
INFORMATIONAL_VERSION=${{ needs.version.outputs.information_version }}
@@ -199,7 +218,7 @@ jobs:
199
218
- name : Checkout GitHub Action Repos
200
219
uses : daspn/private-actions-checkout@v2
201
220
with :
202
- actions_list :
' [ "covergo/get-version@v1.7 ", "covergo/[email protected] ", "covergo/[email protected] ", "covergo/[email protected] ", "covergo/[email protected] ", "covergo/[email protected] " ]'
221
+ actions_list :
' [ "covergo/get-version@v1.8 ", "covergo/[email protected] ", "covergo/[email protected] ", "covergo/[email protected] ", "covergo/[email protected] ", "covergo/[email protected] " ]'
203
222
checkout_base_path : ./.github/actions
204
223
app_id : ${{ secrets.PRIVATE_ACTION_APP_ID }}
205
224
app_private_key : ${{ secrets.PRIVATE_ACTION_APP_PRIVATE_KEY }}
@@ -274,7 +293,7 @@ jobs:
274
293
NOW="$(date -u +'%Y-%m-%dT%H:%M:%SZ')"
275
294
COMMIT_SHA=${{ github.sha }}
276
295
GITHUB_TOKEN=${{ secrets.GITHUB_TOKEN }}
277
- BUILD_DATETIME=${{ fromJSON(steps.meta.outputs.json).labels['org.opencontainers.image.created'] }}
296
+ BUILD_DATETIME=${{ steps.meta.outputs.json && fromJSON(steps.meta.outputs.json).labels['org.opencontainers.image.created'] }}
278
297
APP_VERSION=${{ needs.version.outputs.app_version }}
279
298
FILE_VERSION=${{ needs.version.outputs.file_version }}
280
299
INFORMATIONAL_VERSION=${{ needs.version.outputs.information_version }}
@@ -325,7 +344,7 @@ jobs:
325
344
build-args : |-
326
345
COMMIT_SHA=${{ github.sha }}
327
346
GITHUB_TOKEN=${{ secrets.GITHUB_TOKEN }}
328
- BUILD_DATETIME=${{ fromJSON(steps.meta.outputs.json).labels['org.opencontainers.image.created'] }}
347
+ BUILD_DATETIME=${{ steps.meta.outputs.json && fromJSON(steps.meta.outputs.json).labels['org.opencontainers.image.created'] }}
329
348
APP_VERSION=${{ needs.version.outputs.app_version }}
330
349
FILE_VERSION=${{ needs.version.outputs.file_version }}
331
350
INFORMATIONAL_VERSION=${{ needs.version.outputs.information_version }}
@@ -394,7 +413,7 @@ jobs:
394
413
- name : Checkout GitHub Action Repos
395
414
uses : daspn/private-actions-checkout@v2
396
415
with :
397
- actions_list :
' [ "covergo/get-version@v1.7 ", "covergo/[email protected] ", "covergo/[email protected] ", "covergo/[email protected] ", "covergo/[email protected] ", "covergo/[email protected] " ]'
416
+ actions_list :
' [ "covergo/get-version@v1.8 ", "covergo/[email protected] ", "covergo/[email protected] ", "covergo/[email protected] ", "covergo/[email protected] ", "covergo/[email protected] " ]'
398
417
checkout_base_path : ./.github/actions
399
418
app_id : ${{ secrets.PRIVATE_ACTION_APP_ID }}
400
419
app_private_key : ${{ secrets.PRIVATE_ACTION_APP_PRIVATE_KEY }}
@@ -470,7 +489,7 @@ jobs:
470
489
- name : Checkout GitHub Action Repos
471
490
uses : daspn/private-actions-checkout@v2
472
491
with :
473
- actions_list :
' [ "covergo/get-version@v1.7 ", "covergo/[email protected] ", "covergo/[email protected] ", "covergo/[email protected] ", "covergo/[email protected] ", "covergo/[email protected] " ]'
492
+ actions_list :
' [ "covergo/get-version@v1.8 ", "covergo/[email protected] ", "covergo/[email protected] ", "covergo/[email protected] ", "covergo/[email protected] ", "covergo/[email protected] " ]'
474
493
checkout_base_path : ./.github/actions
475
494
app_id : ${{ secrets.PRIVATE_ACTION_APP_ID }}
476
495
app_private_key : ${{ secrets.PRIVATE_ACTION_APP_PRIVATE_KEY }}
@@ -594,7 +613,7 @@ jobs:
594
613
- name : Checkout GitHub Action Repos
595
614
uses : daspn/private-actions-checkout@v2
596
615
with :
597
- actions_list :
' [ "covergo/get-version@v1.7 ", "covergo/[email protected] ", "covergo/[email protected] ", "covergo/[email protected] ", "covergo/[email protected] ", "covergo/[email protected] " ]'
616
+ actions_list :
' [ "covergo/get-version@v1.8 ", "covergo/[email protected] ", "covergo/[email protected] ", "covergo/[email protected] ", "covergo/[email protected] ", "covergo/[email protected] " ]'
598
617
checkout_base_path : ./.github/actions
599
618
app_id : ${{ secrets.PRIVATE_ACTION_APP_ID }}
600
619
app_private_key : ${{ secrets.PRIVATE_ACTION_APP_PRIVATE_KEY }}
@@ -731,7 +750,7 @@ jobs:
731
750
- name : Checkout GitHub Action Repos
732
751
uses : daspn/private-actions-checkout@v2
733
752
with :
734
- actions_list :
' [ "covergo/get-version@v1.7 ", "covergo/[email protected] ", "covergo/[email protected] ", "covergo/[email protected] ", "covergo/[email protected] ", "covergo/[email protected] " ]'
753
+ actions_list :
' [ "covergo/get-version@v1.8 ", "covergo/[email protected] ", "covergo/[email protected] ", "covergo/[email protected] ", "covergo/[email protected] ", "covergo/[email protected] " ]'
735
754
checkout_base_path : ./.github/actions
736
755
app_id : ${{ secrets.PRIVATE_ACTION_APP_ID }}
737
756
app_private_key : ${{ secrets.PRIVATE_ACTION_APP_PRIVATE_KEY }}
@@ -1063,7 +1082,7 @@ jobs:
1063
1082
- name : Checkout GitHub Action Repos
1064
1083
uses : daspn/private-actions-checkout@v2
1065
1084
with :
1066
- actions_list :
' [ "covergo/get-version@v1.7 ", "covergo/[email protected] ", "covergo/[email protected] ", "covergo/[email protected] ", "covergo/[email protected] ", "covergo/[email protected] " ]'
1085
+ actions_list :
' [ "covergo/get-version@v1.8 ", "covergo/[email protected] ", "covergo/[email protected] ", "covergo/[email protected] ", "covergo/[email protected] ", "covergo/[email protected] " ]'
1067
1086
checkout_base_path : ./.github/actions
1068
1087
app_id : ${{ secrets.PRIVATE_ACTION_APP_ID }}
1069
1088
app_private_key : ${{ secrets.PRIVATE_ACTION_APP_PRIVATE_KEY }}
0 commit comments