Skip to content

Commit 5c43c68

Browse files
authored
Fix GitHub Actions certs.jar download failure (#1260)
[Actions are failing](https://github.com/hazelcast/hazelcast-cpp-client/actions/runs/13401995252) due to an inability to download `certs.jar`. Nothing has changed on the source side, but we are accessing it via `raw.githubusercontent.com`. I can only assume that there's been some update to the format of these URLs. Instead, we can download the file using the GitHub API (via `gh`) which should: - be more stable long term - actually work
1 parent 8e468f1 commit 5c43c68

File tree

3 files changed

+9
-9
lines changed

3 files changed

+9
-9
lines changed

.github/actions/build-test/unix/action.yml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,8 +36,9 @@ runs:
3636
steps:
3737
- name: Download hazelcast-enterprise-tests.jar
3838
shell: ${{ env.shell }}
39-
run: |
40-
curl -H "Authorization: token ${{ inputs.GH_TOKEN }}" https://raw.githubusercontent.com/hazelcast/private-test-artifacts/data/certs.jar > hazelcast-enterprise-${{ env.HAZELCAST_VERSION }}-tests.jar
39+
gh api "/repos/hazelcast/private-test-artifacts/contents/certs.jar?ref=data" -H "Accept: application/vnd.github.raw" > hazelcast-enterprise-${{ env.HAZELCAST_VERSION }}-tests.jar
40+
env:
41+
GH_TOKEN: ${{ inputs.GH_TOKEN }}
4142

4243
- name: Build & Install
4344
env:

.github/actions/build-test/windows/action.yml

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -56,12 +56,9 @@ runs:
5656

5757
- name: Download hazelcast-enterprise-tests.jar
5858
shell: ${{ env.shell }}
59-
run: |
60-
[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12
61-
Invoke-WebRequest `
62-
https://raw.githubusercontent.com/hazelcast/private-test-artifacts/data/certs.jar `
63-
-Headers @{"Authorization"="token ${{ inputs.GH_TOKEN }}"} `
64-
-OutFile hazelcast-enterprise-${{ env.HAZELCAST_VERSION }}-tests.jar
59+
gh api "/repos/hazelcast/private-test-artifacts/contents/certs.jar?ref=data" -H "Accept: application/vnd.github.raw" > hazelcast-enterprise-${{ env.HAZELCAST_VERSION }}-tests.jar
60+
env:
61+
GH_TOKEN: ${{ inputs.GH_TOKEN }}
6562

6663
- name: Install SysInternals
6764
shell: ${{ env.shell }}

.github/actions/coverage-report/action.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,9 @@ runs:
3939
- name: Download hazelcast-enterprise-tests.jar
4040
shell: ${{ env.shell }}
4141
run: |
42-
curl -H "Authorization: token ${{ inputs.GH_TOKEN }}" https://raw.githubusercontent.com/hazelcast/private-test-artifacts/data/certs.jar > hazelcast-enterprise-${{ env.HAZELCAST_VERSION }}-tests.jar
42+
gh api "/repos/hazelcast/private-test-artifacts/contents/certs.jar?ref=data" -H "Accept: application/vnd.github.raw" > hazelcast-enterprise-${{ env.HAZELCAST_VERSION }}-tests.jar
43+
env:
44+
GH_TOKEN: ${{ inputs.GH_TOKEN }}
4345

4446
- name: Install Boost
4547
shell: ${{ env.shell }}

0 commit comments

Comments
 (0)