scan-plugins.yml 1017 B

123456789101112131415161718192021222324252627282930313233343536
  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@706952a0caebac4024b4be25137ff2faa64e153b
  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. scan-timeout-secs: "900"
  32. claude-cli-version: latest