Unify ospo-actions configuration
Currently, the various ospo actions are completely independent. But users who adopt several of them end up restating a lot of configuration for them which would ideally be centralized. As concrete examples, setting:
- a list of repositories to ignore from reporting, or conversely a list of ones to only report
- whether to execute in dry run mode or not
- output formats / destinations that are not the default
- ... probably others ...
would be better served by a common configuration file that all of the actions know to look for.
@ahpook
I like this idea.
A thought and a couple questions:
Thought:
- a central
~/.githubospo(not married to the name) file that has all the contents from each repositories.env-sampleor README environment variables (some are not in the samples currently) in there. Like asked above, if exists, it will be used and then fall back to repo directory.envfile.
Questions:
- you mean this from a contributor's perspective, correct? When a developer is working on a pull request locally each action could look for the "centralized" environment variable file and use it if it exists, otherwise fall back to the repo's
.envfile. I ask this because when the actions run they will be told where the environment variables are located, usually in repo secrets (e.g,${{ secrets.GH_APP_ID }}) - do we want to do one or the other regarding parsing (either
~/.githubospoorrepo_dir/.env)? Or do we parse from both. I prefer the former, easier to manage. Otherwise you have to set expectation on presidence re: overwrites (i.e,GH_APP_IDis in~/.githubospoand also inrepo_dir/.env, which has presidence?)
I'm also looking at possibly doing a composite GitHub action for env handling https://docs.github.com/en/actions/creating-actions/creating-a-composite-action
https://docs.github.com/en/actions/creating-actions/creating-a-composite-action
I'd definitely be in support of this!