microcks / .github

Location of all reusable community health files
6 stars 19 forks source link

Sync files (mainly MD) from .github to other repos #16

Open yada opened 4 months ago

yada commented 4 months ago

Reason/Context

We need to use the .github repo as our single source of truth for all the community health files we would generally have to duplicate in each (or multiple) repository. All community contributions on these files (PR) will be accepted in this repo (.github) and synced to the others; no update on the destination repo will be allowed.

Warning: any new files (new creation) must be added to the exclusion regex of each repo/workflow auto-build process, ex: https://github.com/microcks/microcks/blob/master/.github/workflows/build-verify.yml

Description

The current files concerned are:

⚠️ All of them need to be first added to the exclusion regex of each repo/workflow auto-build process ⚠️

Implementation ideas

Sync for each file proposition is:

Ideally, the sync process needs to be fully automated using GitHub actions:

yada commented 4 months ago

List of tasks to perform and take care of in order of priority and execution:

yada commented 4 months ago

By the way, we should add the LICENSE file (Apache License 2.0) to this repo so we can copy it (sync) to the others. Ex: sync to https://github.com/microcks/community

yada commented 3 months ago

GitHub action that can help from our AsyncAPI friends: https://github.com/derberg/manage-files-in-multiple-repositories?tab=readme-ov-file

lbroudoux commented 2 months ago

I think the first step is to define the different kinds of repos we have under the Microcks organization. As those different kinds of repos don't have the same licensing or security scanning requirements, this could help us putting the right effot as the right place.

I see at least 4 different categories of repositories:

At first, I was wondering if repos containing ecosystem plugins (like Jenkins plugin, Backstage plugin, etc...) had to be considered differently but it's still components we're delivering for and that targets production usage. So it fits in the 1st category.

What do you think? Do you agree with this way of sorting things?

Now what is the impact of this categorization? I see we have different needs and constraints depending on the type of repo.

Needs/Constraints Β Delivered components Demonstrations Documentation Community resources
Apache 2.0 License Β βœ… βœ…
Licence Scanning Β βœ…
Security Scanning Β βœ…
Security Infos Β βœ… βœ…
QA Scanning Β βœ…
MIT License Β  βœ… βœ…
Infos in README βœ… βœ… βœ… βœ…
Dependency Policy βœ… βœ… βœ… βœ…
Codeowners βœ… βœ… βœ… βœ…
Maintainers βœ… βœ… βœ… βœ…
Contribution guide βœ… βœ… βœ…
Staling of issues βœ…
Governance infos βœ… βœ… βœ…
Changelog infos βœ…
Roadmap infos βœ…
Adopters & Backers infos βœ… βœ…
Code of conduct βœ… βœ… βœ… βœ…
Welcome new users βœ… βœ… βœ… βœ…
CLO Monitor (*1)/LFX Insights presence βœ… with code and community checks βœ… with docs checks

In addition, putting Security, License or QA Scanning in place has some consequences as we also need to set up some additiional tools like Sonar (QA & Security), FOSSA (License) and Quay.io/Docker Scout (Security of container image).

Also, all the files mentioned above cannot be synced as-is. Typically:

(*1): See, CLOMonitor checks description: https://clomonitor.io/docs/topics/checks/

yada commented 2 months ago

Make sense and looks good to me πŸ‘

lbroudoux commented 2 months ago

Comprehensive list in different repos categories (as of today πŸ˜‰)

Delivered components

Demonstrations

Documentation

Community resources

yada commented 2 months ago

I think we also need to include some workflow, ex: welcome-new-users.yml can be copied to all repos @lbroudoux agree?

yada commented 2 months ago

As a test and first workflow for this issue, let's start by replicating CODE_OF_CONDUCT.md to all repos:

yada commented 2 months ago

CLOMonitor data source update (add repos and checks as described above) has been requested; see: https://github.com/cncf/clomonitor/pull/1571

yada commented 1 month ago

Sync and merged in all repos as described above done βœ… for files:

yada commented 1 month ago

https://github.com/microcks/.github/issues/16#issuecomment-2298916186 updated for #22

yada commented 1 month ago

https://github.com/microcks/.github/issues/16#issuecomment-2298916186 updated for #21

lbroudoux commented 3 weeks ago

A suggestion: we should update some PR descriptions that are not 100% correct according to semantic commit messages practices.

Typically, synchronization of files like ADOPTERS, BACKERS, GOVERNANCE, CODE_OF_CONDUCT, etc... should be marked as chore: update ADOPTERS.md from global .github repo and not not ci: ....

Stale issues management and welcoming new users tasks should be kept as ci: ...

yada commented 3 weeks ago

@lbroudoux Good point +1