Skip to content

Fix Auto Tag workflow: PAT needs write access after org transfer #125

Closed

Description

@neuromechanist

Problem

The Auto Tag workflow (.github/workflows/auto-tag.yml) fails with Write access to repository not granted (403) when pushing tags to main. This was caused by the org transfer from personal repo to nemarOrg.

Root Cause

The workflow uses secrets.AUTO_TAG_PAT (line 20) to checkout with write access and push tags. After transferring to nemarOrg, the existing PAT likely lost write permissions or the secret was not migrated.

Current Workaround

Tags are created manually: git tag -a "v0.4.0" -m "Release v0.4.0" origin/main && git push origin v0.4.0

Fix

Create a new GitHub fine-grained PAT with:

  • Repository access: nemarOrg/nemar-cli
  • Permissions: Contents: Read and write

Then set it as a repo secret:

gh secret set AUTO_TAG_PAT --repo nemarOrg/nemar-cli

Acceptance Criteria

  • AUTO_TAG_PAT secret configured with correct permissions
  • Auto Tag workflow succeeds on next version bump push to main

Activity

  1. neuromechanist commented on Feb 18, 2026

    @neuromechanist
    ContributorAuthor

    Fixed: AUTO_TAG_PAT recreated, auto-tag workflow succeeded on v0.6.0 push

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions