@@ -27,27 +27,34 @@ jobs:
2727 issues : write
2828 pull-requests : write
2929 models : read
30+ contents : read
3031 steps :
3132 - uses : actions/checkout@v4
3233 - uses : github/ai-spam-guard
3334 with :
3435 token : ${{ secrets.GITHUB_TOKEN }}
3536 spam-label : ' spam'
3637 ai-label : ' ai-generated'
38+ minimize-detected-comments : true
3739` ` `
3840
3941### Configuration
4042
41- | Input | Description | Default | Required |
42- | ------------ | ------------------------------------------------------ | --------------------- | -------- |
43- | ` token` | GitHub token with issues and pull-requests permissions | `${{ github.token }}` | No |
44- | `spam-label` | Label to add when generic spam is detected | `spam` | No |
45- | `ai-label` | Label to add when AI-generated content is detected | `ai-generated` | No |
43+ | Input | Description | Default | Required |
44+ | ---------------------------- | ------------------------------------------------------ | --------------------- | -------- |
45+ | ` token` | GitHub token with issues and pull-requests permissions | `${{ github.token }}` | No |
46+ | `spam-label` | Label to add when generic spam is detected | `spam` | No |
47+ | `ai-label` | Label to add when AI-generated content is detected | `ai-generated` | No |
48+ | `minimize-detected-comments` | Whether to minimize comments detected as spam | `true` | No |
4649
47- # ## Environment Variables
50+ # ## Inference
4851
49- The action no longer requires external API keys - it uses the built-in GitHub
50- token with `models : read` permission to access GitHub Models.
52+ The action does not require any external API keys for inference - it uses the
53+ built-in GitHub token with `models : read` permission to access GitHub Models.
54+
55+ Every GitHub user has Github Models inference for free, but if you're running
56+ into rate limiting issues you can choose to
57+ [opt in to paid usage](https://docs.github.com/en/billing/managing-billing-for-your-products/about-billing-for-github-models).
5158
5259# # Detection Prompts
5360
0 commit comments