Skip to content

Overview

Markdown · llms.txt

Tells you why the cloud said no to your federated OIDC token. Give saysno the token your CI job or pod sent and the trust configuration it was checked against: an AWS IAM role trust policy, or Microsoft Entra federated identity credentials. It runs every check the provider makes, prints each as PASS or FAIL with expected and actual values, and says what to change.

AWS answers only Not authorized to perform sts:AssumeRoleWithWebIdentity, and Entra's AADSTS700213 does not say which part of a flexible credential failed. saysno works offline and sends nothing to AWS or Azure.

saysno check on a GitHub Actions token whose sub is in the immutable-ID form: the name-form AWS trust policy fails on sub, saysno says DENIED and prints the pattern to use; with the fixed policy every check passes and the verdict is ALLOWED

The quick start goes from install to one refused and one accepted token. Docs site: https://dyokto.github.io/saysno/.

Terminal window
go install github.com/dyokto/saysno@latest

Binaries for Linux and macOS are on the releases page. Each comes with an SBOM, a cosign signature and build provenance (gh attestation verify <file> -R dyokto/saysno).

Terminal window
saysno check --policy trust.json token.jwt # AWS trust policy
saysno check --policy fic.json token.jwt # Entra federated credential(s)
saysno reverse --policy trust.json --issuer github # what does this policy accept?
saysno decode token.jwt # claims only

A GitHub repository created after 2026-07-15 sends sub in the immutable form. A trust policy written for the name form then stops matching, and saysno says so:

FAIL StringLike token.actions.githubusercontent.com:sub
expected "repo:octo-org/deploy-app:ref:refs/heads/main"
actual "repo:octo-org@1000001/deploy-app@2000002:ref:refs/heads/main"
verdict DENIED no Allow statement matches the token (implicit deny)
likely fix
1. The token's sub uses GitHub's immutable-ID form
...
try: repo:octo-org@1000001/deploy-app@2000002:ref:refs/heads/main

check exits 0 when the token would be allowed, 1 when denied, and 2 when it cannot evaluate.

See CONTRIBUTING.md. Commits need a DCO sign-off.

Do not open a public issue for a vulnerability. Follow SECURITY.md.

Apache-2.0