Open pickaxe828 opened 1 year ago
${{ secrets.GITHUB_TOKEN }}
instead of ${{ inputs.github_token }}
- name: Bump version and push tag
id: tag_version
uses: mathieudutour/github-tag-action@v6.1
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
I am hitting this issue as well, using a personal access token. It previously worked with the exact same configuration. My code is as follows:
name: on-push-main
on:
push:
branches:
- main
jobs:
tagging:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: mathieudutour/github-tag-action@v6.1
with:
github_token: ${{ secrets.PAT }}
fetch_all_tags: true
release_branches: main
Nothing relevant changed, and the access token is not expired.
Diving just slightly deeper I found out this happened when the on-push-main
workflow was triggered by dependabot[bot]
rather than an actual user. Something weird happens that causes the error to occur.
It's a non-issue for me, since this shouldn't happen in my workflows, usually. Upon pushing from an actual user the action worked correctly.
Slightly related: there's a dry_run
option, but the action still requires a github_token
. Is this by design (because the description only mentions "Required for permission to tag the repo.")? If the repository is already checked out can't the next tag be calculated without requiring the token? Thanks.
Expected:
No error
What's actually happening:
The original action Part of the associated
.yml
:Output:
And stopped running.
So what is token actually? I've tried adding the GitHub token to it