-
Notifications
You must be signed in to change notification settings - Fork 21
43 lines (34 loc) · 979 Bytes
/
check-vcr-secrets.yml
File metadata and controls
43 lines (34 loc) · 979 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
name: Check VCR Secrets
# Scan VCR cassettes for leaked secrets when they change.
# Uses Claude for thorough analysis of potential credential leaks.
on:
pull_request:
paths:
- "tests/_vcr/**"
push:
branches: ["main"]
paths:
- "tests/_vcr/**"
workflow_dispatch: # Allow manual trigger
permissions:
contents: read
jobs:
check-secrets:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Install uv
uses: astral-sh/setup-uv@v3
- name: Set up Python
run: uv python install 3.12
- name: Install the project
run: uv sync --python 3.12 --all-extras
- name: Scan for secrets with Claude
env:
ANTHROPIC_API_KEY: ${{ secrets.ANTHROPIC_API_KEY }}
run: |
if [ -z "$ANTHROPIC_API_KEY" ]; then
echo "::warning::ANTHROPIC_API_KEY not set, skipping secret scan"
exit 0
fi
make check-vcr-secrets