mathieudutour / mathieudutour/github-tag-action

How to fix `Parameter token or opts.auth is required`

Open
#166 4 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
TypeScript
Stars
733
Forks
227
PR merge metrics
No merged PRs in 30d

Description

## **Expected:**
No error

## **What's actually happening:**
[The original action](https://github.com/pickaxe828/Tally/actions/runs/4084709165/jobs/7041728849#step:3:11)
Part of the associated `.yml`:
```yml
- name: Bump version and push tag
id: tag_version
uses: mathieudutour/github-tag-action@v6.1
with:
github_token: ${{ inputs.github_token }}
```
Output:
```yml
Run mathieudutour/github-tag-action@v6.1
default_bump: patch
default_prerelease_bump: prerelease
tag_prefix: v
release_branches: master,main
create_annotated_tag: false
fetch_all_tags: false
dry_run: false
Error: Parameter token or opts.auth is required
```
And stopped running.

##
So what is token actually? I've tried adding the GitHub token to it
```yml
uses: mathieudutour/github-tag-action@v6.1
with:
github_token: ${{ inputs.github_token }}
```

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start with the associated GitHub Actions workflow and the “Bump version and push tag” step using mathieudutour/github-tag-action@v6.1. Check how the github_token input is supplied and confirm the workflow completes without “Parameter token or opts.auth is required” while creating the intended tag.

Written by the indexing model from the issue text.

Assessment

Tech stack
github-actions, typescript
Domain
ci-cd, release
Issue type
Bug
Difficulty
2/5
Estimated time
1-3 hours
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.