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.
Important
saysno is pre-alpha. A check it cannot evaluate is reported as "cannot evaluate", never as allowed. Flags and output may change.
The quick start goes from install to one refused and one accepted token. Docs site: https://dyokto.github.io/saysno/.
go install github.com/dyokto/saysno@latestBinaries 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).
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 onlyA 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.
- docs/quickstart.md: install, then one refused and one accepted token, offline
- docs/usage.md: inputs, flags, running it in GitHub Actions, full example output, and what is not checked
- docs/how-it-decides.md: the AWS and Entra evaluation rules
- SPEC-MAP.md: specifications and deviations
- testdata/golden/: the full output for every fixture
See CONTRIBUTING.md. Commits need a DCO sign-off.
Do not open a public issue for a vulnerability. Follow SECURITY.md.
