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
Address some outstanding comments in #3133.
Changes include:
Use env variable names PKG_NAME, PKG_VERSION, and NPM_DIST_TAG consistently within the script and remove unnecessary intermediate variables.
Write package version in line https://github.com/XRPLF/xrpl.js/blob/main/.github/workflows/release.yml#L122 into $GITHUB_OUTPUT instead of $GITHUB_ENV to be used in other jobs (instead of the same job).
Fix line https://github.com/XRPLF/xrpl.js/blob/main/.github/workflows/release.yml#L526 to just use ${{ needs.get_version.outputs.package_name }} directly since this should be available and && operator does not make much sense in this context.
MESSAGE="❌ Build failed for xrpl.js ${PACKAGE_VERSION}. Check the logs: https://github.com/${REPO}/actions/runs/${RUN_ID}"
182
+
MESSAGE="❌ Build failed for xrpl.js ${PKG_VERSION}. Check the logs: https://github.com/${REPO}/actions/runs/${RUN_ID}"
187
183
curl -X POST https://slack.com/api/chat.postMessage \
188
184
-H "Authorization: Bearer ${SLACK_TOKEN}" \
189
185
-H "Content-Type: application/json" \
@@ -216,7 +212,7 @@ jobs:
216
212
-H "X-Api-Key: ${OWASP_TOKEN}" \
217
213
-F "autoCreate=true" \
218
214
-F "projectName=xrpl-js" \
219
-
-F "projectVersion=${PACKAGE_VERSION}" \
215
+
-F "projectVersion=${PKG_VERSION}" \
220
216
-F "bom=@sbom.json" \
221
217
https://owasp-dt-api.prod.ripplex.io/api/v1/bom
222
218
@@ -269,13 +265,13 @@ jobs:
269
265
LABELS: security
270
266
run: |
271
267
set -euo pipefail
272
-
TITLE="🔒 Security vulnerabilities in ${PACKAGE_NAME}@${PACKAGE_VERSION}"
268
+
TITLE="🔒 Security vulnerabilities in ${PKG_NAME}@${PKG_VERSION}"
273
269
: > issue_body.md
274
270
275
-
echo "The vulnerability scan has detected **CRITICAL/HIGH** vulnerabilities for \`${PACKAGE_NAME}@${PACKAGE_VERSION}\` on branch \`${REL_BRANCH}\`." >> issue_body.md
271
+
echo "The vulnerability scan has detected **CRITICAL/HIGH** vulnerabilities for \`${PKG_NAME}@${PKG_VERSION}\` on branch \`${REL_BRANCH}\`." >> issue_body.md
MSG="${EXECUTOR} is releasing ${PACKAGE_NAME}@${PACKAGE_VERSION}. A member from the dev team (${DEV_REVIEWERS}) needs to take the following actions: \n1) Review the release artifacts and approve/reject the release. (${RUN_URL})"
470
+
MSG="${EXECUTOR} is releasing ${PKG_NAME}@${PKG_VERSION}. A member from the dev team (${DEV_REVIEWERS}) needs to take the following actions: \n1) Review the release artifacts and approve/reject the release. (${RUN_URL})"
477
471
478
472
if [ -n "${PR_URL}" ]; then
479
473
MSG="${MSG} \n2) Review the package update PR and provide two approvals. DO NOT MERGE — ${EXECUTOR} will verify the package on npm and merge the approved PR. (${PR_URL})"
MSG="${EXECUTOR} is releasing ${PACKAGE_NAME}@${PACKAGE_VERSION}. A member from the infosec team (${SEC_REVIEWERS}) needs to take the following action:\n Review the release artifacts and approve/reject the release. (${RUN_URL})"
529
+
MSG="${EXECUTOR} is releasing ${PKG_NAME}@${PKG_VERSION}. A member from the infosec team (${SEC_REVIEWERS}) needs to take the following action:\n Review the release artifacts and approve/reject the release. (${RUN_URL})"
536
530
MSG=$(printf '%b' "${MSG}")
537
531
curl -sS -X POST https://slack.com/api/chat.postMessage \
538
532
-H "Authorization: Bearer ${SLACK_TOKEN}" \
@@ -557,8 +551,8 @@ jobs:
557
551
]
558
552
name: Release for ${{ needs.get_version.outputs.package_version }}
0 commit comments