File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -2,9 +2,9 @@ name: Test Workflows
22
33on :
44 pull_request :
5- branches : [ main ]
5+ branches : [main]
66 push :
7- branches : [ main ]
7+ branches : [main]
88
99jobs :
1010 yaml-lint :
@@ -72,13 +72,11 @@ jobs:
7272 for file in .github/workflows/*.yml .github/workflows/*.yaml; do
7373 if [ -f "$file" ] && grep -q "workflow_call:" "$file"; then
7474 echo "Validating reusable workflow secrets in $file"
75-
7675 # Check if workflow uses secrets but doesn't declare them
7776 if grep -q "secrets\." "$file" && ! grep -q "secrets:" "$file"; then
7877 echo "ERROR: $file uses secrets but doesn't declare them in workflow_call"
7978 exit 1
8079 fi
81-
8280 # Check for required ANTHROPIC_API_KEY if Claude CLI is used
8381 if grep -q "claude\|anthropic" "$file" && ! grep -q "ANTHROPIC_API_KEY" "$file"; then
8482 echo "WARNING: $file appears to use Claude but doesn't require ANTHROPIC_API_KEY secret"
You can’t perform that action at this time.
0 commit comments