An Action for printing OIDC claims in GitHub Actions.
Перейти к файлу
nobe4 19a35ad34c
Merge pull request #14 from 13013SwagR/chore/improve-documentation
chore(README,actions.yaml): Improve documentation of the audience parameter
2024-06-10 15:24:58 +02:00
.devcontainer Initial import of code for actions 2022-05-02 12:55:26 -04:00
.github Bump actions/checkout from 3 to 4 2023-09-05 21:05:42 +00:00
actionsoidc Add audience to URL 2023-06-15 13:41:35 +01:00
cmd Initial import of code for actions 2022-05-02 12:55:26 -04:00
vendor Initial import of code for actions 2022-05-02 12:55:26 -04:00
.gitignore Initial commit 2022-05-02 12:50:43 -04:00
Dockerfile Initial import of code for actions 2022-05-02 12:55:26 -04:00
LICENSE Create LICENSE 2022-05-02 13:40:09 -04:00
README.md chore(README,actions.yaml): Improve documentation of the audience parameter 2024-05-16 11:16:33 -04:00
action.yml Update action.yml 2024-06-03 14:16:53 -04:00
entrypoint.sh Hack entrypoint to work around Actions setting the working dir 2022-05-11 21:34:09 +00:00
go.mod Initial import of code for actions 2022-05-02 12:55:26 -04:00
go.sum Initial import of code for actions 2022-05-02 12:55:26 -04:00
ownership.yaml update maintainer, and team. 2023-01-04 18:53:04 -06:00

README.md

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

To use this Action in another repository, you must checkout this Action repo and then run it. Here's an example of how that is done:


on: [pull_request]

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