Skip to content

Unify ospo-actions configuration #74

Description

@ahpook

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.

Activity

  1. converted this from a draft issue on Mar 18, 2024
  2. jmeridth commented on Mar 20, 2024

    @jmeridth
    Contributor

    @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-sample or 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 .env file.

    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 .env file. 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 ~/.githubospo or repo_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_ID is in ~/.githubospo and also in repo_dir/.env, which has presidence?)
  3. jmeridth commented on Mar 20, 2024

    @jmeridth
    Contributor

    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

  4. lelia commented on Apr 5, 2024

    @lelia
  5. danytorres8080oo-commits commented on Oct 3, 2025

    @danytorres8080oo-commits
  6. danytorres8080oo-commits commented on Oct 3, 2025

    @danytorres8080oo-commits
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or requestospo-actionsIssues relating to the OSPO Actions

    Type

    No type

    Projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions