name: verify-csp
Scan popup/popup.html and popup/popup.js for Alpine.js CSP compliance violations.
The extension runs under a Content Security Policy that forbids JavaScript evaluation, so Alpine.js attributes must never contain inline expressions.
Check for these violation patterns in HTML attributes (x-show, x-if, x-text, x-bind:*, :attr, @event, etc.):
===, !==, ==, !=, >, <foo(), this.bar()condition ? a : ba && b, a || bWhat is allowed:
x-show="isOpen", :class="activeClass"$el, $refs, $store access without calling methodsx-show="!isOpen" (acceptable)For each violation found, report:
Alpine.data() as a computed property or method, then binding the property name in the templateIf no violations are found, confirm the popup is CSP-compliant.