helaili / github-oidc-auth-app Goto Github PK
View Code? Open in Web Editor NEWAn OIDC client to retrieve a GitHub API scoped token from within an Actions workflow
License: MIT License
An OIDC client to retrieve a GitHub API scoped token from within an Actions workflow
License: MIT License
Parsing error is not reported clearly. Such an error should be more obvious.
We should be able to figure out the installation id from the target org name. That would provide a better experience.
According to https://github.com/helaili/github-oidc-auth-app/blob/main/README.md#credits and verified by reviewing https://github.com/helaili/github-oidc-auth-app/blob/main/jwks.go code has indeed been re-used from https://github.com/github/actions-oidc-gateway-example project that is licensed under MIT license. Per MIT license your project should contain copyright notice of the original as Copyright (c) 2022 GitHub
as well as your own copyright.
I am interested in reusing your project but wanted to make sure it was buttoned up from the legal standpoint. Let me know if a PR would be helpful.
Region currently fluctuates from one deployment to another, which leads to failures
For example to support deployment on Raspberry Pi or Oracle Cloud Free Tier (https://www.oracle.com/cloud/free/).
Let say I want to have a scale minimum to 2 on this service.
The webhook will trigger a cache reloading on 1 instance not the 2.
I see 3 ways resolving this problem:
A dns solution would be like this:
if os.GetEnv("INSTANCES_LIST")!=nil {
context := context.Background()
res, err := net.DefaultResolver.LookupIP(context, "ip", os.GetEnv("INSTANCES_LIST"))
if err != nil {
log.Fatalf("No ip found for the given instance list %s", os.GetEnv("INSTANCES_LIST"), err)
}
for _, ip := range res {
// Call the /resetCache endpoint to reset the cache
_, err := http.Post(fmt.Sprintf("http://%s/resetCache", ip.String()), "application/json", nil)
if err != nil {
log.Fatalf("Instance with IP %s is in error", ip, err)
}
}
}
```
any thought on this ?
Some organizations might want to separate the config file from GitHub to ensure proper separation of concerns. This type of deployment could be an option as others might prefer the repo based experience.
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.