Skip to content

Commit 63addaf

Browse files
authored
Merge master to feature/ldaps (#6944)
2 parents 3afd88a + 68b4511 commit 63addaf

16 files changed

Lines changed: 115 additions & 57 deletions

File tree

.github/workflows/1.249-lcm.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@ jobs:
2222
uses: actions/checkout@v4
2323
with:
2424
ref: '1.249-lcm'
25+
persist-credentials: false
2526

2627
- name: Run python tests
2728
run: bash .github/python-nosetests${{ matrix.test }}.sh
@@ -35,6 +36,7 @@ jobs:
3536
uses: actions/checkout@v4
3637
with:
3738
ref: '1.249-lcm'
39+
persist-credentials: false
3840

3941
- name: Free space
4042
shell: bash

.github/workflows/codechecker.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,8 @@ jobs:
2626
steps:
2727
- name: Checkout code
2828
uses: actions/checkout@v4
29+
with:
30+
persist-credentials: false
2931

3032
- name: Setup XenAPI environment
3133
uses: ./.github/workflows/setup-xapi-environment

.github/workflows/docs.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,8 @@ jobs:
1919
steps:
2020
- name: Checkout code
2121
uses: actions/checkout@v4
22+
with:
23+
persist-credentials: false
2224

2325
- name: Pull configuration from xs-opam
2426
run: |

.github/workflows/format.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,8 @@ jobs:
2020
steps:
2121
- name: Checkout code
2222
uses: actions/checkout@v4
23+
with:
24+
persist-credentials: false
2325

2426
- name: Pull configuration from xs-opam
2527
run: |

.github/workflows/generate-and-build-sdks.yml

Lines changed: 15 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,8 @@ jobs:
1919
steps:
2020
- name: Checkout code
2121
uses: actions/checkout@v4
22+
with:
23+
persist-credentials: false
2224

2325
- name: Setup XenAPI environment
2426
uses: ./.github/workflows/setup-xapi-environment
@@ -142,9 +144,11 @@ jobs:
142144
- name: Build Java SDK
143145
shell: bash
144146
run: |
145-
xapi_version="${{ inputs.xapi_version }}"
147+
xapi_version="${INPUTS_XAPI_VERSION}"
146148
xapi_version="${xapi_version//v/}"
147149
mkdir -p target && mvn -f source/xen-api/pom.xml -B -Drevision=$xapi_version-prerelease clean package && mv source/xen-api/target/*.jar target/
150+
env:
151+
INPUTS_XAPI_VERSION: ${{ inputs.xapi_version }}
148152

149153
- name: Store Java SDK
150154
uses: actions/upload-artifact@v4
@@ -162,7 +166,9 @@ jobs:
162166
steps:
163167
- name: Strip 'v' prefix from xapi version
164168
shell: pwsh
165-
run: echo "XAPI_VERSION_NUMBER=$("${{ inputs.xapi_version }}".TrimStart('v'))" | Out-File -FilePath $env:GITHUB_ENV -Encoding utf8 -Append
169+
run: echo "XAPI_VERSION_NUMBER=$("$env:INPUTS_XAPI_VERSION".TrimStart('v'))" | Out-File -FilePath $env:GITHUB_ENV -Encoding utf8 -Append
170+
env:
171+
INPUTS_XAPI_VERSION: ${{ inputs.xapi_version }}
166172

167173
- name: Retrieve C# SDK source
168174
uses: actions/download-artifact@v4
@@ -192,7 +198,7 @@ jobs:
192198
dotnet build source/src/XenServer.csproj `
193199
--disable-build-servers `
194200
--configuration Release `
195-
-p:Version=${{ env.XAPI_VERSION_NUMBER }}-prerelease-unsigned `
201+
-p:Version=$env:XAPI_VERSION_NUMBER-prerelease-unsigned `
196202
--verbosity=normal
197203
198204
- name: Store C# SDK
@@ -215,7 +221,9 @@ jobs:
215221
steps:
216222
- name: Strip 'v' prefix from xapi version
217223
shell: pwsh
218-
run: echo "XAPI_VERSION_NUMBER=$("${{ inputs.xapi_version }}".TrimStart('v'))" | Out-File -FilePath $env:GITHUB_ENV -Encoding utf8 -Append
224+
run: echo "XAPI_VERSION_NUMBER=$("$env:INPUTS_XAPI_VERSION".TrimStart('v'))" | Out-File -FilePath $env:GITHUB_ENV -Encoding utf8 -Append
225+
env:
226+
INPUTS_XAPI_VERSION: ${{ inputs.xapi_version }}
219227

220228
- name: Retrieve PowerShell SDK source
221229
uses: actions/download-artifact@v4
@@ -238,22 +246,22 @@ jobs:
238246
shell: pwsh
239247
run: |
240248
dotnet nuget add source --name local ${{ github.workspace }}\csharp
241-
dotnet add source/src package XenServer.NET --version ${{ env.XAPI_VERSION_NUMBER }}-prerelease-unsigned
249+
dotnet add source/src package XenServer.NET --version $env:XAPI_VERSION_NUMBER-prerelease-unsigned
242250
243251
- name: Build PowerShell SDK (.NET ${{ matrix.dotnet }})
244252
shell: pwsh
245253
run: |
246254
dotnet build source/src/XenServerPowerShell.csproj `
247255
--disable-build-servers `
248256
--configuration Release `
249-
-p:Version=${{ env.XAPI_VERSION_NUMBER }}-prerelease-unsigned `
257+
-p:Version=$env:XAPI_VERSION_NUMBER-prerelease-unsigned `
250258
-p:TargetFramework=net${{ matrix.dotnet }}.0 `
251259
--verbosity=normal`
252260
253261
- name: Update SDK and PS versions in "XenServerPSModule.psd1"
254262
shell: pwsh
255263
run: |
256-
(Get-Content "source\XenServerPSModule.psd1") -replace "@SDK_VERSION@","${{ env.XAPI_VERSION_NUMBER }}" | Set-Content -Path "source\XenServerPSModule.psd1"
264+
(Get-Content "source\XenServerPSModule.psd1") -replace "@SDK_VERSION@","$env:XAPI_VERSION_NUMBER" | Set-Content -Path "source\XenServerPSModule.psd1"
257265
(Get-Content "source\XenServerPSModule.psd1") -replace "@PS_VERSION@","7.0" | Set-Content -Path "source\XenServerPSModule.psd1"
258266
259267
- name: Move binaries to destination folder

.github/workflows/hugo.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,8 @@ jobs:
1717
steps:
1818
- name: Checkout code
1919
uses: actions/checkout@v4
20+
with:
21+
persist-credentials: false
2022

2123
- name: Setup Hugo
2224
uses: peaceiris/actions-hugo@v3

.github/workflows/main.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,8 @@ jobs:
4848
steps:
4949
- name: Checkout code
5050
uses: actions/checkout@v4
51+
with:
52+
persist-credentials: false
5153

5254
- name: Setup XenAPI environment
5355
uses: ./.github/workflows/setup-xapi-environment

.github/workflows/other.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,7 @@ jobs:
3535
uses: actions/checkout@v4
3636
with:
3737
fetch-depth: 0 # To check which files changed: origin/master..HEAD
38+
persist-credentials: false
3839
- uses: actions/setup-python@v5
3940
with:
4041
python-version: ${{matrix.python-version}}
@@ -108,6 +109,8 @@ jobs:
108109
steps:
109110
- name: Checkout code
110111
uses: actions/checkout@v4
112+
with:
113+
persist-credentials: false
111114

112115
- name: Generate empty configuration for make to be happy
113116
run: touch config.mk

.github/workflows/release.yml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,8 @@ jobs:
1717
steps:
1818
- name: Checkout code
1919
uses: actions/checkout@v4
20+
with:
21+
persist-credentials: false
2022

2123
- name: Use python
2224
uses: actions/setup-python@v5
@@ -28,7 +30,7 @@ jobs:
2830

2931
- name: Generate python package for XenAPI
3032
run: |
31-
echo "export XAPI_VERSION=${{ github.ref_name }}" > config.mk
33+
echo "export XAPI_VERSION=${GITHUB_REF_NAME}" > config.mk
3234
make python
3335
3436
- name: Store python distribution artifacts
@@ -109,7 +111,7 @@ jobs:
109111
- name: Create release ${{ github.ref_name }}
110112
shell: bash
111113
run: |
112-
gh release create ${{ github.ref_name }} --repo ${{ github.repository }} --generate-notes dist/* \
114+
gh release create "${GITHUB_REF_NAME}" --repo ${{ github.repository }} --generate-notes dist/* \
113115
PowerShell-SDK-7.x-prerelease-unsigned.zip \
114116
Go-SDK-prerelease-unsigned.zip \
115117
libxenserver-prerelease.tar.gz libxenserver-prerelease.src.tar.gz

.github/workflows/setup-xapi-environment/action.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,4 +70,6 @@ runs:
7070

7171
- name: Configure
7272
shell: bash
73-
run: opam exec -- ./configure --xapi_version="${{ inputs.xapi_version }}"
73+
run: opam exec -- ./configure --xapi_version="${INPUTS_XAPI_VERSION}"
74+
env:
75+
INPUTS_XAPI_VERSION: ${{ inputs.xapi_version }}

0 commit comments

Comments
 (0)