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 }}
@@ -77,23 +77,25 @@ jobs:
7777 if : ${{ !!github.event.workflow_run }}
7878 - name : Checkout
7979 uses : actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4
80+ with :
81+ ref : ${{ github.event.workflow_run.head_sha || inputs.ref || github.sha }}
8082 - name : Setup Node
8183 uses : actions/setup-node@49933ea5288caeca8642d1e84afbd3f7d6820020 # v4
8284 with :
8385 node-version : 20
8486 - run : npm install
8587 - name : npx gtx lint (${{ needs.affected.outputs.num-paths }} packages)
86- uses : GoogleCloudPlatform/cloud-samples-tools/actions/steps/map-run@34b34881006f34d210c4af9d0f7ba9b2d681621d # v0.2.5
88+ uses : GoogleCloudPlatform/cloud-samples-tools/actions/steps/map-run@9ee708234e240605d96e78f652c333ed6aa95a23 # v0.3.2
8789 with :
8890 command : npx gts lint
8991 paths : ${{ needs.affected.outputs.paths }}
9092 - name : Check success
91- uses : GoogleCloudPlatform/cloud-samples-tools/actions/steps/update-check@34b34881006f34d210c4af9d0f7ba9b2d681621d # v0.2.5
93+ uses : GoogleCloudPlatform/cloud-samples-tools/actions/steps/update-check@9ee708234e240605d96e78f652c333ed6aa95a23 # v0.3.2
9294 with :
9395 check : ${{ steps.in_progress.outputs.check }}
9496 status : success
9597 - name : Check failure
96- uses : GoogleCloudPlatform/cloud-samples-tools/actions/steps/update-check@34b34881006f34d210c4af9d0f7ba9b2d681621d # v0.2.5
98+ uses : GoogleCloudPlatform/cloud-samples-tools/actions/steps/update-check@9ee708234e240605d96e78f652c333ed6aa95a23 # v0.3.2
9799 if : failure()
98100 with :
99101 check : ${{ steps.in_progress.outputs.check }}
@@ -114,26 +116,39 @@ jobs:
114116 continue-on-error : true
115117 env :
116118 GOOGLE_SAMPLES_PROJECT : long-door-651
117- GOOGLE_SERVICE_ACCOUNT :
[email protected] 119+ SERVICE_ACCOUNT :
[email protected] 118120 steps :
119121 - name : Check queued
120- uses : GoogleCloudPlatform/cloud-samples-tools/actions/steps/create-check@34b34881006f34d210c4af9d0f7ba9b2d681621d # v0.2.5
122+ uses : GoogleCloudPlatform/cloud-samples-tools/actions/steps/create-check@9ee708234e240605d96e78f652c333ed6aa95a23 # v0.3.2
121123 id : queued
122124 with :
123125 sha : ${{ github.event.workflow_run.head_sha || inputs.ref || github.sha }}
124126 name : (experimental) Custard CI / ${{ github.job }} (${{ matrix.path }})
125127 job-name : ${{ github.job }} (${{ matrix.path }})
126128 if : ${{ !!github.event.workflow_run }}
129+ - name : Checkout
130+ uses : actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4
131+ with :
132+ ref : ${{ github.event.workflow_run.head_sha || inputs.ref || github.sha }}
133+ - name : Authenticate
134+ uses : google-github-actions/auth@ba79af03959ebeac9769e648f473a284504d9193 # v2.1.10
135+ id : auth
136+ with :
137+ project_id : ${{ env.GOOGLE_SAMPLES_PROJECT }}
138+ workload_identity_provider : projects/1046198160504/locations/global/workloadIdentityPools/github-actions-pool/providers/github-actions-provider
139+ service_account : ${{ env.SERVICE_ACCOUNT }}
140+ access_token_lifetime : 600s # 10 minutes
141+ token_format : id_token
142+ id_token_audience : https://action.test/ # service must have this custom audience
143+ id_token_include_email : true
127144 - name : Setup Custard
128- uses : GoogleCloudPlatform/cloud-samples-tools/actions/steps/setup-custard@34b34881006f34d210c4af9d0f7ba9b2d681621d # v0.2.5
145+ uses : GoogleCloudPlatform/cloud-samples-tools/actions/steps/setup-custard@9ee708234e240605d96e78f652c333ed6aa95a23 # v0.3.2
129146 with :
130147 path : ${{ matrix.path }}
131148 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 }}
149+ id-token : ${{ steps.auth.outputs.id_token }}
135150 - name : Check in_progress
136- uses : GoogleCloudPlatform/cloud-samples-tools/actions/steps/update-check@34b34881006f34d210c4af9d0f7ba9b2d681621d # v0.2.5
151+ uses : GoogleCloudPlatform/cloud-samples-tools/actions/steps/update-check@9ee708234e240605d96e78f652c333ed6aa95a23 # v0.3.2
137152 id : in_progress
138153 with :
139154 check : ${{ steps.queued.outputs.check }}
@@ -142,13 +157,16 @@ jobs:
142157 run : |
143158 timeout ${{ fromJson(needs.affected.outputs.ci-setups)[matrix.path].timeout-minutes }}m \
144159 make test dir=${{ matrix.path }}
160+ env :
161+ # TODO: remove this when the self-contained runner lands.
162+ SERVICE_ACCOUNT :
[email protected] 145163 - name : Check success
146- uses : GoogleCloudPlatform/cloud-samples-tools/actions/steps/update-check@34b34881006f34d210c4af9d0f7ba9b2d681621d # v0.2.5
164+ uses : GoogleCloudPlatform/cloud-samples-tools/actions/steps/update-check@9ee708234e240605d96e78f652c333ed6aa95a23 # v0.3.2
147165 with :
148166 check : ${{ steps.in_progress.outputs.check }}
149167 status : success
150168 - name : Check failure
151- uses : GoogleCloudPlatform/cloud-samples-tools/actions/steps/update-check@34b34881006f34d210c4af9d0f7ba9b2d681621d # v0.2.5
169+ uses : GoogleCloudPlatform/cloud-samples-tools/actions/steps/update-check@9ee708234e240605d96e78f652c333ed6aa95a23 # v0.3.2
152170 if : failure()
153171 with :
154172 check : ${{ steps.in_progress.outputs.check }}
@@ -162,7 +180,7 @@ jobs:
162180 statuses : write
163181 steps :
164182 - name : Check success
165- uses : GoogleCloudPlatform/cloud-samples-tools/actions/steps/update-check@34b34881006f34d210c4af9d0f7ba9b2d681621d # v0.2.5
183+ uses : GoogleCloudPlatform/cloud-samples-tools/actions/steps/update-check@9ee708234e240605d96e78f652c333ed6aa95a23 # v0.3.2
166184 with :
167185 check : ${{ needs.affected.outputs.check }}
168186 status : success
0 commit comments