diff --git a/.github/VOUCHED.td b/.github/VOUCHED.td new file mode 100644 index 000000000..f230141ba --- /dev/null +++ b/.github/VOUCHED.td @@ -0,0 +1,15 @@ +# Vouched contributors for kernels +# One GitHub handle per line, sorted alphabetically. +# Denounce with a leading hyphen: -username reason +ArthurZucker +LysandreJik +NickCao +YangKai0616 +burtenshaw +danieldk +drbh +kaixuanliu +mfuntowicz +sayakpaul +shadeMe +sywangyi diff --git a/.github/pull_request_template.md b/.github/pull_request_template.md index 46d3e96d7..e28d70d0d 100644 --- a/.github/pull_request_template.md +++ b/.github/pull_request_template.md @@ -2,7 +2,11 @@ > **New contributors:** Please open or comment on an issue **before** submitting a > PR to discuss the change you'd like to make. This helps us align on approach and -> avoids wasted effort on changes we may not be able to merge. +> avoids wasted effort on changes we may not be able to merge. Please only create +> a PR once one of the project maintainers agrees on your outlined approach. +> +> PRs of contributors who are not vouched for are automatically closed. You can +> become a vouched contributor by discussing a change first as outlined above. ## Related issue diff --git a/.github/workflows/security-audit.yml b/.github/workflows/security-audit.yml index bf3349fee..adcde3f6c 100644 --- a/.github/workflows/security-audit.yml +++ b/.github/workflows/security-audit.yml @@ -14,7 +14,7 @@ jobs: with: fetch-depth: 0 - - uses: actions/setup-node@49933ea5288caeca8642d1e84afbd3f7d6820020 # v4 + - uses: actions/setup-node@49933ea5288caeca8642d1e84afbd3f7d6820020 # v4.4.0 with: node-version: "20" diff --git a/.github/workflows/vouch-check-pr.yaml b/.github/workflows/vouch-check-pr.yaml new file mode 100644 index 000000000..56943e1d1 --- /dev/null +++ b/.github/workflows/vouch-check-pr.yaml @@ -0,0 +1,20 @@ +name: "Check PR author is vouched" +on: + pull_request_target: + types: [opened, reopened] + +permissions: + contents: read + pull-requests: write + +jobs: + check: + name: Check PR author + runs-on: ubuntu-latest + steps: + - uses: mitchellh/vouch/action/check-pr@c6d80ead49839655b61b422700b7a3bc9d0804a9 # v1.4.2 + with: + pr-number: ${{ github.event.pull_request.number }} + auto-close: true + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}