Skip to content

Conversation

Copilot
Copy link

@Copilot Copilot AI commented Oct 11, 2025

Problem

The workflows using stefanzweifel/git-auto-commit-action@v5 were failing with the error:

Error: Input required and not supplied: token

Root Cause

In version 5 of git-auto-commit-action, the token input parameter became required for authentication when pushing commits to the repository. Previously in v4, the action would automatically use the default GitHub token, but v5 requires it to be explicitly provided.

Solution

This PR adds the required token parameter to both workflows using git-auto-commit-action@v5:

  1. publish-npm-package.yml - Added token: ${{ secrets.GITHUB_TOKEN }} to the git-auto-commit-action step
  2. generate-artifacts-from-schemas.yml - Added token: ${{ secrets.GITHUB_TOKEN }} and permissions: contents: write to ensure proper authentication

The ${{ secrets.GITHUB_TOKEN }} is automatically provided by GitHub Actions and grants the necessary permissions to commit and push changes back to the repository.

Testing

  • ✅ YAML syntax validated for both workflow files
  • ✅ No changes required for release-notes.yml and swagger.yml which use v4

This is a minimal, targeted fix that resolves the authentication issue without affecting any other functionality.

Warning

Firewall rules blocked me from connecting to one or more addresses (expand for details)

I tried to connect to the following addresses, but was blocked by firewall rules:

  • https://api.github.com/repos/stefanzweifel/git-auto-commit-action/releases/latest
    • Triggering command: curl -s REDACTED (http block)

If you need me to access, download, or install something from one of these locations, you can either:

Original prompt

Error: Input required and not supplied: token


💬 Share your feedback on Copilot coding agent for the chance to win a $200 gift card! Click here to start the survey.

Add required token parameter to git-auto-commit-action@v5 in both workflows.
Also add permissions block to generate-artifacts-from-schemas.yml for write access.

Co-authored-by: leecalcote <[email protected]>
@Copilot Copilot AI changed the title [WIP] Fix error for missing input token Fix: Add required token parameter to git-auto-commit-action@v5 Oct 11, 2025
@Copilot Copilot AI requested a review from leecalcote October 11, 2025 04:30
Copilot finished work on behalf of leecalcote October 11, 2025 04:30
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