You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi,
I was trying to create a reusable workflow for Google Cloud auth actions, but getting Unrecognized named-value and I cannot figure out what's wrong.
Here is my reusable workflow.
name: Common Google Cloud Authon:
workflow_call:
outputs:
access_token:
value: ${{ jobs.auth.outputs.access_token }}jobs:
auth:
runs-on: ubuntu-latestpermissions:
contents: 'read'id-token: 'write'outputs:
access_token: ${{ steps.auth.outputs.access_token }}steps:
- name: Login to Google Cloudid: authuses: google-github-actions/auth@v2with:
token_format: access_tokenworkload_identity_provider: ${{ vars.GOOGLE_WORKLOAD_IDENTITY_PROVIDER }}service_account: ${{ vars.GOOGLE_SERVICE_ACCOUNT }}
I've set GOOGLE_WORKLOAD_IDENTITY_PROVIDER and GOOGLE_SERVICE_ACCOUNT as repository variables so this should work, however it throws following errors.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Hi,
I was trying to create a reusable workflow for Google Cloud auth actions, but getting
Unrecognized named-value
and I cannot figure out what's wrong.Here is my reusable workflow.
I've set
GOOGLE_WORKLOAD_IDENTITY_PROVIDER
andGOOGLE_SERVICE_ACCOUNT
as repository variables so this should work, however it throws following errors.jobs
parameter is also used in the official reusable workflow example, so this should be correct. I cannot figure out this cause.https://docs.github.com/en/actions/sharing-automations/reusing-workflows#using-outputs-from-a-reusable-workflow
Beta Was this translation helpful? Give feedback.
All reactions