Skip to content

Pre-alpha (v0.1.0). A check saysno cannot evaluate is reported as "cannot evaluate", never as allowed. Flags and output may change.

saysno

AWS said no.saysno says why.

Give saysno the OIDC token your CI job or pod sent and the AWS IAM trust policy or Entra federated credential it was checked against. It runs every check the provider makes, prints each as PASS or FAIL with expected and actual values, and says what to change. It works offline and sends nothing to AWS or Azure.

  • Go
  • one static binary
  • offline
  • Apache-2.0

Quick start

Run saysno against a GitHub Actions token and an AWS trust policy from this repository: first a policy that refuses the token, then one that accepts it. It works offline and needs no AWS or Azure account.

Go

Needs Go 1.27.4 or later (the go line in go.mod). Installs to $(go env GOPATH)/bin.

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

Linux and macOS binary

Pick the archive for your platform from the releases page: darwin-arm64, darwin-amd64, linux-amd64 or linux-arm64.

Terminal window
gh release download -R dyokto/saysno -p 'saysno-*-linux-amd64.tar.gz'
tar xzf saysno-*-linux-amd64.tar.gz saysno
sudo install saysno /usr/local/bin/

Debian and Ubuntu

Terminal window
gh release download -R dyokto/saysno -p 'saysno_*_linux_amd64.deb'
sudo apt install ./saysno_*_linux_amd64.deb

Fedora and RHEL

Terminal window
gh release download -R dyokto/saysno -p 'saysno_*_linux_amd64.rpm'
sudo dnf install ./saysno_*_linux_amd64.rpm

Check it is on your PATH. A release binary prints its version; a go install build prints dev.

Terminal window
$ saysno version
saysno 0.1.1

The token and policies below are fixtures in testdata/. The token is signed by a test key and carries the immutable sub that GitHub sends for repositories created after 2026-07-15.

Terminal window
git clone --depth 1 https://github.com/dyokto/saysno
cd saysno

trust-name-form.json matches sub in the older name form, so AWS would refuse the token with only Not authorized to perform sts:AssumeRoleWithWebIdentity. --at pins the time to when the fixture token is valid.

Terminal window
$ saysno check --at 2026-12-03T09:05:00Z \
--policy testdata/aws/trust-name-form.json testdata/tokens/github-immutable.jwt
...
Statement[0] GitHubDeploy Allow does not apply
PASS Principal.Federated
expected "arn:aws:iam::111122223333:oidc-provider/token.actions.githubusercontent.com"
actual "arn:aws:iam::<account>:oidc-provider/token.actions.githubusercontent.com"
PASS Action
actual "sts:AssumeRoleWithWebIdentity"
PASS StringEquals token.actions.githubusercontent.com:aud
actual "sts.amazonaws.com"
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
(repo:octo-org@1000001/deploy-app@2000002:...), but the trust pattern
"repo:octo-org/deploy-app:ref:refs/heads/main" uses the name form.
Repositories created, renamed or transferred after 2026-07-15 (or opted in)
send the immutable form, so name-based patterns stop matching.
try: repo:octo-org@1000001/deploy-app@2000002:ref:refs/heads/main
...

Every condition is listed with what the policy expected and what the token carried. The exit status is 1: denied.

trust-immutable.json uses the try: value from the output above and also pins repository_id:

"StringEquals": {
"token.actions.githubusercontent.com:aud": "sts.amazonaws.com",
"token.actions.githubusercontent.com:sub": "repo:octo-org@1000001/deploy-app@2000002:ref:refs/heads/main",
"token.actions.githubusercontent.com:repository_id": "2000002"
}
Terminal window
$ saysno check --at 2026-12-03T09:05:00Z \
--policy testdata/aws/trust-immutable.json testdata/tokens/github-immutable.jwt
...
verdict ALLOWED an Allow statement matches and no Deny statement does
...

The exit status is 0. 2 would mean saysno could not evaluate a check; it never reports that as allowed.

Run saysno in the job whose role assumption failed, right after the failing step: a GitHub Actions token expires within minutes. Getting the token in GitHub Actions has the step to copy. The token is a live credential until it expires; saysno decode shows its claims without printing it.

Each release has a checksums.txt signed keylessly with cosign, an SPDX SBOM per archive, and SLSA build provenance.

Terminal window
$ cosign verify-blob \
--bundle saysno-0.1.0-checksums.txt.sigstore.json \
--certificate-identity-regexp '^https://github.com/dyokto/saysno/\.github/workflows/release\.yml@refs/tags/v' \
--certificate-oidc-issuer https://token.actions.githubusercontent.com \
saysno-0.1.0-checksums.txt
Verified OK
$ sha256sum --ignore-missing -c saysno-0.1.0-checksums.txt
saysno-0.1.0-linux-amd64.tar.gz: OK
$ gh attestation verify saysno-0.1.0-linux-amd64.tar.gz -R dyokto/saysno
  • Usage: every input format, flag and exit status, and what saysno does not check
  • How it decides: the AWS and Entra evaluation rules, step by step
  • Spec map: the specifications saysno follows and where it departs from them

Documentation

Docs

  • Overview 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…

Guides

  • Usage Exit status of check: 0 allowed, 1 denied, 2 cannot evaluate or usage error. Exit status of reverse: 0 no high or critical finding, 1 at least one, 2 error.
  • How saysno decides AWS (condition operators, multiple keys and values, set operators, OIDC context keys):

Reference

Project

  • Changelog All notable changes are listed here. Before 1.0, breaking changes bump the minor version and are listed first.
  • Security policy Report vulnerabilities in saysno itself through GitHub private vulnerability reporting. Please do not open a public issue for anything exploitable.
  • Contributing Bug reports and patches are welcome. For a suspected vulnerability in saysno, use the security policy, not a public issue.

Security

Fails closed

Input that cannot be parsed, verified or resolved is a deny. There is no flag that skips verification outside test builds.

Signed releases

Each release has a cosign-signed checksums.txt, an SPDX SBOM per archive and SLSA build provenance. Releases

Reporting a vulnerability

Use GitHub private vulnerability reporting, not a public issue. Security policy