Workflow Components
ClaudeSec workflow templates share reusable composite actions to reduce duplication and keep policy behavior consistent.
Components
| Component | Path | Purpose |
|---|---|---|
| Token Expiry Gate | .github/actions/token-expiry-gate |
Enforce token expiry window policy before downstream security jobs run |
| Datadog CI Collect | .github/actions/datadog-ci-collect |
Collect and sanitize Datadog CI logs/signals/cases for dashboard artifacts |
Token Expiry Gate Contract
- Action path:
.github/actions/token-expiry-gate - Backing script:
scripts/token-expiry-gate.py - Typical inputs:
providers(github,okta,datadog,slack)strict-providers(true/false)gate-mode(24h/7d/off)- per-provider expiry metadata values
Policy Variables
CLAUDESEC_TOKEN_EXPIRY_GATE_MODECLAUDESEC_TOKEN_EXPIRY_PROVIDERSCLAUDESEC_TOKEN_EXPIRY_STRICT_PROVIDERSGH_TOKEN_EXPIRES_AT,GITHUB_TOKEN_EXPIRES_ATOKTA_OAUTH_TOKEN_EXPIRES_ATDATADOG_TOKEN_EXPIRES_AT,DD_TOKEN_EXPIRES_AT,DD_API_KEY_EXPIRES_ATSLACK_TOKEN_EXPIRES_AT,SLACK_BOT_TOKEN_EXPIRES_ATCLAUDESEC_DD_ARTIFACT_RETENTION_DAYS(used bytemplates/security-scan-suite.ymlDatadog artifact upload, valid range: 1-90)
Datadog CI Collect Contract
- Action path:
.github/actions/datadog-ci-collect - Used by templates:
templates/prowler.ymltemplates/security-scan-suite.yml(conditional)
- Produces sanitized artifacts in
.claudesec-datadog/:datadog-logs-sanitized.jsondatadog-cloud-signals-sanitized.jsondatadog-cases-sanitized.json
- Input keys:
dd-api-key,dd-app-keydd-site,dd-service,dd-envci-pipeline-id,dd-tags
Setup Integration
scripts/setup.sh copies both composite actions and scripts/token-expiry-gate.py to target repositories:
.github/actions/token-expiry-gate/action.yml.github/actions/datadog-ci-collect/action.ymlscripts/token-expiry-gate.py