Skip to content

Docs: What is the purpose of project_id when using Workload Identity Federation? #442

@reakaleek

Description

@reakaleek

In the example https://github.com/google-github-actions/auth/blob/main/docs/EXAMPLES.md#configuring-gcloud, you add the project_id attribute.

Is it only there to export it as environment variables and set the output for subsequent actions?

We recently had a case where we unintentionally put the wrong project_id. The workflow was still working; we only noticed because of a discussion.

But we were wondering if there should be a warning if there is a mismatch in the project_id and the workload_identity_provider's project number.

WDYT?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions