Update references to google now (#8)

This commit is contained in:
Seth Vargo 2021-09-21 19:30:30 -04:00 committed by GitHub
parent 2dd133ffa2
commit fb26879445
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
6 changed files with 14 additions and 14 deletions

View File

@ -59,7 +59,7 @@ jobs:
uses: './'
with:
create_credentials_file: true
workload_identity_provider: 'projects/469401941463/locations/global/workloadIdentityPools/github-actions/providers/github-oidc-auth-google-cloud'
workload_identity_provider: 'projects/469401941463/locations/global/workloadIdentityPools/github-actions/providers/google-github-actions'
service_account: 'github-secret-accessor@actions-oidc-test.iam.gserviceaccount.com'
- id: 'gcloud'
@ -89,7 +89,7 @@ jobs:
uses: './'
with:
token_format: 'access_token'
workload_identity_provider: 'projects/469401941463/locations/global/workloadIdentityPools/github-actions/providers/github-oidc-auth-google-cloud'
workload_identity_provider: 'projects/469401941463/locations/global/workloadIdentityPools/github-actions/providers/google-github-actions'
service_account: 'github-secret-accessor@actions-oidc-test.iam.gserviceaccount.com'
id_token:
@ -113,7 +113,7 @@ jobs:
uses: './'
with:
token_format: 'id_token'
workload_identity_provider: 'projects/469401941463/locations/global/workloadIdentityPools/github-actions/providers/github-oidc-auth-google-cloud'
workload_identity_provider: 'projects/469401941463/locations/global/workloadIdentityPools/github-actions/providers/google-github-actions'
service_account: 'github-secret-accessor@actions-oidc-test.iam.gserviceaccount.com'
id_token_audience: 'my-aud'
id_token_include_email: true

View File

@ -1,4 +1,4 @@
# oidc-auth-google-cloud
# auth
This GitHub Action exchanges a GitHub Actions OIDC token into a Google Cloud
access token using [Workload Identity Federation][wif]. This obviates the need
@ -40,7 +40,7 @@ jobs:
steps:
- id: 'auth'
name: 'Authenticate to Google Cloud'
uses: 'sethvargo/oidc-auth-google-cloud@v0.3.0'
uses: 'google-github-actions/auth@v0.3.0'
with:
token_format: 'access_token'
workload_identity_provider: 'projects/123456789/locations/global/workloadIdentityPools/my-pool/providers/my-provider'
@ -164,7 +164,7 @@ jobs:
# Configure Workload Identity Federation via a credentials file.
- id: 'auth'
name: 'Authenticate to Google Cloud'
uses: 'sethvargo/oidc-auth-google-cloud@v0.3.0'
uses: 'google-github-actions/auth@v0.3.0'
with:
create_credentials_file: 'access_token'
workload_identity_provider: 'projects/123456789/locations/global/workloadIdentityPools/my-pool/providers/my-provider'
@ -202,7 +202,7 @@ jobs:
# Configure Workload Identity Federation and generate an access token.
- id: 'auth'
name: 'Authenticate to Google Cloud'
uses: 'sethvargo/oidc-auth-google-cloud@v0.3.0'
uses: 'google-github-actions/auth@v0.3.0'
with:
token_format: 'access_token'
workload_identity_provider: 'projects/123456789/locations/global/workloadIdentityPools/my-pool/providers/my-provider'
@ -236,7 +236,7 @@ jobs:
# Configure Workload Identity Federation and generate an access token.
- id: 'auth'
name: 'Authenticate to Google Cloud'
uses: 'sethvargo/oidc-auth-google-cloud@v0.3.0'
uses: 'google-github-actions/auth@v0.3.0'
with:
token_format: 'access_token'
workload_identity_provider: 'projects/123456789/locations/global/workloadIdentityPools/my-pool/providers/my-provider'

View File

@ -12,8 +12,8 @@
# See the License for the specific language governing permissions and
# limitations under the License.
name: 'OIDC Authenticate to Google Cloud'
author: 'sethvargo'
name: 'Authenticate to Google Cloud'
author: 'Google LLC'
description: |-
Generate credentials to authenticate to Google Cloud from GitHub Actions using
an OIDC token and Workload Identity Federation.

2
dist/index.js vendored
View File

@ -1894,7 +1894,7 @@ class Client {
opts.headers = {};
}
if (!opts.headers['User-Agent']) {
opts.headers['User-Agent'] = 'sethvargo:oidc-auth-google-cloud/0.2.1';
opts.headers['User-Agent'] = 'google-github-actions:auth/0.3.0';
}
return new Promise((resolve, reject) => {
const req = https_1.default.request(opts, (res) => {

View File

@ -1,7 +1,7 @@
{
"name": "oidc-auth-gcp",
"version": "0.1.0",
"description": "Authenticate to Google Cloud using a GitHub Actions OIDC token.",
"description": "Authenticate to Google Cloud using a variety of mechanisms including OIDC tokens.",
"main": "dist/index.js",
"scripts": {
"build": "ncc build src/main.ts",
@ -11,7 +11,7 @@
},
"repository": {
"type": "git",
"url": "https://github.com/sethvargo/oidc-auth-gcp"
"url": "https://github.com/google-github-actions/auth"
},
"keywords": [
"actions",

View File

@ -120,7 +120,7 @@ export class Client {
}
if (!opts.headers['User-Agent']) {
opts.headers['User-Agent'] = 'sethvargo:oidc-auth-google-cloud/0.3.0';
opts.headers['User-Agent'] = 'google-github-actions:auth/0.3.0';
}
return new Promise((resolve, reject) => {