11name : Generate and Build SDKs
22
3+ permissions : {}
4+
35on :
46 workflow_call :
57 inputs :
1113 generate-sdk-sources :
1214 name : Generate SDK sources
1315 runs-on : ubuntu-22.04
16+ permissions :
17+ contents : read
18+
1419 steps :
1520 - name : Checkout code
1621 uses : actions/checkout@v4
2530 run : opam exec -- make sdk
2631
2732 # sdk-ci runs some Go unit tests.
28- # This setting ensures that SDK date time
33+ # This setting ensures that SDK date time
2934 # tests are run on a machine that
3035 # isn't using UTC
3136 - name : Set Timezone to Tokyo for datetime tests
7782 name : Build C SDK
7883 runs-on : ubuntu-latest
7984 needs : generate-sdk-sources
85+ permissions :
86+ contents : read
87+
8088 steps :
8189 - name : Install dependencies
8290 run : sudo apt-get install libxml2-dev
@@ -103,6 +111,9 @@ jobs:
103111 name : Build Java SDK
104112 runs-on : ubuntu-latest
105113 needs : generate-sdk-sources
114+ permissions :
115+ contents : read
116+
106117 steps :
107118 - name : Install dependencies
108119 run : sudo apt-get install maven
@@ -120,9 +131,9 @@ jobs:
120131 distribution : ' temurin'
121132
122133 # Java Tests are run at compile time.
123- # This setting ensures that SDK date time
134+ # This setting ensures that SDK date time
124135 # tests are run on a machine that
125- # isn't using UTC
136+ # isn't using UTC
126137 - name : Set Timezone to Tokyo for datetime tests
127138 run : |
128139 sudo timedatectl set-timezone Asia/Tokyo
@@ -144,6 +155,9 @@ jobs:
144155 name : Build C# SDK
145156 runs-on : windows-2022
146157 needs : generate-sdk-sources
158+ permissions :
159+ contents : read
160+
147161 steps :
148162 - name : Strip 'v' prefix from xapi version
149163 shell : pwsh
@@ -158,7 +172,7 @@ jobs:
158172 # All tests builds and pipelines should
159173 # work on other timezones. This setting ensures that
160174 # SDK date time tests are run on a machine that
161- # isn't using UTC
175+ # isn't using UTC
162176 - name : Set Timezone to Tokyo for datetime tests
163177 shell : pwsh
164178 run : Set-TimeZone -Id "Tokyo Standard Time"
@@ -192,6 +206,9 @@ jobs:
192206 # PowerShell SDK for PowerShell 5.x needs to run on windows-2019 because
193207 # windows-2022 doesn't contain .NET Framework 4.x dev tools
194208 runs-on : windows-2019
209+ permissions :
210+ contents : read
211+
195212 steps :
196213 - name : Strip 'v' prefix from xapi version
197214 shell : pwsh
@@ -265,6 +282,8 @@ jobs:
265282 dotnet : ["6", "8"]
266283 needs : build-csharp-sdk
267284 runs-on : windows-2022
285+ permissions :
286+ contents : read
268287
269288 steps :
270289 - name : Strip 'v' prefix from xapi version
0 commit comments