<!-- Generated by website/scripts/sync-docs.mjs from README.md. Edit that file, not this one. -->

# Overview

> Every page of this site: https://dyokto.github.io/saysno/llms.txt

<img src="https://raw.githubusercontent.com/dyokto/.github/main/assets/projects/saysno.png" width="96" alt="">

# saysno


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.

<picture>
  <source media="(prefers-color-scheme: dark)" srcset="https://github.com/dyokto/saysno/raw/main/demo/demo-dark.gif">
  <img alt="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" src="https://github.com/dyokto/saysno/raw/main/demo/demo-light.gif" width="800">
</picture>

:::caution
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](https://dyokto.github.io/saysno/quickstart/) goes from install to one refused and one accepted token. Docs site: <https://dyokto.github.io/saysno/>.

```bash
go install github.com/dyokto/saysno@latest
```

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

## Use

```bash
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:

```text
  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

- [docs/quickstart.md](https://dyokto.github.io/saysno/quickstart/): install, then one refused and one accepted token, offline
- [docs/usage.md](https://dyokto.github.io/saysno/usage/): inputs, flags, running it in GitHub Actions, full example output, and what is not checked
- [docs/how-it-decides.md](https://dyokto.github.io/saysno/how-it-decides/): the AWS and Entra evaluation rules
- [SPEC-MAP.md](https://dyokto.github.io/saysno/spec-map/): specifications and deviations
- [testdata/golden/](https://github.com/dyokto/saysno/tree/main/testdata/golden): the full output for every fixture

## Contributing

See [CONTRIBUTING.md](https://dyokto.github.io/saysno/contributing/). Commits need a DCO sign-off.

## Security

Do not open a public issue for a vulnerability. Follow [SECURITY.md](https://dyokto.github.io/saysno/security/).

## License

[Apache-2.0](https://github.com/dyokto/saysno/blob/main/LICENSE)
