Skip to content
dyoktoPublic

About

Explains why AWS or Entra refused your federated OIDC token: every trust check, PASS or FAIL, and the fix.

Topics

Resources

Code of conduct

Contributing

Security policy

Stars

0 stars

Watchers

0 watching

Forks

saysno

CI OpenSSF Scorecard License

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.

Install

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@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).

Use

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.

Documentation

Contributing

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

Security

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

License

Apache-2.0

About

Explains why AWS or Entra refused your federated OIDC token: every trust check, PASS or FAIL, and the fix.

Topics

Resources

Code of conduct

Contributing

Security policy

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages