diff --git a/.github/CODEOWNERS b/.github/CODEOWNERS new file mode 100644 index 0000000..7a7c12f --- /dev/null +++ b/.github/CODEOWNERS @@ -0,0 +1,5 @@ +# Everything under .github/ decides what runs in CI, on which runner, and with +# which secrets in scope. This repo accepts pull requests from outside +# contributors, so a change here is a change to a trust boundary rather than to +# the product. DevOps reviews it. +.github/ @mindsdb/devops diff --git a/.github/workflows/cla.yml b/.github/workflows/cla.yml index 99dad50..d88cf7f 100644 --- a/.github/workflows/cla.yml +++ b/.github/workflows/cla.yml @@ -1,27 +1,20 @@ name: "MindsDB CLA Assistant" + +permissions: + actions: read + contents: write + pull-requests: write + statuses: write + on: issue_comment: types: [created] pull_request_target: types: [opened,closed,synchronize] -permissions: - actions: write - contents: write - pull-requests: write - statuses: write - jobs: CLAssistant: - runs-on: mdb-dev - steps: - - name: "CLA Assistant" - if: (github.event.comment.body == 'recheck' || github.event.comment.body == 'I have read the CLA Document and I hereby sign the CLA') || github.event_name == 'pull_request_target' - uses: contributor-assistant/github-action@v2.6.1 - env: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} - with: - path-to-signatures: 'assets/contributions-agreement/cla.json' - path-to-document: 'https://github.com/mindsdb/mindsdb/blob/main/assets/contributions-agreement/individual-contributor.md' - branch: 'cla' - allowlist: bot*, ZoranPandovski, torrmal, Stpmax, mindsdbadmin, ea-rus, tmichaeldb, dusvyat, hamishfagg, MinuraPunchihewa, martyna-mindsdb, lucas-koontz + uses: mindsdb/github-actions/.github/workflows/cla-assistant.yml@main + with: + path-to-signatures: 'assets/contributions-agreement/cla.json' + path-to-document: 'https://github.com/mindsdb/mindshub/blob/main/assets/contributions-agreement/individual-contributor.md'