https://github.com/yt-dlp/sanitize-comment
GitHub Action to sanitize suspicious comments
https://github.com/yt-dlp/sanitize-comment
Last synced: 8 months ago
JSON representation
GitHub Action to sanitize suspicious comments
- Host: GitHub
- URL: https://github.com/yt-dlp/sanitize-comment
- Owner: yt-dlp
- License: unlicense
- Created: 2024-09-03T16:57:14.000Z (about 1 year ago)
- Default Branch: main
- Last Pushed: 2024-11-07T17:40:58.000Z (11 months ago)
- Last Synced: 2025-01-08T11:47:43.751Z (9 months ago)
- Homepage:
- Size: 10.7 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# sanitize-comment
GitHub Action to sanitize suspicious comments## Usage
```yml
name: Sanitize commenton:
issue_comment:
types: [created, edited]permissions:
issues: writejobs:
sanitize-comment:
name: Sanitize comment
if: vars.SANITIZE_COMMENT && !github.event.issue.pull_request
runs-on: ubuntu-latest
steps:
- name: Sanitize comment
uses: yt-dlp/sanitize-comment@v1
```
In the above example, the sanitize-comment action is only triggered if the repository has a `SANITIZE_COMMENT` variable set.
Additionally, the second condition restricts it to run on issues only. It can be removed if you want to sanitize pull request comments as well.