Skip to content

Use GITHUB_TOKEN in workflow. - #14

Merged
scotchneat merged 1 commit into
mainfrom
asb/action-token
Jul 7, 2022
Merged

scotchneat merged 1 commit into
mainfrom
asb/action-token

Conversation

@andrewsomething

Copy link
Copy Markdown
Member

Currently the action fails on the step for opening a PR:

fatal: could not read Username for 'https://github.com': No such device or address
Error: The process '/usr/bin/git' failed with exit code 128

https://github.com/digitalocean/digitalocean-client-python/runs/7221459241?check_suite_focus=true#step:7:47

According to peter-evans/create-pull-request#651, that error suggests that the provided token does not have access to the repository. The builtin GITHUB_TOKEN one should have the permissions we need.

Currently the action fails on the step for opening a PR:

```
  fatal: could not read Username for 'https://github.com': No such device or address
44
  Error: The process '/usr/bin/git' failed with exit code 128
```

https://github.com/digitalocean/digitalocean-client-python/runs/7221459241?check_suite_focus=true#step:7:47

According to peter-evans/create-pull-request#651, that error suggests that the provided token does not have access to the repository. The builtin `GITHUB_TOKEN` one should have the permissions we need.
@andrewsomething
andrewsomething requested a review from a team July 6, 2022 20:19

@scotchneat scotchneat left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍🏽

@scotchneat
scotchneat merged commit b027398 into main Jul 7, 2022
@scotchneat
scotchneat deleted the asb/action-token branch July 7, 2022 15:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants