WARNING: THIS SITE IS A MIRROR OF GITHUB.COM / IT CANNOT LOGIN OR REGISTER ACCOUNTS / THE CONTENTS ARE PROVIDED AS-IS / THIS SITE ASSUMES NO RESPONSIBILITY FOR ANY DISPLAYED CONTENT OR LINKS / IF YOU FOUND SOMETHING MAY NOT GOOD FOR EVERYONE, CONTACT ADMIN AT ilovescratch@foxmail.com
Skip to content

Commit e429422

Browse files
fix: add GS Scorecard label to reusable build workflow (#446)
### Description This adds the label to be able to run gs scorecarding on demand ### Checklist - [ ] `README.md` has been updated or is not required - [ ] push trigger tests - [ ] manual release test - [ ] automated releases test - [ ] pull request trigger tests - [ ] schedule trigger tests - [ ] workflow errors/warnings reviewed and addressed ### Testing done https://github.com/splunk/splunk-add-on-for-linux/actions/runs/19742354656/job/56570026722
2 parents 1cf2ce6 + 73b0f12 commit e429422

File tree

1 file changed

+10
-3
lines changed

1 file changed

+10
-3
lines changed

.github/workflows/reusable-build-test-release.yml

Lines changed: 10 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -186,6 +186,7 @@ jobs:
186186
execute-upgrade: ${{ steps.determine-test-execution-flags.outputs.execute_upgrade }}
187187
exit-first: ${{ steps.determine-test-execution-flags.outputs.exit-first }}
188188
execute-unit: ${{ steps.determine-test-execution-flags.outputs.execute_unit }}
189+
execute-gs-scorecard: ${{ steps.determine-test-execution-flags.outputs.execute_gs_scorecard }}
189190
s3_bucket_k8s: ${{ steps.k8s-environment.outputs.s3_bucket }}
190191
argo_server_domain_k8s: ${{ steps.k8s-environment.outputs.argo_server_domain }}
191192
argo_token_secret_id_k8s: ${{ steps.k8s-environment.outputs.argo_token_secret_id }}
@@ -217,7 +218,7 @@ jobs:
217218
run: |
218219
set +e
219220
declare -A EXECUTION_FLAGS
220-
TESTSET=("execute_unit" "execute_knowledge" "execute_spl2" "execute_ui" "execute_modinput_functional" "execute_ucc_modinput_functional" "execute_scripted_inputs" "execute_upgrade")
221+
TESTSET=("execute_unit" "execute_knowledge" "execute_spl2" "execute_ui" "execute_modinput_functional" "execute_ucc_modinput_functional" "execute_scripted_inputs" "execute_upgrade" "execute_gs_scorecard")
221222
for test_type in "${TESTSET[@]}"; do
222223
EXECUTION_FLAGS["$test_type"]="false"
223224
done
@@ -240,6 +241,10 @@ jobs:
240241
echo "spl2::true"
241242
fi
242243
244+
# GS Scorecard is always available
245+
TESTS_TO_CONSIDER_FOR_EXECUTION+=("execute_gs_scorecard")
246+
echo "gs_scorecard::true"
247+
243248
found_unit_test=false
244249
for test_name in "${TESTS_TO_CONSIDER_FOR_EXECUTION[@]}"; do
245250
if [[ "$test_name" == "execute_unit" ]]; then
@@ -821,8 +826,10 @@ jobs:
821826

822827
run-gs-scorecard:
823828
name: quality-gs-scorecard
824-
needs: build
825-
if: ${{ !cancelled() && needs.build.result == 'success' && (github.ref_name == 'main' && github.event_name == 'push') }}
829+
needs:
830+
- build
831+
- setup-workflow
832+
if: ${{ !cancelled() && needs.build.result == 'success' && needs.setup-workflow.outputs.execute-gs-scorecard == 'true' }}
826833
runs-on: ubuntu-latest
827834
steps:
828835
- uses: actions/checkout@v4

0 commit comments

Comments
 (0)