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.

Support GITHUB_TOKEN provided by GitHub Actions

See original GitHub issue
  • Version: 21.2.0
  • Target: macOS

I’m attempting to build an Electron app using GitHub Actions. A GITHUB_TOKEN is provided which could possibly be used instead of creating a personal access token.

- name: Publish release
  run: npm run release
  env:
    GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}

However, the following error occurs:

Error: GitHub Personal Access Token (“***”) contains invalid characters, please check env “GH_TOKEN” at new GitHubPublisher (/Users/runner/runners/2.157.0/work/tailboard-electron/tailboard-electron/node_modules/electron-publish/src/gitHubPublisher.ts:53:15)

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Reactions:2
  • Comments:10 (2 by maintainers)

github_iconTop GitHub Comments

3reactions
samuelmeulicommented, Nov 30, 2019

This is still happening with v21.2.0 (GitHub Actions on Ubuntu):

  ⨯ GitHub Personal Access Token ("***") contains invalid characters, please check env "GH_TOKEN"
1reaction
samuelmeulicommented, Dec 2, 2019

Ah, I see, the version that fixes this issue is not marked as stable yet, which is why it’s not in my project. Running yarn add --dev electron-builder@^22.0.0 to get the beta should fix this then.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Automatic token authentication - GitHub Docs
Important: An action can access the GITHUB_TOKEN through the github.token context even if the workflow does not explicitly pass the GITHUB_TOKEN to the ......
Read more >
The GITHUB_TOKEN in GitHub Actions: How it Works ...
The GITHUB_TOKEN is a special access token that you can use to authenticate on behalf of GitHub Actions. GitHub automatically creates a ...
Read more >
GitHub Actions: Control permissions for GITHUB_TOKEN
A new permissions key supported at the workflow and job level enables you to specify which permissions you want for the token. Any...
Read more >
The ultimate guide to GitHub Actions authentication
A look at `GITHUB_TOKEN`, Personal Access Tokens and authenticating with GitHub Applications for GitHub Actions. Pros, cons and real world ...
Read more >
Using Pulumi GitHub Actions | CI/CD
Pulumi's Github Actions help you deploy apps and infrastructure to your cloud ... the full power of the Pulumi CLI is available to...
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