Skip to content

Commit

Permalink
build: try to inspect creds
Browse files Browse the repository at this point in the history
  • Loading branch information
cif committed Oct 3, 2024
1 parent 47eeee3 commit 72f9cfc
Showing 1 changed file with 4 additions and 16 deletions.
20 changes: 4 additions & 16 deletions .github/workflows/image.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Synchro Docker Image
name: Docker Image

on:
push:
Expand Down Expand Up @@ -27,22 +27,10 @@ jobs:
- name: "Auth to AR"
run: gcloud auth configure-docker us-east4-docker.pkg.dev

- name: Inspect OIDC Token
- name: Inspect GOOGLE_GHA_CREDS_PATH JSON
run: |
curl -H "Authorization: Bearer ${{ steps.auth.outputs.id_token }}" \
"https://token.actions.githubusercontent.com/.well-known/openid-configuration" | jq .
- name: Retrieve OIDC Token
id: retrieve-oidc-token
run: |
echo "Retrieving OIDC Token..."
export OIDC_TOKEN=$(curl -s -H "Authorization: Bearer ${{ steps.auth.outputs.id_token }}" \
"https://token.actions.githubusercontent.com/.well-known/openid-configuration/jwks")
echo "OIDC Token: $OIDC_TOKEN"
- name: Decode OIDC Token
run: |
echo "${{ steps.retrieve-oidc-token.outputs.OIDC_TOKEN }}" | base64 --decode | jq .
echo "Inspecting JSON file at $GOOGLE_GHA_CREDS_PATH"
cat $GOOGLE_GHA_CREDS_PATH | jq .
- name: "Build Docker Image"
run: |
Expand Down

0 comments on commit 72f9cfc

Please sign in to comment.