name: Spam Issue Detection on: issues: types: [opened] permissions: contents: none issues: write models: read jobs: issue-spam: runs-on: ubuntu-latest environment: cli-automation steps: - name: Checkout repository uses: actions/checkout@v6 - name: Run spam detection env: GH_TOKEN: ${{ secrets.AUTOMATION_TOKEN }} ISSUE_URL: ${{ github.event.issue.html_url }} run: | ./.github/workflows/scripts/spam-detection/process-issue.sh "$ISSUE_URL" if [[ $? -ne 0 ]]; then echo "error processing issue" exit 1 fi