
This CLI tool allows you to get a valid Bearer Token from a GCP ServiceAccount.json file.
You can find the format of an example SA-File in the /docs folder.
The tool creates a jwt and exchanges it for a Bearer token via OAuth2 Workflow.
Just use one of the releases or build from source.
sa2bearer -keyfile=./Path/to/keyfile.json
# Compile from source
go build -o sa2bearer