Skip to content

Instantly share code, notes, and snippets.

@yob
Last active January 28, 2025 23:22
Show Gist options
  • Save yob/478ef5b798a6fd34b8d3739c3d6af8aa to your computer and use it in GitHub Desktop.
Save yob/478ef5b798a6fd34b8d3739c3d6af8aa to your computer and use it in GitHub Desktop.
Print the contents of a Buildkit OIDC token for debugging

debugging pipeline to view the deserialised content of a Buildktie OIDC token

steps:
- name: "jwt"
agents:
queue: "hosted"
plugins:
- docker#v5.12.0:
image: "node:23"
mount-checkout: false
mount-buildkite-agent: true
command: ["/bin/bash", "-c", "npm install -g jwt-cli && buildkite-agent oidc request-token --audience 'https://rubygems.org' | jwt"]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment