Comments (10)
@thisguychris Let me know if you still have issues and if you run into any rate limit problems. Thanks for reporting.
from secrets-sync-action.
Just a side question, how do you deal with potential one-offs, like if you want to sync ENV_X to only selected repositories?
I would just have another job or step in the workflow and specify the regex as ^org/repository$
for a single respository.
In my use case I have repositories named by <org>/<language>-<api>
. So for example if I need to sync some JavaScript specific secrets, I have an action for all the repos with something like: ^myorg/js-.*$
.
from secrets-sync-action.
@jpoehnelt nevermind seems like I was using 1.0.0, I'll open up a PR, the example was pointing to 1.0.0
from secrets-sync-action.
@jpoehnelt okay, now it doesn't find my own repo
To be clear, my org has 581 repositories, and I have 191 from my account. I checked the debug statement, I'm only seeing 259 repositories from my org. the rest are from other organizations, but none where I own.
from secrets-sync-action.
I'm only seeing 259 repositories from my org. the rest are from other organizations, but none where I own.
It only lists repositories where you(or the bot token) are an owner or collaborator. It does not include if you are just a member. See https://developer.github.com/v3/repos/#list-repositories-for-the-authenticated-user. Could it be that?
from secrets-sync-action.
hi @jpoehnelt, Thank you for merging.
for example:
https://github.com/thisguychris/dotfiles
This repo is not listed however I write the regex under the repositories section.
I also have administrative privileges on my organization, however, I can only see half of the repositories?
Also, I haven't dig in the code, but how do you handle pagination, are you fetching on the first hundred or do you traverse to all repositories?
from secrets-sync-action.
@thisguychris see #6 for hardcoded limit. I'll remove this.
from secrets-sync-action.
The release is available on GitHub release
Your semantic-release bot
from secrets-sync-action.
hey @jpoehnelt! Thank you for issuing a fix so fast. So far as with my testing, it is now able to see all my repositories on all organizations and under my username.
I'll report soon if I hit some API limits, but this is far better workflow than the one I'm using. The ability to use regex is brilliant! I could potentially re-write the repo with some suffix like -secrets or something, and I'll just run this and it'll sync. Beautiful!
Just a side question, how do you deal with potential one-offs, like if you want to sync ENV_X to only selected repositories?
from secrets-sync-action.
That's brilliant, silly me
from secrets-sync-action.
Related Issues (20)
- Organization change HOT 4
- [Discussion] Ideas for v2 HOT 8
- [email protected]
- github_token - alternatives to secrets.GITHUB_TOKEN HOT 1
- Sync secrets to all a team's repos
- Sync secrets into repository Environments HOT 2
- Option to sync secrets to Dependabot secrets HOT 3
- Allow specification of private/public repositories only
- Lacking GHES support HOT 1
- if an environment does not exist, the action fails HOT 1
- Usage of this action behind a corporate proxy
- Documentation README.md should include version info HOT 1
- Documentation README.md should fix a sample value for GITHUB_TOKEN HOT 1
- Action takes a very long time to execute with no status when an user has access to hundreds of repositories HOT 1
- Specify that new fine-grained tokens cannot be used for private repos HOT 1
- Action Gives Deprecation Warning HOT 4
- How to sync environment and repository secrets that have the same name?
- feature: sync secrets to Azure DevOps instances HOT 1
- docs: no classic token needed anymore HOT 1
- Open to contributions? HOT 5
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from secrets-sync-action.