From 5c4f79eb362e1dd26e5ab72f197e24c3ba2dc452 Mon Sep 17 00:00:00 2001 From: Xandre V <44826516+seisvelas@users.noreply.github.com> Date: Tue, 18 May 2021 00:07:32 -0600 Subject: [PATCH] Add Github Action to monitor for email addresses in comments We want to be aware of accidentally posting users' email addresses in comments. This GitHub action monitors for that. This has already been tested on https://github.com/FlowCrypt/node-subprocess, where it works successfully. --- .github/workflows/main.yml | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 .github/workflows/main.yml diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml new file mode 100644 index 000000000..eab6a077e --- /dev/null +++ b/.github/workflows/main.yml @@ -0,0 +1,17 @@ +on: + issue_comment: + types: [created, edited] + issues: + types: [opened, edited] +jobs: + find_emails: + runs-on: ubuntu-latest + name: Check for emails in issue comments + steps: + - name: Checkout + uses: actions/checkout@v2 + - name: Scan comment + id: scan + uses: seisvelas/comment-email-address-alerts@v8 + with: + repo-token: ${{ secrets.GITHUB_TOKEN }}