Skip to content

Commit ce5fd78

Browse files
feat(actions): update google-github-actions/auth@v2 (#1455)
Created automatically. Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
1 parent 5b1bda1 commit ce5fd78

File tree

2 files changed

+18
-7
lines changed
  • actions/google-github-actions/auth/v2
  • github-workflows-kt/src/gen/kotlin/io/github/typesafegithub/workflows/actions/googlegithubactions

2 files changed

+18
-7
lines changed
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
a6e2e39c0a0331da29f7fd2c2a20a427e8d3ad1f
1+
71fee32a0bb7e97b4d33d548e7d957010649d8fa

github-workflows-kt/src/gen/kotlin/io/github/typesafegithub/workflows/actions/googlegithubactions/AuthV2.kt

Lines changed: 17 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -81,6 +81,9 @@ import kotlin.collections.toTypedArray
8181
* default universe is "googleapis.com", which corresponds to
8282
* https://cloud.google.com. Trusted Partner Cloud and Google Distributed
8383
* Hosted Cloud should set this to their universe address.
84+
* @param requestReason An optional Reason Request System Parameter for each API call made by the
85+
* GitHub Action. This will inject the "X-Goog-Request-Reason" HTTP header,
86+
* which will provide user-supplied information in Google Cloud audit logs.
8487
* @param cleanupCredentials If true, the action will remove any created credentials from the
8588
* filesystem upon completion. This only applies if "create_credentials_file"
8689
* is true.
@@ -191,6 +194,12 @@ public data class AuthV2 private constructor(
191194
* Hosted Cloud should set this to their universe address.
192195
*/
193196
public val universe: String? = null,
197+
/**
198+
* An optional Reason Request System Parameter for each API call made by the
199+
* GitHub Action. This will inject the "X-Goog-Request-Reason" HTTP header,
200+
* which will provide user-supplied information in Google Cloud audit logs.
201+
*/
202+
public val requestReason: String? = null,
194203
/**
195204
* If true, the action will remove any created credentials from the
196205
* filesystem upon completion. This only applies if "create_credentials_file"
@@ -267,6 +276,7 @@ public data class AuthV2 private constructor(
267276
tokenFormat: AuthV2.TokenFormat? = null,
268277
delegates: List<String>? = null,
269278
universe: String? = null,
279+
requestReason: String? = null,
270280
cleanupCredentials: Boolean? = null,
271281
accessTokenLifetime: String? = null,
272282
accessTokenScopes: List<String>? = null,
@@ -282,12 +292,12 @@ public data class AuthV2 private constructor(
282292
serviceAccount=serviceAccount, audience=audience, credentialsJson=credentialsJson,
283293
createCredentialsFile=createCredentialsFile,
284294
exportEnvironmentVariables=exportEnvironmentVariables, tokenFormat=tokenFormat,
285-
delegates=delegates, universe=universe, cleanupCredentials=cleanupCredentials,
286-
accessTokenLifetime=accessTokenLifetime, accessTokenScopes=accessTokenScopes,
287-
accessTokenSubject=accessTokenSubject, retries=retries, backoff=backoff,
288-
backoffLimit=backoffLimit, idTokenAudience=idTokenAudience,
289-
idTokenIncludeEmail=idTokenIncludeEmail, _customInputs=_customInputs,
290-
_customVersion=_customVersion)
295+
delegates=delegates, universe=universe, requestReason=requestReason,
296+
cleanupCredentials=cleanupCredentials, accessTokenLifetime=accessTokenLifetime,
297+
accessTokenScopes=accessTokenScopes, accessTokenSubject=accessTokenSubject,
298+
retries=retries, backoff=backoff, backoffLimit=backoffLimit,
299+
idTokenAudience=idTokenAudience, idTokenIncludeEmail=idTokenIncludeEmail,
300+
_customInputs=_customInputs, _customVersion=_customVersion)
291301

292302
@Suppress("SpreadOperator")
293303
override fun toYamlArguments(): LinkedHashMap<String, String> = linkedMapOf(
@@ -302,6 +312,7 @@ public data class AuthV2 private constructor(
302312
tokenFormat?.let { "token_format" to it.stringValue },
303313
delegates?.let { "delegates" to it.joinToString(",") },
304314
universe?.let { "universe" to it },
315+
requestReason?.let { "request_reason" to it },
305316
cleanupCredentials?.let { "cleanup_credentials" to it.toString() },
306317
accessTokenLifetime?.let { "access_token_lifetime" to it },
307318
accessTokenScopes?.let { "access_token_scopes" to it.joinToString(",") },

0 commit comments

Comments
 (0)