scan-plugins.yml 982 B

1234567891011121314151617181920212223242526272829303132333435
  1. name: Scan Plugins
  2. on:
  3. pull_request:
  4. paths:
  5. - '.claude-plugin/marketplace.json'
  6. - '.github/policy/**'
  7. workflow_dispatch:
  8. inputs:
  9. scan_all:
  10. description: Scan every external entry (full re-review). Slow.
  11. type: boolean
  12. default: false
  13. permissions:
  14. contents: read
  15. jobs:
  16. scan:
  17. runs-on: ubuntu-latest
  18. timeout-minutes: 360
  19. steps:
  20. - uses: actions/checkout@v4
  21. with:
  22. fetch-depth: 0
  23. # Blocking: policy failures fail the job. Loosen by removing
  24. # fail-on-findings if the false-positive rate is too high.
  25. - uses: anthropics/claude-plugins-community/.github/actions/scan-plugins@b277757588871fe55b2620de8c6dfda470e2e9d8
  26. with:
  27. anthropic-api-key: ${{ secrets.ANTHROPIC_API_KEY }}
  28. policy-prompt: .github/policy/prompt.md
  29. fail-on-findings: "true"
  30. scan-all-external: ${{ inputs.scan_all || 'false' }}
  31. claude-cli-version: latest