From 7c653c4f5b5b3dad7314c5a302ac9908bec3099a Mon Sep 17 00:00:00 2001 From: borislavr Date: Wed, 29 Jul 2026 09:01:21 +0000 Subject: [PATCH] chore(ci): update of profanity-filter.yaml workflow Bump profanity-filter version to support words exclusion. Fix for https://github.com/Netcracker/qubership-workflow-hub/issues/865 --- .github/workflows/profanity-filter.yaml | 31 +++++++++++++++++++++++++ 1 file changed, 31 insertions(+) create mode 100644 .github/workflows/profanity-filter.yaml diff --git a/.github/workflows/profanity-filter.yaml b/.github/workflows/profanity-filter.yaml new file mode 100644 index 0000000..b8dedf6 --- /dev/null +++ b/.github/workflows/profanity-filter.yaml @@ -0,0 +1,31 @@ +--- +name: Profanity filter + +on: + issue_comment: + types: [created, edited] + issues: + types: [opened, edited, reopened] + pull_request: + types: [opened, edited, reopened] + +permissions: + issues: write + pull-requests: write + +jobs: + apply-filter: + name: "Apply Profanity Filter" + runs-on: ubuntu-latest + steps: + - name: Scan issue or pull request for profanity + # Conditionally run the step if the actor isn't a bot + if: ${{ github.event.sender.type != 'Bot' }} + uses: IEvangelist/profanity-filter@96fb7c017b3219ea65c6a7ca70e5aed3ce5b4d7d # v13.4.6.2 + id: profanity-filter + with: + token: ${{ secrets.GITHUB_TOKEN }} + # See https://bit.ly/potty-mouth-replacement-strategies + replacement-strategy: middle-asterisk # See Replacement strategy + custom-profane-words-url: https://github.com/Hesham-Elbadawi/list-of-banned-words/raw/refs/heads/master/ru + exclude-profane-words: mongo,robot