No description
  • Go 62.5%
  • Dockerfile 23.4%
  • Shell 14.1%
Find a file
Repository files (latest commit first)
Filename Latest commit message Latest commit date
2025-09-22 17:46:23 +02:00
.devcontainer Initial import of code for actions 2022-05-02 12:55:26 -04:00
.github Bump actions/checkout from 4 to 5 in the github-actions group 2025-09-02 02:41:35 +00:00
actionsoidc update go modules 2025-07-01 22:10:59 -07:00
cmd Initial import of code for actions 2022-05-02 12:55:26 -04:00
script add a release script 2025-07-03 09:16:32 -07:00
vendor Bump github.com/golang-jwt/jwt/v5 in the go-dependencies group 2025-08-01 16:01:56 +00:00
.dockerignore add .dockerignore to exclude unnecessary files from Docker context 2025-07-03 09:32:26 -07:00
.gitignore Initial commit 2022-05-02 12:50:43 -04:00
.go-version Update Go version to 1.24.6 and add docker build step in workflow 2025-08-18 14:11:55 -07:00
action.yml add marketplace branding 2025-07-03 09:12:38 -07:00
Dockerfile Bump alpine from 3.22.0 to 3.22.1 in the docker-dependencies group 2025-08-01 15:25:55 +00:00
entrypoint.sh Hack entrypoint to work around Actions setting the working dir 2022-05-11 21:34:09 +00:00
go.mod Bump github.com/golang-jwt/jwt/v5 in the go-dependencies group 2025-08-01 16:01:56 +00:00
go.sum Bump github.com/golang-jwt/jwt/v5 in the go-dependencies group 2025-08-01 16:01:56 +00:00
LICENSE Create LICENSE 2022-05-02 13:40:09 -04:00
README.md Add archival notice to README 2025-09-22 10:57:46 +02:00

⚠️ Archival notice

Due to the lack of time we could allocate to this repo, we've decided to archive it.

You can use steve-todorov's version instead.

If you want just the code (reference, thanks again to steve-todorov):

- name: Show OIDC claims (right before assume)
  env:
    AUDIENCE: "sts.amazonaws.com"
  run: |
    TOKEN_JSON=$(curl -s -H "Authorization: bearer $ACTIONS_ID_TOKEN_REQUEST_TOKEN" "$ACTIONS_ID_TOKEN_REQUEST_URL&audience=$AUDIENCE")
    ID_TOKEN=$(echo "$TOKEN_JSON" | jq -r .value)
    echo "$ID_TOKEN" | awk -F. '{print $2}' | base64 -d 2>/dev/null | jq -r

actions-oidc-debugger

This action requests a JWT and prints the claims included within the JWT received from GitHub Actions.

How to use this Action

Here's an example of how to use this action:


name: Test Debugger Action
on: 
  pull_request:
  workflow_dispatch:

jobs:
  oidc_debug_test:
    permissions:
      contents: read
      id-token: write
    runs-on: ubuntu-latest
    name: A test of the oidc debugger
    steps:
      - name: Debug OIDC Claims
        uses: github/actions-oidc-debugger@main
        with:
          audience: '${{ github.server_url }}/${{ github.repository_owner }}'

The resulting output in your Actions log will look something like this:

{
  "actor": "GrantBirki",
  "actor_id": "23362539",
  "aud": "https://github.com/github",
  "base_ref": "main",
  "enterprise": "github",
  "enterprise_id": "11468",
  "event_name": "pull_request",
  "exp": 1751581975,
  "head_ref": "release-setup",
  "iat": 1751560375,
  "iss": "https://token.actions.githubusercontent.com",
  "job_workflow_ref": "github/actions-oidc-debugger/.github/workflows/action-test.yml@refs/pull/27/merge",
  "job_workflow_sha": "7f93a73b8273af5d35fcd70661704c1cadc57054",
  "jti": "4a576b35-ff09-41c5-af2c-ca62dd89b76a",
  "nbf": 1751560075,
  "ref": "refs/pull/27/merge",
  "ref_protected": "false",
  "ref_type": "branch",
  "repository": "github/actions-oidc-debugger",
  "repository_id": "487920697",
  "repository_owner": "github",
  "repository_owner_id": "9919",
  "repository_visibility": "public",
  "run_attempt": "1",
  "run_id": "16055869479",
  "run_number": "33",
  "runner_environment": "github-hosted",
  "sha": "7f93a73b8273af5d35fcd70661704c1cadc57054",
  "sub": "repo:github/actions-oidc-debugger:pull_request",
  "workflow": "Test Debugger Action",
  "workflow_ref": "github/actions-oidc-debugger/.github/workflows/action-test.yml@refs/pull/27/merge",
  "workflow_sha": "7f93a73b8273af5d35fcd70661704c1cadc57054"
}

Maintainers

Here is the general flow for developing this Action and releasing a new version:

Bootstrapping

This assumes you have goenv installed and the version listed in the .go-version file is installed as well.

go mod vendor && go mod tidy && go mod verify

Releasing

Please run script/release and publish a new release on GitHub from the resulting tag.