Skip to content

fix(ci): resolve version-bump checkout failure when GH_TOKEN secret is absent#3

Closed
Copilot wants to merge 2 commits into
mainfrom
copilot/fix-version-bump-job
Closed

fix(ci): resolve version-bump checkout failure when GH_TOKEN secret is absent#3
Copilot wants to merge 2 commits into
mainfrom
copilot/fix-version-bump-job

Conversation

Copilot AI commented May 27, 2026

Copy link
Copy Markdown

The version-bump workflow fails immediately at actions/checkout@v4 because secrets.GH_TOKEN is not configured — GitHub evaluates the missing secret as "", which the action rejects as "Input required and not supplied: token".

Change

Use || github.token as a fallback in the checkout token input:

# .github/workflows/version-bump.yml
token: ${{ secrets.GH_TOKEN || github.token }}

When GH_TOKEN (PAT for branch-protection bypass) is present it takes precedence; otherwise the job falls back to the built-in GITHUB_TOKEN, which already has contents: write via the job's permissions block.

@telerik-pr-policy-bot

Copy link
Copy Markdown

Hello @copilot-swe-agent,

This Pull Request appears to be missing a reference to a GitHub Project. All Pull Requests must be linked to a Project, either directly or by referencing an Issue.

Please, link to an Issue included in a Project using the closes, fixes, implements or part of keywords. For example, add Implements #<issue number> to the description.

Alternatively, associate this PR with a Project from the panel on the right and edit the PR description to restart the policy check.

You can also reference a Jira issue by including its key (e.g. KEY-1234) in the PR description.

Cheers,
Your friendly Policy Bot

Copilot AI changed the title [WIP] Fix failing GitHub Actions job version-bump fix(ci): resolve version-bump checkout failure when GH_TOKEN secret is absent May 27, 2026
Copilot AI requested a review from Iankodj May 27, 2026 10:15
@Iankodj Iankodj closed this May 27, 2026
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