sommerfeld-io / .github

Special repository with fallback content for all of repos that don't have an actual .github directory
0 stars 0 forks source link

Refactor central management of linter rulesets (the resprctive files like `.yamllint.yml` #3

Closed sebastian-sommerfeld-io closed 1 year ago

sebastian-sommerfeld-io commented 1 year ago

There is no bootstrap script anymore. Somehow make sure linter definitons are synced into all projects. Maybe something siilar to a jarvis module?

Think about this

They should be synced into the repos somehow to avoid different / outdated rules across the repos. Rules should be the same everywhere.

Implementation idea

Based on https://medium.com/@ericchap/how-to-centralize-your-workflow-management-in-github-4ee49283790c

sebastian-sommerfeld-io commented 1 year ago

ADR Memos / input

Token scope

See: https://stackoverflow.com/questions/71068476/accessing-another-repository-with-github-cli-in-github-actions

The GITHUB_TOKEN is scoped only to the triggering repository. If you need to access any resources in other repositories or in other accounts then you need to pass a token with a wider scope to the checkout step. This can be a GitHub App token, a Personal Access Token etc.