Questions tagged [github-token]

14 questions
33
votes
1 answer

In what ways is an SSH Key different from tokens for git authentication?

I recently started getting notifications about the GitHub deprecation of basic authentication using a password to Git - see their blog post https://github.blog/2020-12-15-token-authentication-requirements-for-git-operations/. In this post, they say…
Callum Wilson
  • 349
  • 1
  • 3
  • 7
1
vote
1 answer

`API_TOKEN_GITHUB` not recognized with `copy_file_to_another_repo_action` GitHub workflow

I am using the copy_file_to_another_repo_action GitHub workflow from dmnemec (https://github.com/dmnemec/copy_file_to_another_repo_action) to push a file from one repo that I own to another repo that I own (here is my workflow). The workflow…
rempsyc
  • 785
  • 5
  • 24
1
vote
2 answers

Github personal access token stops working after the first use

I'm using a personal access token to access Github from the command line, in place of a password when prompted for my username and password. If I make a new access token, it works just fine in place of my password the first time, but if I try to use…
nelazar
  • 19
  • 3
1
vote
1 answer

How can I store Github token with Git Credential Manager on Ubuntu?

With the new Git Credential Manager (GCM) how can I use it to store Github access token on Ubuntu? I have tried to read the usage text and it is not clear how one can store Github token using it.
Amani
  • 16,245
  • 29
  • 103
  • 153
0
votes
1 answer

aws code deploy error 400: The OAuth token used for the GitHub source action exceeds the maximum allowed length of 100 characters

I have created a simple stack to deploy with cdk using typescript. These are my dependencies: { "name": "ec2-cdk", "version": "0.1.0", "bin": { "ec2-cdk": "bin/ec2-cdk.js" }, "scripts": { "build": "tsc", "watch": "tsc -w", …
0
votes
1 answer

Github actions token workflow not set error

Hello everyone I am currently writing a workflow to auto merge when a pull request is made but I am stuck at an error telling me my token is not set more specifically: 2023-02-19T02:09:08.581Z ERROR environment variable GITHUB_TOKEN not set!. I…
0
votes
1 answer

Access github package from github actions services section

With GitHub Actions I'm trying to set up a service that runs a specific image (MySQL preloaded with a database) that I have pushed to ghcr.io however when it runs I get this error: Error response from daemon: denied Warning: Docker pull failed with…
sanderdev
  • 3
  • 3
0
votes
1 answer

How to SSO Authorize Github API generated personal access token

I'm trying to create GitHub personal access tokens programmatically using the endpoint https://github.com/login/oauth/access_token and a GitHub App, following the device flow and code exchange. The creation seems to be working fine and gets a…
dfranca
  • 5,156
  • 2
  • 32
  • 60
0
votes
1 answer

how can I extract repo A's GITHUB_TOKEN in repo B?

Is there a way to extract GITHUB_TOKEN belongs to one repo to another repo in the same organization? I am working on fetching the GitHub limit rate data for repo A by calling the GitHub API. But I cannot simply implement the workflow in that repo A…
Ryan
  • 3
  • 2
0
votes
0 answers

Why pushing to GitHub login with token not working?

I created a token PAT following the documentation, but when I try to login to push repo it keep giving me this login error : Logon failed, use ctrl+c to cancel basic credential prompt. Username for 'https://github.com':…
0
votes
0 answers

Use GITHUB_ACCESS_TOKEN in Jenkins inside docker for authentication

I've followed the solution provided by @biolauri in this post, in using GITHUB_ACCESS_TOKEN in Jenkins inside a docker container. Below is my stage code: stage('Push git tag') { agent { label 'docker' } steps { script { …
jaysonpryde
  • 2,733
  • 11
  • 44
  • 61
0
votes
1 answer

Why am I getting permission denied error when trying to read hasicorp vault in Node JS via github token authentication

The auth method used for the vault in my company's organization is via guthub token. This authentication method has already been used by some of the scala projects in the company. They are successfully able to use the authentication method to read…
Ayesha Iftikhar
  • 1,028
  • 2
  • 11
  • 27
0
votes
1 answer

How to solve git@github.com: Permission denied (Public key) problem?

I was working with git to commit my files and folder to new repository. Everyone time when I was pushing my code it asked for username and password (which is github token for me). To avoid this I read solution on Configuring user and password with…
rajkumawat
  • 25
  • 1
  • 1
  • 5
-2
votes
1 answer

should i push github api token in public repo?

I'm doing technical test for some company and I created github api token and used in fetch function(headers : Authorization) , because without it I exceeded fetch limit(20-30 calls in minute), now I have to push my project in github and what should…