Skip to content

Environment Variables

Configure the trupu server via environment variables on the trupu service in your docker-compose.yml.

VariableDefaultDescription
PORT3000Port the trupu server listens on
VariableDefaultDescription
ALLOWED_PUBLISHERS(empty)Comma-separated trusted publishers in owner/repo:workflow.yml format
ALLOWED_REFS(empty)Comma-separated git refs to allow (e.g. refs/heads/main). Empty = allow all
OIDC_AUDIENCEhttps://registry.example.comExpected aud claim in the OIDC token. Must match the audience parameter in your GitHub Actions token request
VariableDefaultDescription
DEV_MODEfalseSet to true to skip OIDC verification and accept DEV_TOKEN
DEV_TOKENtrupu-dev-tokenStatic token accepted when DEV_MODE is true
trupu:
environment:
PORT: '3000'
ALLOWED_PUBLISHERS: 'my-org/app:publish.yml,my-org/lib:release.yaml'
ALLOWED_REFS: 'refs/heads/main,refs/tags/v*'
OIDC_AUDIENCE: 'https://registry.example.com'