sue445 / go-mod-tidy-pr Goto Github PK
View Code? Open in Web Editor NEWRun `go mod tidy` and create PullRequest on GitHub Actions
Home Page: https://github.com/marketplace/actions/go-mod-tidy-pr
License: MIT License
Run `go mod tidy` and create PullRequest on GitHub Actions
Home Page: https://github.com/marketplace/actions/go-mod-tidy-pr
License: MIT License
Hi, and thank you for this Action! It fits perfectly with what I was looking for.
I have however hit an issue when using it in one private repo which has a dependency on another private repo in the same org:
go: github.com/TykTechnologies/<private module>@<version>: invalid version: git fetch -f origin refs/heads/*:refs/heads/* refs/tags/*:refs/tags/* in /github/home/go/pkg/mod/cache/vcs/d669206005d3cc88f2b9b745ef47b1d7e1b0ae1cdacebe364d6415667e43fa3c: exit status 128:
fatal: could not read Username for 'https://github.com': terminal prompts disabled
I am providing a token with appropriate permissions through the github_token
parameter of the Action, so that's not a problem.
I think it needs something like:
git config --global url."https://$TOKEN:[email protected]".insteadOf "https://github.com"
or
echo "https://$TOKEN:[email protected]" >> ~/.git-credentials
git config --global credential.helper store
in the entrypoint.sh
.
In repos where there is a vendor directory, we'd like to be able to run go mod vendor
as well as go mod tidy
.
We are still using go v1.13.4 in our code and it seems to cause some issues when go-mod-tidy-pr
is running on the latest v1.14 version.
Here is the error message:
go: errors parsing go.mod:
/github/workspace/go/src/ddb/go.mod:3: usage: go 1.23
It would be great if we can make the go version configurable. Thank you!
timezone
にAsia/Tokyo
を指定して利用したところ、プルリクエストのタイトルが下記のようになりました。
go mod tidy at Mon May 18 03:04:31 Asia 2020
おそらく、Dockerイメージにzoneinfoが存在していないためではないかと思います。
Line 1 in cabdcb2
It seems git push
is successful, but creating PullRequest is failed...
[go-mod-tidy-20201012070226 40670b8] :put_litter_in_its_place: go mod tidy
1 file changed, 6 insertions(+), 19 deletions(-)
remote:
remote: Create a pull request for 'go-mod-tidy-20201012070226' on GitHub by visiting:
remote: https://github.com/sue445/gcp-secretmanagerenv/pull/new/go-mod-tidy-20201012070226
remote:
To https://github.com/sue445/gcp-secretmanagerenv.git
* [new branch] go-mod-tidy-20201012070226 -> go-mod-tidy-20201012070226
Error creating pull request: Unauthorized (HTTP 401)
Requires authentication
github.com password for sue445 (never stored):
e.g.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.