From 25850cb536d4a47aa0c4de13eb191a229b62e08f Mon Sep 17 00:00:00 2001 From: Angelique Date: Tue, 22 Jul 2025 11:50:34 +0200 Subject: [PATCH] Add the github action to check that commit are signed --- .github/workflows/check-verified-commit.yml | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 .github/workflows/check-verified-commit.yml diff --git a/.github/workflows/check-verified-commit.yml b/.github/workflows/check-verified-commit.yml new file mode 100644 index 000000000..f2cdff6ae --- /dev/null +++ b/.github/workflows/check-verified-commit.yml @@ -0,0 +1,19 @@ +name: Check signed commits in PR +on: [pull_request,pull_request_target] +jobs: + check-signed-commits: + name: Check signed commits in PR + runs-on: ubuntu-latest + permissions: + contents: read + pull-requests: write + steps: + - name: Information about how to sign commits see https://docs.github.com/en/authentication/managing-commit-signature-verification/signing-commits + # "with comment" below does not work for forks. + run: | + echo "If you need to sign commits, Please see https://docs.github.com/en/authentication/managing-commit-signature-verification/signing-commits" + - name: Check signed commits in PR on fail see above information. + uses: 1Password/check-signed-commits-action@v1 + with: + comment: | + Thank you for your contribution, but we need you to sign your commits. Please see https://docs.github.com/en/authentication/managing-commit-signature-verification/signing-commits \ No newline at end of file