Skip to content

fix: plugin test failure and change to GITHUB_TOKEN #8

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

Merged
merged 7 commits into from
Jun 3, 2025

Conversation

shenxianpeng
Copy link
Contributor

No description provided.

@shenxianpeng shenxianpeng added the bug Something isn't working label Jun 2, 2025
@shenxianpeng shenxianpeng requested a review from Copilot June 2, 2025 22:30
Copilot

This comment was marked as outdated.

@shenxianpeng shenxianpeng force-pushed the fix-rate-limit-issue branch from 383642f to 715f612 Compare June 3, 2025 22:39
@shenxianpeng shenxianpeng changed the title fix: try to fix rate limit issue fix: plugin test failure and change to GITHUB_TOKEN Jun 3, 2025
@shenxianpeng shenxianpeng requested a review from Copilot June 3, 2025 23:04
Copy link

@Copilot Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This PR updates the authentication token in the Bash utilities and refines the CI workflow to improve plugin test reliability.

  • Switched from GITHUB_API_TOKEN to GITHUB_TOKEN in lib/utils.bash.
  • Added a manual dispatch trigger and expanded the plugin_test matrix in the GitHub Actions workflow.
  • Clarified step names, disabled fail-fast, and ensured the GITHUB_TOKEN is passed to test steps.

Reviewed Changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated 1 comment.

File Description
lib/utils.bash Use GITHUB_TOKEN for Authorization header instead of GITHUB_API_TOKEN.
.github/workflows/build.yml Added workflow_dispatch, expanded matrix versions, refined steps, and set GITHUB_TOKEN in env.
Comments suppressed due to low confidence (1)

lib/utils.bash:39

  • Update the preceding comment to reference GITHUB_TOKEN instead of GITHUB_API_TOKEN, and document this breaking change or provide a fallback for backward compatibility.
if [ -n "${GITHUB_TOKEN:-}" ]; then


- name: Run ${{ matrix.tool.plugin }} version check
run: ${{ matrix.tool.command }}
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
Copy link
Preview

Copilot AI Jun 3, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

[nitpick] Consider moving GITHUB_TOKEN into a job-level env: block under jobs.plugin_test so that it’s automatically available to all steps, reducing duplication.

Suggested change
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

Copilot uses AI. Check for mistakes.

@shenxianpeng shenxianpeng merged commit c25b4d8 into main Jun 3, 2025
408 of 418 checks passed
@shenxianpeng shenxianpeng deleted the fix-rate-limit-issue branch June 3, 2025 23:07
@github-actions github-actions bot mentioned this pull request Jun 3, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant