105105
106106permissions :
107107 contents : read
108- pull-requests : read
109108
110109env :
111110 CARGO_TERM_COLOR : always
@@ -129,7 +128,9 @@ jobs:
129128 # Skip PRs from external repositories, let them pass, and then GitHub's Merge Queue will check them
130129 if : ${{ (!startsWith(github.event_name, 'pull') || !github.event.pull_request.head.repo.fork) && (github.event_name != 'pull_request' || github.event.label.name == 'run-stateful-tests') }}
131130 permissions :
131+ contents : read
132132 id-token : write
133+ pull-requests : write
133134 statuses : write
134135 uses : ./.github/workflows/zfnd-build-docker-image.yml
135136 with :
@@ -155,6 +156,9 @@ jobs:
155156 name : Check if cached state disks exist for ${{ inputs.network || vars.ZCASH_NETWORK }}
156157 # Skip PRs from external repositories, let them pass, and then GitHub's Merge Queue will check them
157158 if : ${{ (!startsWith(github.event_name, 'pull') || !github.event.pull_request.head.repo.fork) && (github.event_name != 'pull_request' || github.event.label.name == 'run-stateful-tests') }}
159+ permissions :
160+ contents : read
161+ id-token : write
158162 uses : ./.github/workflows/zfnd-find-cached-disks.yml
159163 with :
160164 network : ${{ inputs.network || vars.ZCASH_NETWORK }}
@@ -166,6 +170,9 @@ jobs:
166170 get-available-disks-testnet :
167171 name : Check if cached state disks exist for testnet
168172 if : ${{ (!startsWith(github.event_name, 'pull') || !github.event.pull_request.head.repo.fork) && (github.event_name != 'pull_request' || github.event.label.name == 'run-stateful-tests') }}
173+ permissions :
174+ contents : read
175+ id-token : write
169176 uses : ./.github/workflows/zfnd-find-cached-disks.yml
170177 with :
171178 network : Testnet
@@ -182,6 +189,9 @@ jobs:
182189 sync-to-mandatory-checkpoint :
183190 name : Zebra checkpoint
184191 needs : [build, get-available-disks]
192+ permissions :
193+ contents : read
194+ id-token : write
185195 uses : ./.github/workflows/zfnd-deploy-integration-tests-gcp.yml
186196 if : ${{ !fromJSON(needs.get-available-disks.outputs.zebra_checkpoint_disk) || github.event.inputs.regenerate-disks == 'true' }}
187197 concurrency :
@@ -208,6 +218,9 @@ jobs:
208218 sync-past-mandatory-checkpoint :
209219 name : Zebra checkpoint update
210220 needs : [sync-to-mandatory-checkpoint, get-available-disks]
221+ permissions :
222+ contents : read
223+ id-token : write
211224 uses : ./.github/workflows/zfnd-deploy-integration-tests-gcp.yml
212225 if : ${{ !cancelled() && !failure() && (fromJSON(needs.get-available-disks.outputs.zebra_checkpoint_disk) || needs.sync-to-mandatory-checkpoint.result == 'success') && github.event.inputs.regenerate-disks != 'true' && github.event.inputs.run-full-sync != 'true' && github.event.inputs.run-lwd-sync != 'true' }}
213226 with :
@@ -235,6 +248,9 @@ jobs:
235248 sync-full-mainnet :
236249 name : Zebra tip
237250 needs : [build, get-available-disks]
251+ permissions :
252+ contents : read
253+ id-token : write
238254 uses : ./.github/workflows/zfnd-deploy-integration-tests-gcp.yml
239255 if : ${{ github.event_name == 'schedule' || !fromJSON(needs.get-available-disks.outputs.zebra_tip_disk) || (github.event.inputs.run-full-sync == 'true' && (inputs.network || vars.ZCASH_NETWORK) == 'Mainnet') }}
240256 concurrency :
@@ -265,6 +281,9 @@ jobs:
265281 sync-update-mainnet :
266282 name : Zebra tip update
267283 needs : [sync-full-mainnet, get-available-disks]
284+ permissions :
285+ contents : read
286+ id-token : write
268287 uses : ./.github/workflows/zfnd-deploy-integration-tests-gcp.yml
269288 if : ${{ !cancelled() && !failure() && (fromJSON(needs.get-available-disks.outputs.zebra_tip_disk) || needs.sync-full-mainnet.result == 'success') && github.event.inputs.regenerate-disks != 'true' && github.event.inputs.run-full-sync != 'true' && github.event.inputs.run-lwd-sync != 'true' }}
270289 with :
@@ -294,6 +313,9 @@ jobs:
294313 generate-checkpoints-mainnet :
295314 name : Generate checkpoints mainnet
296315 needs : [sync-full-mainnet, get-available-disks]
316+ permissions :
317+ contents : read
318+ id-token : write
297319 uses : ./.github/workflows/zfnd-deploy-integration-tests-gcp.yml
298320 if : ${{ !cancelled() && !failure() && (fromJSON(needs.get-available-disks.outputs.zebra_tip_disk) || needs.sync-full-mainnet.result == 'success') && github.event.inputs.regenerate-disks != 'true' && github.event.inputs.run-full-sync != 'true' && github.event.inputs.run-lwd-sync != 'true' }}
299321 with :
@@ -325,6 +347,9 @@ jobs:
325347 sync-full-testnet :
326348 name : Zebra tip on testnet
327349 needs : [build, get-available-disks-testnet]
350+ permissions :
351+ contents : read
352+ id-token : write
328353 uses : ./.github/workflows/zfnd-deploy-integration-tests-gcp.yml
329354 if : ${{ !fromJSON(needs.get-available-disks-testnet.outputs.zebra_tip_disk) || (github.event.inputs.run-full-sync == 'true' && (inputs.network || vars.ZCASH_NETWORK) == 'Testnet') }}
330355 concurrency :
@@ -358,6 +383,9 @@ jobs:
358383 generate-checkpoints-testnet :
359384 name : Generate checkpoints testnet
360385 needs : [sync-full-testnet, get-available-disks-testnet]
386+ permissions :
387+ contents : read
388+ id-token : write
361389 uses : ./.github/workflows/zfnd-deploy-integration-tests-gcp.yml
362390 if : ${{ !cancelled() && !failure() && (fromJSON(needs.get-available-disks-testnet.outputs.zebra_tip_disk) || needs.sync-full-testnet.result == 'success') && github.event.inputs.regenerate-disks != 'true' && github.event.inputs.run-full-sync != 'true' && github.event.inputs.run-lwd-sync != 'true' }}
363391 with :
@@ -387,6 +415,9 @@ jobs:
387415 lwd-sync-full :
388416 name : lightwalletd tip
389417 needs : [sync-full-mainnet, get-available-disks]
418+ permissions :
419+ contents : read
420+ id-token : write
390421 uses : ./.github/workflows/zfnd-deploy-integration-tests-gcp.yml
391422 # Currently the lightwalletd tests only work on Mainnet
392423 if : ${{ !cancelled() && !failure() && (inputs.network || vars.ZCASH_NETWORK) == 'Mainnet' && (fromJSON(needs.get-available-disks.outputs.zebra_tip_disk) || needs.sync-full-mainnet.result == 'success') && (github.event_name == 'schedule' || !fromJSON(needs.get-available-disks.outputs.lwd_tip_disk) || github.event.inputs.run-lwd-sync == 'true' ) }}
@@ -417,6 +448,9 @@ jobs:
417448 lwd-sync-update :
418449 name : lightwalletd tip update
419450 needs : [lwd-sync-full, get-available-disks]
451+ permissions :
452+ contents : read
453+ id-token : write
420454 uses : ./.github/workflows/zfnd-deploy-integration-tests-gcp.yml
421455 if : ${{ !cancelled() && !failure() && (inputs.network || vars.ZCASH_NETWORK) == 'Mainnet' && (fromJSON(needs.get-available-disks.outputs.lwd_tip_disk) || needs.lwd-sync-full.result == 'success') && github.event.inputs.regenerate-disks != 'true' && github.event.inputs.run-full-sync != 'true' && github.event.inputs.run-lwd-sync != 'true' }}
422456 with :
@@ -444,6 +478,9 @@ jobs:
444478 lwd-rpc-test :
445479 name : Zebra tip JSON-RPC
446480 needs : [sync-full-mainnet, get-available-disks]
481+ permissions :
482+ contents : read
483+ id-token : write
447484 uses : ./.github/workflows/zfnd-deploy-integration-tests-gcp.yml
448485 if : ${{ !cancelled() && !failure() && (inputs.network || vars.ZCASH_NETWORK) == 'Mainnet' && (fromJSON(needs.get-available-disks.outputs.zebra_tip_disk) || needs.sync-full-mainnet.result == 'success') && github.event.inputs.regenerate-disks != 'true' && github.event.inputs.run-full-sync != 'true' && github.event.inputs.run-lwd-sync != 'true' }}
449486 with :
@@ -465,6 +502,9 @@ jobs:
465502 lwd-rpc-send-tx :
466503 name : Lightwalletd send transactions
467504 needs : [lwd-sync-full, get-available-disks]
505+ permissions :
506+ contents : read
507+ id-token : write
468508 uses : ./.github/workflows/zfnd-deploy-integration-tests-gcp.yml
469509 if : ${{ !cancelled() && !failure() && (inputs.network || vars.ZCASH_NETWORK) == 'Mainnet' && (fromJSON(needs.get-available-disks.outputs.lwd_tip_disk) || needs.lwd-sync-full.result == 'success') && github.event.inputs.regenerate-disks != 'true' && github.event.inputs.run-full-sync != 'true' && github.event.inputs.run-lwd-sync != 'true' }}
470510 with :
@@ -487,6 +527,9 @@ jobs:
487527 lwd-grpc-wallet :
488528 name : lightwalletd GRPC tests
489529 needs : [lwd-sync-full, get-available-disks]
530+ permissions :
531+ contents : read
532+ id-token : write
490533 uses : ./.github/workflows/zfnd-deploy-integration-tests-gcp.yml
491534 if : ${{ !cancelled() && !failure() && (inputs.network || vars.ZCASH_NETWORK) == 'Mainnet' && (fromJSON(needs.get-available-disks.outputs.lwd_tip_disk) || needs.lwd-sync-full.result == 'success') && github.event.inputs.regenerate-disks != 'true' && github.event.inputs.run-full-sync != 'true' && github.event.inputs.run-lwd-sync != 'true' }}
492535 with :
@@ -513,6 +556,9 @@ jobs:
513556 rpc-get-block-template :
514557 name : get block template
515558 needs : [sync-full-mainnet, get-available-disks]
559+ permissions :
560+ contents : read
561+ id-token : write
516562 uses : ./.github/workflows/zfnd-deploy-integration-tests-gcp.yml
517563 if : ${{ !cancelled() && !failure() && (fromJSON(needs.get-available-disks.outputs.zebra_tip_disk) || needs.sync-full-mainnet.result == 'success') && github.event.inputs.regenerate-disks != 'true' && github.event.inputs.run-full-sync != 'true' && github.event.inputs.run-lwd-sync != 'true' }}
518564 with :
@@ -535,6 +581,9 @@ jobs:
535581 rpc-submit-block :
536582 name : submit block
537583 needs : [sync-full-mainnet, get-available-disks]
584+ permissions :
585+ contents : read
586+ id-token : write
538587 uses : ./.github/workflows/zfnd-deploy-integration-tests-gcp.yml
539588 if : ${{ !cancelled() && !failure() && (fromJSON(needs.get-available-disks.outputs.zebra_tip_disk) || needs.sync-full-mainnet.result == 'success') && github.event.inputs.regenerate-disks != 'true' && github.event.inputs.run-full-sync != 'true' && github.event.inputs.run-lwd-sync != 'true' }}
540589 with :
0 commit comments