Skip to content

Anti Phishing

Anti Phishing #39

Workflow file for this run

name: Anti Phishing
on:
issue_comment:
types: [ created ]
permissions:
issues: write
jobs:
anti_phishing:
name: Anti Phishing
runs-on: ubuntu-latest
if: ${{ contains(github.event.comment.body, 'gcc') || contains(github.event.comment.body, 'mediafire') }}
steps:
- name: Phishing comment remover
env:
GH_TOKEN: ${{ secrets.GH_TOKEN }}
uses: actions/github-script@v6
with:
script: |
github.rest.issues.deleteComment({
owner: context.repo.owner,
repo: context.repo.repo,
comment_id: context.payload.comment.id,
})