Repository navigation
fix(ci): replace brittle --no-tag with explicit staging-tmp tag #26940
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -174,9 +174,9 @@ runs: | |
| npm publish \ | ||
| --dry-run="${INPUTS_DRY_RUN}" \ | ||
| --workspace="${INPUTS_CORE_PACKAGE_NAME}" \ | ||
| --no-tag | ||
| --tag staging-tmp | ||
| if [[ "${INPUTS_DRY_RUN}" == "false" ]]; then | ||
| npm dist-tag rm ${INPUTS_CORE_PACKAGE_NAME} false | ||
| npm dist-tag rm ${INPUTS_CORE_PACKAGE_NAME} staging-tmp | ||
| fi | ||
|
|
||
| - name: '🔗 Install latest core package' | ||
|
|
@@ -222,9 +222,9 @@ runs: | |
| npm publish \ | ||
| --dry-run="${INPUTS_DRY_RUN}" \ | ||
| --workspace="${INPUTS_CLI_PACKAGE_NAME}" \ | ||
| --no-tag | ||
| --tag staging-tmp | ||
| if [[ "${INPUTS_DRY_RUN}" == "false" ]]; then | ||
| npm dist-tag rm ${INPUTS_CLI_PACKAGE_NAME} false | ||
| npm dist-tag rm ${INPUTS_CLI_PACKAGE_NAME} staging-tmp | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. The variable npm dist-tag rm "${INPUTS_CLI_PACKAGE_NAME}" staging-tmp |
||
| fi | ||
|
|
||
| - name: 'Get a2a-server Token' | ||
|
|
@@ -249,9 +249,9 @@ runs: | |
| npm publish \ | ||
| --dry-run="${INPUTS_DRY_RUN}" \ | ||
| --workspace="${INPUTS_A2A_PACKAGE_NAME}" \ | ||
| --no-tag | ||
| --tag staging-tmp | ||
| if [[ "${INPUTS_DRY_RUN}" == "false" ]]; then | ||
| npm dist-tag rm ${INPUTS_A2A_PACKAGE_NAME} false | ||
| npm dist-tag rm ${INPUTS_A2A_PACKAGE_NAME} staging-tmp | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. The variable npm dist-tag rm "${INPUTS_A2A_PACKAGE_NAME}" staging-tmp |
||
| fi | ||
|
|
||
| - name: '🔬 Verify NPM release by version' | ||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The variable
${INPUTS_CORE_PACKAGE_NAME}is used without quotes in a shell script, which can lead to command injection if the input contains shell metacharacters. It is a best practice to always quote variables in shell commands to prevent unintended execution of arbitrary code. Additionally, consider defining a variable for thestaging-tmptag to improve maintainability and avoid potential typos.npm dist-tag rm "${INPUTS_CORE_PACKAGE_NAME}" staging-tmp