Skip to content

fix: update GITHUB_TOKEN handling in workflow and scripts to use secrets.GITHUB_TOKEN#17

Merged
ya7010 merged 1 commit intomainfrom
fix_ci4
Dec 8, 2025
Merged

fix: update GITHUB_TOKEN handling in workflow and scripts to use secrets.GITHUB_TOKEN#17
ya7010 merged 1 commit intomainfrom
fix_ci4

Conversation

@ya7010
Copy link
Copy Markdown
Contributor

@ya7010 ya7010 commented Dec 8, 2025

No description provided.

Copilot AI review requested due to automatic review settings December 8, 2025 16:04
@ya7010 ya7010 merged commit 63a7552 into main Dec 8, 2025
@ya7010 ya7010 deleted the fix_ci4 branch December 8, 2025 16:04
Copy link
Copy Markdown
Contributor

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 GITHUB_TOKEN handling to use secrets.GITHUB_TOKEN instead of github.token. The changes improve clarity in error messaging and align the workflow configuration with the updated guidance.

  • Updated the informational message in src/index.ts to specify using secrets.GITHUB_TOKEN in the env
  • Modified the workflow file to use secrets.GITHUB_TOKEN instead of github.token

Reviewed changes

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

File Description
src/index.ts Updated error message to specify secrets.GITHUB_TOKEN syntax
.github/workflows/market-place-test.yml Changed token reference from github.token to secrets.GITHUB_TOKEN

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

- uses: tombi-toml/setup-tombi@v1.0.4
env:
GITHUB_TOKEN: ${{ github.token }}
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
Copy link

Copilot AI Dec 8, 2025

Choose a reason for hiding this comment

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

Using secrets.GITHUB_TOKEN requires the token to be explicitly configured as a repository secret. The github.token context provides an automatically generated token for workflow runs. Unless there's a specific reason to use a custom token, github.token is the recommended approach as it works without additional configuration.

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

Copilot uses AI. Check for mistakes.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants