-
Notifications
You must be signed in to change notification settings - Fork 28
29 lines (29 loc) · 1.04 KB
/
check-gcloud-keyless.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
name: Check Gcloud
on:
workflow_dispatch:
env:
GCP_PROJECT: latestbit
GCP_PROJECT_ID: 288860578009
jobs:
check-gcloud-keyless:
name: Checking keyless integration with GCloud
runs-on: ubuntu-24.04
permissions:
contents: 'read'
id-token: 'write'
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Authenticate to Google Cloud development
id: auth
uses: google-github-actions/auth@v2
with:
workload_identity_provider: 'projects/${{ env.GCP_PROJECT_ID }}/locations/global/workloadIdentityPools/lb-github-identity-pool/providers/lb-github-identity-pool-provider'
service_account: 'lb-github-service-account@${{ env.GCP_PROJECT }}.iam.gserviceaccount.com'
create_credentials_file: true
access_token_lifetime: '240s'
- name: 'Set up Cloud SDK'
uses: google-github-actions/setup-gcloud@v2
- name: Run test example
run: |
cargo run --package simple-api-client-example --bin simple-api-client-example