question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Problem setting git username/email with GH_PAT only

See original GitHub issue

🐞 Describe the bug

Our sync action stopped working ~5 days ago (seemingly after this was merged - https://github.com/BetaHuhn/repo-file-sync-action/pull/153). Throwing an error that the git username/email was missing.

We’re passing only a GH_PAT, not an installation token.

🖼️ Screenshots

image

See last working run: https://github.com/nextauthjs/next-auth/actions/runs/1809749953 Failing run: https://github.com/nextauthjs/next-auth/actions/runs/1815281481

📋 Additional context

Sync action: https://github.com/nextauthjs/next-auth/blob/main/.github/workflows/sync-example.yml Sync config: https://github.com/nextauthjs/next-auth/blob/main/.github/sync.yml

Issue Analytics

  • State:open
  • Created 2 years ago
  • Reactions:1
  • Comments:11 (5 by maintainers)

github_iconTop GitHub Comments

2reactions
BetaHuhncommented, Feb 14, 2022

Hi @ndom91, thanks for reporting this!

I will take a look and get this fixed asap.

1reaction
ndom91commented, Feb 14, 2022

I can’t seem to reproduce your issue. I tried running the action with only the GH_PAT and it is working without any errors (see the test run).

Could you enable the step debug logging by setting the ACTIONS_STEP_DEBUG secret to true and try again? It should print that it is setting the git username and email.

Thanks for taking a look! We’ll give that a try and get back to you.

Cc: @balazsorban44

Read more comments on GitHub >

github_iconTop Results From Across the Web

Validation error, cannot edit setting. Please enter a valid email ...
Please enter a valid email address - Getting this Warning Message while making any changes, Updates and Edits in Ghost admin settings page....
Read more >
git pushes with wrong user from terminal - Stack Overflow
NB: GitHub will still identify your commit based on the email only. ... we get the error of type ERROR: Permission to user/repo-git.git...
Read more >
Configuration - Adapt your publication to suit your needs - Ghost
This article explains how to setup your mail config, as well as walk you ... you can create a special configuration file that...
Read more >
Deleting a user account - GitLab Documentation
Delete user to delete only the user but maintain their associated records. ... these records are moved to a system-wide user with the...
Read more >
Configuring Ghost - Core Concepts - Jolylai
This article explains how to setup your mail config, as well as walk you through all of the available config options. Custom configuration...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found