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:
- Created 4 years ago
- Reactions:2
- Comments:10 (2 by maintainers)
Top 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 >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
This is still happening with v21.2.0 (GitHub Actions on Ubuntu):
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.