5555 required : false
5656 type : boolean
5757 default : false
58+ gcp_wif_provider :
59+ description : " GCP Workload Identity Provider (required if autoinit_env is true)"
60+ required : false
61+ type : string
62+ default : " "
63+ gcp_project_id :
64+ description : " GCP Project ID (required if autoinit_env is true)"
65+ required : false
66+ type : string
67+ default : " "
5868 secrets :
5969 env_local :
6070 description : " Env local file to set environment variables (one export per line)"
8898 CI : true
8999 HEAD_SHA : ${{ env.HEAD_SHA }}
90100 HEAD_BRANCH_NAME : ${{ env.HEAD_BRANCH_NAME }}
101+ permissions :
102+ contents : read
103+ id-token : write # Required for Workload Identity Federation
91104 steps :
92105 - name : Setup Ubuntu packages
93106 uses : zondax/_actions/setup-ubuntu-packages@main
@@ -97,16 +110,16 @@ jobs:
97110 - libnss3
98111 - libnspr4
99112 - libdbus-1-3
100- - libatk1.0-0
101- - libatk-bridge2.0-0
102- - libatspi2.0-0
113+ - libatk1.0-0t64
114+ - libatk-bridge2.0-0t64
115+ - libatspi2.0-0t64
103116 - libxcomposite1
104117 - libxdamage1
105118 - libxfixes3
106119 - libxrandr2
107120 - libgbm1
108121 - libxkbcommon0
109- - libasound2
122+ - libasound2t64
110123
111124 - name : Checkout with GitHub App
112125 uses : zondax/_actions/checkout-with-app@main
@@ -117,6 +130,13 @@ jobs:
117130 app_id : ${{ secrets.app_id }}
118131 app_pem : ${{ secrets.app_pem }}
119132
133+ - name : Authenticate with GCP
134+ if : ${{ inputs.autoinit_env && inputs.gcp_wif_provider != '' }}
135+ uses : zondax/_actions/gcp-wif-auth@main
136+ with :
137+ workload_identity_provider : ${{ inputs.gcp_wif_provider }}
138+ project_id : ${{ inputs.gcp_project_id }}
139+
120140 - name : Setup environment variables
121141 if : inputs.use_env_local
122142 run : |
@@ -137,10 +157,7 @@ jobs:
137157 node_version : ${{ inputs.node_version }}
138158 package_manager : " pnpm"
139159 package_manager_version : " 10"
140-
141- - name : Initialize environment
142- if : ${{ inputs.autoinit_env }}
143- run : ${{ steps.setup-node.outputs.pm_run }} env:init:ci
160+ autoinit_env : ${{ inputs.autoinit_env }}
144161
145162 - name : Run build
146163 working-directory : ${{ inputs.working_directory }}
0 commit comments