5050
5151jobs :
5252 affected :
53- uses : GoogleCloudPlatform/cloud-samples-tools/.github/workflows/affected.yaml@34b34881006f34d210c4af9d0f7ba9b2d681621d # v0.2.5
53+ uses : GoogleCloudPlatform/cloud-samples-tools/.github/workflows/affected.yaml@9ee708234e240605d96e78f652c333ed6aa95a23 # v0.3.2
5454 permissions :
5555 statuses : write
5656 with :
6868 timeout-minutes : 5
6969 steps :
7070 - name : Check in_progress
71- uses : GoogleCloudPlatform/cloud-samples-tools/actions/steps/create-check@34b34881006f34d210c4af9d0f7ba9b2d681621d # v0.2.5
71+ uses : GoogleCloudPlatform/cloud-samples-tools/actions/steps/create-check@9ee708234e240605d96e78f652c333ed6aa95a23 # v0.3.2
7272 id : in_progress
7373 with :
7474 sha : ${{ github.event.workflow_run.head_sha || inputs.ref || github.sha }}
@@ -83,17 +83,17 @@ jobs:
8383 node-version : 20
8484 - run : npm install
8585 - name : npx gtx lint (${{ needs.affected.outputs.num-paths }} packages)
86- uses : GoogleCloudPlatform/cloud-samples-tools/actions/steps/map-run@34b34881006f34d210c4af9d0f7ba9b2d681621d # v0.2.5
86+ uses : GoogleCloudPlatform/cloud-samples-tools/actions/steps/map-run@9ee708234e240605d96e78f652c333ed6aa95a23 # v0.3.2
8787 with :
8888 command : npx gts lint
8989 paths : ${{ needs.affected.outputs.paths }}
9090 - name : Check success
91- uses : GoogleCloudPlatform/cloud-samples-tools/actions/steps/update-check@34b34881006f34d210c4af9d0f7ba9b2d681621d # v0.2.5
91+ uses : GoogleCloudPlatform/cloud-samples-tools/actions/steps/update-check@9ee708234e240605d96e78f652c333ed6aa95a23 # v0.3.2
9292 with :
9393 check : ${{ steps.in_progress.outputs.check }}
9494 status : success
9595 - name : Check failure
96- uses : GoogleCloudPlatform/cloud-samples-tools/actions/steps/update-check@34b34881006f34d210c4af9d0f7ba9b2d681621d # v0.2.5
96+ uses : GoogleCloudPlatform/cloud-samples-tools/actions/steps/update-check@9ee708234e240605d96e78f652c333ed6aa95a23 # v0.3.2
9797 if : failure()
9898 with :
9999 check : ${{ steps.in_progress.outputs.check }}
@@ -114,26 +114,37 @@ jobs:
114114 continue-on-error : true
115115 env :
116116 GOOGLE_SAMPLES_PROJECT : long-door-651
117- GOOGLE_SERVICE_ACCOUNT :
[email protected] 117+ SERVICE_ACCOUNT :
[email protected] 118118 steps :
119119 - name : Check queued
120- uses : GoogleCloudPlatform/cloud-samples-tools/actions/steps/create-check@34b34881006f34d210c4af9d0f7ba9b2d681621d # v0.2.5
120+ uses : GoogleCloudPlatform/cloud-samples-tools/actions/steps/create-check@9ee708234e240605d96e78f652c333ed6aa95a23 # v0.3.2
121121 id : queued
122122 with :
123123 sha : ${{ github.event.workflow_run.head_sha || inputs.ref || github.sha }}
124124 name : (experimental) Custard CI / ${{ github.job }} (${{ matrix.path }})
125125 job-name : ${{ github.job }} (${{ matrix.path }})
126126 if : ${{ !!github.event.workflow_run }}
127+ - name : Checkout
128+ uses : actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4
129+ - name : Authenticate
130+ uses : google-github-actions/auth@ba79af03959ebeac9769e648f473a284504d9193 # v2.1.10
131+ id : auth
132+ with :
133+ project_id : ${{ env.GOOGLE_SAMPLES_PROJECT }}
134+ workload_identity_provider : projects/1046198160504/locations/global/workloadIdentityPools/github-actions-pool/providers/github-actions-provider
135+ service_account : ${{ env.SERVICE_ACCOUNT }}
136+ access_token_lifetime : 600s # 10 minutes
137+ token_format : id_token
138+ id_token_audience : https://action.test/ # service must have this custom audience
139+ id_token_include_email : true
127140 - name : Setup Custard
128- uses : GoogleCloudPlatform/cloud-samples-tools/actions/steps/setup-custard@34b34881006f34d210c4af9d0f7ba9b2d681621d # v0.2.5
141+ uses : GoogleCloudPlatform/cloud-samples-tools/actions/steps/setup-custard@9ee708234e240605d96e78f652c333ed6aa95a23 # v0.3.2
129142 with :
130143 path : ${{ matrix.path }}
131144 ci-setup : ${{ toJson(fromJson(needs.affected.outputs.ci-setups)[matrix.path]) }}
132- project-id : ${{ env.GOOGLE_SAMPLES_PROJECT }}
133- workload-identity-provider : projects/1046198160504/locations/global/workloadIdentityPools/github-actions-pool/providers/github-actions-provider
134- service-account : ${{ env.GOOGLE_SERVICE_ACCOUNT }}
145+ id-token : ${{ steps.auth.outputs.id_token }}
135146 - name : Check in_progress
136- uses : GoogleCloudPlatform/cloud-samples-tools/actions/steps/update-check@34b34881006f34d210c4af9d0f7ba9b2d681621d # v0.2.5
147+ uses : GoogleCloudPlatform/cloud-samples-tools/actions/steps/update-check@9ee708234e240605d96e78f652c333ed6aa95a23 # v0.3.2
137148 id : in_progress
138149 with :
139150 check : ${{ steps.queued.outputs.check }}
@@ -142,13 +153,16 @@ jobs:
142153 run : |
143154 timeout ${{ fromJson(needs.affected.outputs.ci-setups)[matrix.path].timeout-minutes }}m \
144155 make test dir=${{ matrix.path }}
156+ env :
157+ # TODO: remove this when the self-contained runner lands.
158+ SERVICE_ACCOUNT :
[email protected] 145159 - name : Check success
146- uses : GoogleCloudPlatform/cloud-samples-tools/actions/steps/update-check@34b34881006f34d210c4af9d0f7ba9b2d681621d # v0.2.5
160+ uses : GoogleCloudPlatform/cloud-samples-tools/actions/steps/update-check@9ee708234e240605d96e78f652c333ed6aa95a23 # v0.3.2
147161 with :
148162 check : ${{ steps.in_progress.outputs.check }}
149163 status : success
150164 - name : Check failure
151- uses : GoogleCloudPlatform/cloud-samples-tools/actions/steps/update-check@34b34881006f34d210c4af9d0f7ba9b2d681621d # v0.2.5
165+ uses : GoogleCloudPlatform/cloud-samples-tools/actions/steps/update-check@9ee708234e240605d96e78f652c333ed6aa95a23 # v0.3.2
152166 if : failure()
153167 with :
154168 check : ${{ steps.in_progress.outputs.check }}
@@ -162,7 +176,7 @@ jobs:
162176 statuses : write
163177 steps :
164178 - name : Check success
165- uses : GoogleCloudPlatform/cloud-samples-tools/actions/steps/update-check@34b34881006f34d210c4af9d0f7ba9b2d681621d # v0.2.5
179+ uses : GoogleCloudPlatform/cloud-samples-tools/actions/steps/update-check@9ee708234e240605d96e78f652c333ed6aa95a23 # v0.3.2
166180 with :
167181 check : ${{ needs.affected.outputs.check }}
168182 status : success
0 commit comments