spacehub

surshar / claude-code

Claude Code is an agentic coding tool that lives in your terminal, understands your codebase, and helps you code faster by executing routine tasks, explaining complex code, and handling git workflows - all through natural language commands.

Built by Anthropic · github.com/anthropics

claude-code / .github / workflows / workflow-hardening.yml
23 lines · 648 BRaw
1# Fails when a workflow job that calls Claude lacks its security settings.
2# The rules are in CLAUDE.md, "Security hardening for GitHub Actions".
3name: Security check for workflows that call Claude
4
5on:
6 pull_request:
7 push:
8 branches: [main]
9
10permissions:
11 contents: read
12
13jobs:
14 workflow-hardening:
15 name: Check security settings
16 runs-on: ubuntu-latest
17 timeout-minutes: 5
18 steps:
19 - name: Checkout repository
20 uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4
21
22 - name: Check security settings of workflows that call Claude
23 run: python3 .github/scripts/check_workflow_hardening.py