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

Refusing to allow a Personal Access Token to create or update workflow #334

Closed
1046102779 opened this issue Dec 13, 2022 · 6 comments
Closed
Assignees

Comments

@1046102779
Copy link

1046102779 commented Dec 13, 2022

image

image

Reasons for changing golang version:

https://github.com/line/line-bot-sdk-go/actions/runs/3682070924/jobs/6229371356

# github.com/stretchr/testify/assert
Error: ../../../go/pkg/mod/github.com/stretchr/testify@v1.8.1/assert/assertions.go:1798:5: undefined: errors.Is
Error: ../../../go/pkg/mod/github.com/stretchr/testify@v1.8.1/assert/assertions.go:1821:6: undefined: errors.Is
Error: ../../../go/pkg/mod/github.com/stretchr/testify@v1.8.1/assert/assertions.go:[18](https://github.com/line/line-bot-sdk-go/actions/runs/3682070924/jobs/6229371356#step:5:19)44:5: undefined: errors.As
Error: ../../../go/pkg/mod/github.com/stretchr/testify@v1.8.1/assert/assertions.go:1861:7: undefined: errors.Unwrap
Error: ../../../go/pkg/mod/github.com/stretchr/testify@v1.8.1/assert/assertions.go:1865:7: undefined: errors.Unwrap
FAIL	github.com/line/line-bot-sdk-go/v7/linebot [build failed]
note: module requires Go 1.13
Error: Process completed with exit code 1.

cc @sugyan @kkdai @clsung.

@kkdai
Copy link
Member

kkdai commented Dec 13, 2022

Hi @1046102779
Would you please provide a PR for this? Thank you.

@1046102779
Copy link
Author

1046102779 commented Dec 13, 2022

Hi @1046102779 Would you please provide a PR for this? Thank you.

To https://github.com/1046102779/line-bot-sdk-go.git
 ! [remote rejected] workflow/upgrade-go -> workflow/upgrade-go (refusing to allow a Pers
onal Access Token to create or update workflow `.github/workflows/go.yml` without `workfl
ow` scope)
error: 推送一些引用到 'https://github.com/1046102779/line-bot-sdk-go.git' 失败

I hasn't permission to commit PR in workflow scope.

@kkdai kkdai self-assigned this Dec 13, 2022
@kkdai
Copy link
Member

kkdai commented Dec 13, 2022

Oh? ok, I will take over this one. :)

@kkdai
Copy link
Member

kkdai commented Dec 22, 2022

@1046102779
It works well in this PR, could you check again? https://github.com/line/line-bot-sdk-go/actions/runs/3682332524

@1046102779
Copy link
Author

@1046102779 It works well in this PR, could you check again? https://github.com/line/line-bot-sdk-go/actions/runs/3682332524

Because I am removing the unit test package(github.com/stretchr/testify@v1.8.1) in this PR. the testify package is very popular.

I think the unit test in the current line go-sdk is not well written, you can replace it with the assert package.

Copy link
Contributor

This issue was closed because it has been inactive for 14 days.

@github-actions github-actions bot closed this as not planned Won't fix, can't repro, duplicate, stale Nov 16, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants