github / actions-oidc-debugger

An Action for printing OIDC claims in GitHub Actions.
MIT License
71 stars 20 forks source link

Obtaining token to run in another repo #17

Open wassp-ds opened 2 months ago

wassp-ds commented 2 months ago

How do I checkout the repo? In other words, how to obtain the token? I am confused about the README instructions :slightly_smiling_face:

mcurole commented 2 months ago

I was able to use the action directly. This is how I called it.

Change the on tag as needed.

name: OIDC Debug
on: 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 }}'