Skip to content

Avoid common App Store and Google Play rejections. Open playbook and pre-submission guard with 117 documented rejection patterns and fixes, privacy manifest and Data safety checks, 95 tracked deadlines (EU AI Act, DSA, COPPA, age laws), and a skill for AI coding agents.

ci: block tool authors and attribution lines (#1007)

Mirza Iqbalad7963f6c6b4
diff --git a/.github/scripts/no-ai-attribution.sh b/.github/scripts/no-ai-attribution.sh
new file mode 100644
index 0000000..988e27f
--- /dev/null
+++ b/.github/scripts/no-ai-attribution.sh
@@ -0,0 +1,15 @@
+#!/usr/bin/env bash
+# Fails if any commit in base..head has an AI author, committer or attribution line.
+set -uo pipefail
+base="${1:-}"; head="${2:-HEAD}"
+if [ -z "$base" ] || [ "$base" = "0000000000000000000000000000000000000000" ]; then range="$head"; else range="$base..$head"; fi
+pattern='claude|anthropic|openai|chatgpt|copilot|cursor|codex|gemini|devin'
+bad=0
+while IFS= read -r sha; do
+ who="$(git log -1 --format='%an <%ae>%n%cn <%ce>' "$sha")"
+ msg="$(git log -1 --format='%B' "$sha")"
+ if printf '%s\n' "$who" | grep -qiE "$pattern"; then echo "::error::$sha has an AI author or committer"; bad=1; fi
+ if printf '%s\n' "$msg" | grep -qiE "^(co-authored-by|claude-session|generated-with).*($pattern)|claude\.ai/code|noreply@anthropic\.com"; then echo "::error::$sha has an AI attribution line"; bad=1; fi
+done < <(git rev-list "$range")
+[ "$bad" -eq 0 ] && echo "No AI attribution found."
+exit "$bad"
diff --git a/.github/workflows/no-ai-attribution.yml b/.github/workflows/no-ai-attribution.yml
new file mode 100644
index 0000000..df6397d
--- /dev/null
+++ b/.github/workflows/no-ai-attribution.yml
@@ -0,0 +1,19 @@
+name: no-ai-attribution
+
+on:
+ pull_request:
+ push:
+ branches: [main]
+
+permissions:
+ contents: read
+
+jobs:
+ check:
+ runs-on: ubuntu-latest
+ steps:
+ - uses: actions/checkout@08eba0b27e820071cde6df949e0beb9ba4906955 # v4.3.0
+ with:
+ fetch-depth: 0
+ - name: Reject AI authors and attribution lines
+ run: bash .github/scripts/no-ai-attribution.sh "${{ github.event.pull_request.base.sha || github.event.before }}" "${{ github.sha }}"