Skip to content

Commit 8af1eaf

Browse files
fix: add pass/fail for GSSA (#466)
### Description Start passing or failing GSSA job. Release is still not dependant on it. ### Checklist - [ ] `README.md` has been updated or is not required - [ ] push trigger tests - [ ] manual release test - [ ] automated releases test - [x] pull request trigger tests - [ ] schedule trigger tests - [ ] workflow errors/warnings reviewed and addressed ### Testing done https://github.com/splunk/splunk-add-on-for-ibm-websphere-application-server/actions/runs/22131613911
1 parent fa7cd0b commit 8af1eaf

File tree

1 file changed

+10
-5
lines changed

1 file changed

+10
-5
lines changed

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

Lines changed: 10 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -884,20 +884,25 @@ jobs:
884884
-e GS_VERSION="${{ env.GS_VERSION }}" \
885885
-v "$(pwd)":/addon \
886886
956110764581.dkr.ecr.us-west-2.amazonaws.com/ta-automation/gs-scorecard:"${{ env.GS_IMAGE_VERSION }}"
887-
888887
- name: Upload GS Scorecard report
889888
uses: actions/upload-artifact@v4
890-
if: always()
891889
with:
892890
name: gs-scorecard-report
893891
path: ./gs_scorecard.json
894-
895-
- name: Print GS Scorecard report
896-
if: always()
892+
- name: Print and verify GS Scorecard report
897893
run: |
894+
if [ ! -f ./gs_scorecard.json ]; then
895+
echo "::error::GS Scorecard report not found"
896+
exit 1
897+
fi
898898
echo "::group::GS Scorecard Report"
899899
jq . ./gs_scorecard.json
900900
echo "::endgroup::"
901+
passed=$(jq -r '.result.passed' ./gs_scorecard.json)
902+
if [ "$passed" != "true" ]; then
903+
echo "::error::GS Scorecard failed"
904+
exit 1
905+
fi
901906
902907
setup:
903908
needs:

0 commit comments

Comments
 (0)