Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: processing invalid GITHUB_TOKEN #140

Merged
merged 3 commits into from Oct 1, 2023
Merged

fix: processing invalid GITHUB_TOKEN #140

merged 3 commits into from Oct 1, 2023

Conversation

juev
Copy link
Collaborator

@juev juev commented Oct 1, 2023

  • check versionsSemantic/judgedVersions before processing
  • if we get a 404 code from github when using a token, make a repeat request without a token

Closed: #139

* check versionsSemantic/judgedVersions before processing
* if we get a 404 code from github when using a token, make a repeat request without a token

Closed: #139
@github-actions
Copy link

github-actions bot commented Oct 1, 2023

Summary CoverItUp: kevincobain2000/gobrew

Type master bug/139
coverage 58.8 % 58.2 % -
go-binary-size 5.8k KB 5.8k KB
go-mod-dependencies 32 32
go-sec-issues 6 6
build-time 5 sec 5 sec
unit-test-run-time 68 sec 67 sec -

Generated by Cover It Up.
View full report https://coveritup.app/kevincobain2000/gobrew

badge
badge
badge
badge
badge
badge

@kevincobain2000
Copy link
Owner

That’s cool too. Thanks.

@juev
Copy link
Collaborator Author

juev commented Oct 1, 2023

Slightly corrected the error output

@github-actions
Copy link

github-actions bot commented Oct 1, 2023

Summary CoverItUp: kevincobain2000/gobrew

Type master bug/139
coverage 58.8 % 58.2 % -
go-binary-size 5.8k KB 5.8k KB
go-mod-dependencies 32 32
go-sec-issues 6 6
build-time 5 sec 6 sec +
unit-test-run-time 68 sec 78 sec +

Generated by Cover It Up.
View full report https://coveritup.app/kevincobain2000/gobrew

badge
badge
badge
badge
badge
badge

* use prepared json to take a list of golang versions
* use a single query to take the latest version of gobrew
* now we don't need to use a token in requests
@juev
Copy link
Collaborator Author

juev commented Oct 1, 2023

Now we use GitHub api only in exceptional cases and take only the latest release. As a result, we no longer need to use the token.

@github-actions
Copy link

github-actions bot commented Oct 1, 2023

Summary CoverItUp: kevincobain2000/gobrew

Type master bug/139
coverage 58.8 % 58.1 % -
go-binary-size 5.8k KB 5.8k KB
go-mod-dependencies 32 32
go-sec-issues 6 6
build-time 5 sec 5 sec
unit-test-run-time 68 sec 67 sec -

Generated by Cover It Up.
View full report https://coveritup.app/kevincobain2000/gobrew

badge
badge
badge
badge
badge
badge

@juev juev merged commit f410516 into master Oct 1, 2023
23 checks passed
@juev juev deleted the bug/139 branch October 1, 2023 13:15
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.

judgeVersion panic when GITHUB_TOKEN env is set to an invalid token
2 participants