You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: .github/workflows/reusable-build-test-release.yml
+64-16Lines changed: 64 additions & 16 deletions
Original file line number
Diff line number
Diff line change
@@ -62,6 +62,16 @@ on:
62
62
description: "Python version to use for testing"
63
63
type: string
64
64
default: "3.9"
65
+
gs-image-version:
66
+
required: false
67
+
description: "Version of the GS scorecard Docker image"
68
+
type: string
69
+
default: "1.1"
70
+
gs-version:
71
+
required: false
72
+
description: "Version of the GS scorecard"
73
+
type: string
74
+
default: "0.3"
65
75
secrets:
66
76
GH_TOKEN_ADMIN:
67
77
description: Github admin token
@@ -118,8 +128,8 @@ env:
118
128
PYTHON_VERSION: ${{ inputs.python-version }}
119
129
POETRY_VERSION: "2.1.4"
120
130
POETRY_EXPORT_PLUGIN_VERSION: "1.9.0"
121
-
GS_IMAGE_VERSION: "1.0.0"
122
-
GS_VERSION: "0.3"
131
+
GS_IMAGE_VERSION: ${{ inputs.gs-image-version }}
132
+
GS_VERSION: ${{ inputs.gs-version }}
123
133
jobs:
124
134
validate-custom-version:
125
135
runs-on: ubuntu-latest
@@ -144,7 +154,7 @@ jobs:
144
154
steps:
145
155
- uses: actions/checkout@v4
146
156
- run: |
147
-
if grep -q 'splunktafunctionaltests' poetry.lock; then
157
+
if grep -q 'splunktafunctionaltests' poetry.lock || grep -q 'splunktafunctionaltests' dev_deps/requirements_dev.txt 2>/dev/null; then
148
158
echo "::warning title=\"splunktafunctionaltests\" should NOT be used for modinput tests::For more details, please see https://splunk.slack.com/archives/C081JT7R69Z/p1754662758743839."
echo "Add the \`execute_gs_scorecard\` label to this PR and re-run the workflow. GS Scorecard must complete before merging to main (result does not need to pass)." >> "$GITHUB_STEP_SUMMARY"
2939
+
echo "run-publish=false" >> "$GITHUB_OUTPUT"
2940
+
echo "Publish conditions are not met."
2941
+
exit 1
2942
+
fi
2943
+
2944
+
# Exclude run-gs-scorecard from the general check since it has its own handling above
- The GS Scorecard tool is containerized and runs in a Docker container, analyzing the repository and generating a comprehensive quality report.
534
534
535
-
- This job only runs on push events to the `main` branch after a successful build.
535
+
- This job runs only after a successful build, either on push events to the main branch or when the execute_gs_scorecard label is added to a pull request.
536
536
537
537
**Action used:**
538
538
- AWS ECR (Elastic Container Registry) for Docker image storage
0 commit comments