Cut the escalation path from CI to AWS.

Trace a GitHub agentic workflow through OIDC into AWS IAM. Review the source patch and check that your recorded calls, tools and network domains still work.

Modeled paths3 before cut, 0 after cut
Real Scan modeled pathsci-triage connects to github-deploy through candidate OIDC trust. github-deploy and ai-agent reach separate IAM rules. The strict cut blocks the two rule links and preserves candidate trust and observed calls.WorkflowIAM roleRuleCandidate OIDCs3:GetObjectbedrock:InvokeModelci-triagegithub-deployai-agentiam-001lambda-001
Candidate trustEscalationPreserved usage

Quickstart

curlFrom the target repository, add the PR workflow. It writes .github/workflows/leastcut-pr.yml.

mkdir -p .github/workflows && curl -fsSL https://raw.githubusercontent.com/Shivam007kumar/LeastCut/main/examples/leastcut-pr.yml -o .github/workflows/leastcut-pr.yml
PR workflow

Where to use LeastCut

Trace agentic CI through OIDC

Follow a gh-aw workflow with id-token: write to a trusting AWS role. Inspect the escalation rule it can reach and check the workflow’s repository and ref.

Review Terraform IAM before merge

Supply resolved infrastructure with --plan-json and matching Terraform source with --tf-dir. Review the --strict cut in your pull request.

Give Bedrock spend an owner

Find principals allowed to use Bedrock or AgentCore that lack an email-format owner tag. Review the proposed owner for spend attribution.

Triage repositories in bulk

Use bulk-scan to compare findings and parse errors across projects. Open the JSON results to choose which repository to review first.

From scan to PR

  1. Discover

    Read Terraform, IAM exports and workflow definitions.

  2. Trace

    Follow trust and permissions to an escalation rule.

  3. Strict Cut

    Propose targeted denies and trim unused workflow access.

  4. Verify

    Recheck paths and replay the supplied usage.

  5. PR Review

    Inspect the patch and the review in the Actions job summary.

Real Scan
Loading Real Scan…

The workflow comments on eligible same-repository PRs. Fork and Dependabot PRs use the job summary. Operator guide

Graph explorer

Switch fixtures, inspect a role and read the patch that closed its modeled paths.

EscalationCandidate OIDCObserved usageSevered

Loading fixture…

Verified scale