Skip to content

Commit

Permalink
Update action.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
eq19 committed Sep 30, 2024
1 parent b9c50ac commit 00de8a4
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions .github/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -105,15 +105,16 @@ runs:
id: 'auth'
uses: 'google-github-actions/auth@v2'
with:
token_format: 'access_token'
token_format: 'id_token'
credentials_json: ${{ inputs.credentials }}
id_token_audience: 'https://us-central1-feedmapping.cloudfunctions.net/function'

#Ref: https://github.com/google-github-actions/auth/blob/main/docs/EXAMPLES.md#generating-an-id-token-jwt
- name: Run identity
if: runner.os == 'Windows'
shell: bash
run: |
#python -m pip -q install google.auth requests
IDENTITY=${{ steps.auth.outputs.access_token }}
IDENTITY=${{ steps.auth.outputs.id_token }}
curl -s -X POST https://us-central1-feedmapping.cloudfunctions.net/function \
-H "Authorization: Bearer $IDENTITY" -H "Content-Type: application/json" -d '{}'
Expand Down Expand Up @@ -144,4 +145,3 @@ runs:
uses: actions/github-script@v7
with:
script: console.log(context)

0 comments on commit 00de8a4

Please sign in to comment.