mirror of
https://github.com/nektos/act.git
synced 2026-04-26 09:25:54 +03:00
[GH-ISSUE #2262] Make GCP Workload Identity work with act #1057
Labels
No labels
area/action
area/cli
area/docs
area/image
area/runner
area/workflow
backlog
confirmed/not-planned
kind/bug
kind/discussion
kind/external
kind/feature-request
kind/question
meta/duplicate
meta/invalid
meta/need-more-info
meta/resolved
meta/wontfix
meta/workaround
needs-work
pull-request
review/not-planned
size/M
size/XL
size/XXL
stale
stale-exempt
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/act#1057
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @RS185734 on GitHub (Mar 27, 2024).
Original GitHub issue: https://github.com/nektos/act/issues/2262
Act version
0.2.60
Feature description
GCP Recommends not to use a Service account, and we are trying to implement workload identity.
the process works well in Github action but in act I see
am I missing some variables ?
@aldoborrero commented on GitHub (Jul 26, 2024):
Related discussion on google-actions/auth
@StevenACoffman commented on GitHub (Jun 6, 2025):
Or you could use
GOOGLE_APPLICATION_CREDENTIALS, but if you try to use either, you need to be cautious, since splitting multiline GitHub Actions statements runs through all the vagaries of it's partial YAML support, JavaScript syntax, Shell syntax, and other oddities so that way lies madness. See here: https://github.com/orgs/community/discussions/25641#discussioncomment-11142107So I think this is correct:
Then you could expose one of these to
actlike this:or
See more details here: https://github.com/google-github-actions/auth/issues/401
Your action workflow will also need a redundant copy of the
google-github-actions/auth@v2for the non-workload identity federation case where it gets the credentials from either of those environment variables with an invertedif.