Skip to content

Conversation

@ArielSantos01
Copy link
Contributor

No description provided.

@ArielSantos01 ArielSantos01 requested a review from Copilot January 13, 2026 13:54
@ArielSantos01 ArielSantos01 merged commit ead7e8b into main Jan 13, 2026
7 checks passed
Copy link

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 pull request attempts to simplify authentication by removing the access_token input parameter and replacing a custom bash function that uses curl with the GitHub CLI (gh) for fetching the latest release version.

Changes:

  • Removed access_token required input parameter
  • Replaced custom get_latest_version() bash function with gh release view command
  • Simplified the version fetching logic by using GitHub CLI instead of curl

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

@@ -11,9 +11,6 @@ inputs:
description: 'version to install cli'
default: 'latest'
required: false
Copy link

Copilot AI Jan 13, 2026

Choose a reason for hiding this comment

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

The access_token input has been removed from the inputs section, but it is still being referenced in line 36 of the action. This will cause the action to fail when it tries to authenticate with gh CLI using an undefined variable. The reference at line 36 needs to be updated to use an alternative authentication method or the access_token input should be retained.

Suggested change
required: false
required: false
access_token:
description: 'GitHub access token used for gh authentication'
required: true

Copilot uses AI. Check for mistakes.
Comment on lines 11 to 13
description: 'version to install cli'
default: 'latest'
required: false
Copy link

Copilot AI Jan 13, 2026

Choose a reason for hiding this comment

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

Removing the required access_token input is a breaking API change that will break existing consumers of this action. All workflows using this action will need to be updated to remove the access_token parameter. Additionally, this change needs to address authentication for both the gh release view command (line 23) and the gh auth login command (line 36, which still references the removed input). Consider whether authentication is needed for accessing public releases, or if the GITHUB_TOKEN environment variable should be used instead.

Copilot uses AI. Check for mistakes.

if [[ "${{ inputs.version }}" == "latest" ]]; then
version=$(get_latest_version)
version=$(gh release view --repo Drafteame/draft --json tagName -q .tagName)
Copy link

Copilot AI Jan 13, 2026

Choose a reason for hiding this comment

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

The gh CLI command may require authentication to fetch release information from the repository. When the access_token input is removed, ensure that the gh CLI can access the repository either because it's public or by using the default GITHUB_TOKEN that's available in GitHub Actions. If authentication is required, the gh CLI will need to be authenticated before this command is executed.

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