mirror of
https://github.com/gohugoio/hugo.git
synced 2026-08-24 15:28:54 +00:00
20 lines
676 B
YAML
20 lines
676 B
YAML
name: AI Detection
|
|
on:
|
|
# Use pull_request_target instead of pull_request (we need the secrets.OPENAI_API_KEY to be available for forks)
|
|
pull_request_target:
|
|
types: [opened, reopened, ready_for_review, synchronize]
|
|
permissions:
|
|
contents: read
|
|
pull-requests: write
|
|
jobs:
|
|
detect-ai:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- uses: actions/checkout@93cb6efe18208431cddfb8368fd83d5badbf9bfd # v5.0.1
|
|
- name: AI Watchdog
|
|
uses: bep/ai-watchdog@819bdd4eeb93a21edfd52e018113b3b2c99e5c39 # temporary fork (probably)
|
|
with:
|
|
openai-api-key: ${{ secrets.OPENAI_API_KEY }}
|
|
pr-label: AI Suspect
|
|
fail-when-confident: false
|