getting this error 'The key 'id-token' is not allowed'

This issue has been tracked since 2023-01-09.


getting the below error now, it was working till yesterday.

error 'The key 'id-token' is not allowed'

Expected behavior

No response

Observed behavior

No response

Action YAML

    timeout-minutes: 60
      contents: 'read'
      id-token: 'write'
      - uses: actions/[email protected]
      - id: 'gcp-auth'
        name: 'Auth into GCP'
        uses: 'google-github-actions/[email protected]'
          workload_identity_provider: 'XX'
          service_account: 'XX'
      - name: 'Set up Cloud SDK'
        uses: 'google-github-actions/[email protected]'

Log output

No response

Additional information

No response

sethvargo wrote this answer on 2023-01-09

Hi there - could you please provide the debug output for the complete GitHub Actions workflow run?

nitishvu wrote this answer on 2023-01-09

Hi @sethvargo ,

Workflow is not started so no debug log.
I have not done any changes to this workflow recently, but suddenly it is showing the below error.

[Invalid workflow file: .github/workflows/XXX.yml#L63](
The workflow is not valid. .github/workflows/XXXX.yml (Line: 63, Col: 7): The key 'id-token' is not allowed


sethvargo wrote this answer on 2023-01-09

Hi @nitishvu - that error is coming from GitHub due to a syntax or parsing error in your YAML. What is your complete action.yml file?

nitishvu wrote this answer on 2023-01-09

This is occurring in 20 workflows, all of which have been operating normally for the past three months with no recent changes.
The process has now been modified to use the prior authentication mechanism. I also tried the auth plugin in a new repository, and it was successful.

will examine this sample in the same repository and update you.

sethvargo wrote this answer on 2023-01-09

Hi @nitishvu - I believe that would indicate a problem with GitHub. I would recommend opening a support ticket. We (the Google GitHub Actions team) do not have control over the GitHub Actions runner. Furthermore, that error is happening before it touches our GitHub Action.

nitishvu wrote this answer on 2023-01-10

yes @sethvargo Agree, wanted to check if there is any known issue

More Details About Repo
Owner Name google-github-actions
Repo Name setup-gcloud
Full Name google-github-actions/setup-gcloud
Language TypeScript
Created Date 2019-11-05
Updated Date 2023-03-23
Star Count 1505
Watcher Count 65
Fork Count 548
Issue Count 11


Issue Title Created Date Updated Date