diff options
Diffstat (limited to '.github/workflows')
| -rw-r--r-- | .github/workflows/scan-plugins.yml | 13 |
1 files changed, 12 insertions, 1 deletions
diff --git a/.github/workflows/scan-plugins.yml b/.github/workflows/scan-plugins.yml index 3d80f204..fc3f5713 100644 --- a/.github/workflows/scan-plugins.yml +++ b/.github/workflows/scan-plugins.yml @@ -4,6 +4,13 @@ on: pull_request: paths: - '.claude-plugin/marketplace.json' + - '.github/policy/**' + workflow_dispatch: + inputs: + scan_all: + description: Scan every external entry (full re-review). Slow. + type: boolean + default: false permissions: contents: read @@ -11,14 +18,18 @@ permissions: jobs: scan: runs-on: ubuntu-latest + timeout-minutes: 360 steps: - uses: actions/checkout@v4 with: fetch-depth: 0 - # Non-blocking by default. To enforce, set fail-on-findings: "true". + # Blocking: policy failures fail the job. Loosen by removing + # fail-on-findings if the false-positive rate is too high. - uses: anthropics/claude-plugins-community/.github/actions/scan-plugins@b277757588871fe55b2620de8c6dfda470e2e9d8 with: anthropic-api-key: ${{ secrets.ANTHROPIC_API_KEY }} policy-prompt: .github/policy/prompt.md + fail-on-findings: "true" + scan-all-external: ${{ inputs.scan_all || 'false' }} claude-cli-version: latest |
