Skip to content

Commit 5dfd999

Browse files
committed
39284590
1 parent 46a5b55 commit 5dfd999

3 files changed

Lines changed: 7 additions & 3 deletions

File tree

.github/actions/downstream-test/action.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,10 @@ inputs:
2323
arch:
2424
description: Architecture identifier (e.g. amd64/aarch64)
2525
required: true
26+
github_token:
27+
description: Token used only for querying GraalPy CE dev-build releases on macOS
28+
required: false
29+
default: ""
2630

2731
runs:
2832
using: composite
@@ -57,6 +61,8 @@ runs:
5761
- name: Get GraalPy CE dev build
5862
if: ${{ inputs.platform == 'macos' }}
5963
shell: bash
64+
env:
65+
GITHUB_TOKEN: ${{ inputs.github_token }}
6066
run: |
6167
tarball="$(curl -sH "Authorization: token $GITHUB_TOKEN" "https://api.github.com/repos/graalvm/graalvm-ce-dev-builds/releases/latest" | jq -r --arg platform "${{ inputs.platform }}" --arg arch "${{ inputs.arch }}" 'first(.assets[] | select(.name | test("^graalpy[0-9.]+-community-dev-\($platform)-\($arch)\\.(tar\\.gz|zip)$")) | .browser_download_url)')"
6268
curl -sfL "$tarball" | tar xz

.github/workflows/_downstream-test-common.yml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,8 +37,6 @@ jobs:
3737
arch: aarch64
3838

3939
runs-on: ${{ matrix.os.id }}
40-
env:
41-
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
4240

4341
steps:
4442
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
@@ -52,3 +50,4 @@ jobs:
5250
needs_uv: ${{ inputs.needs_uv }}
5351
platform: ${{ matrix.os.platform }}
5452
arch: ${{ matrix.os.arch }}
53+
github_token: ${{ matrix.os.platform == 'macos' && secrets.GITHUB_TOKEN || '' }}

.github/workflows/_downstream-test-oracledb.yml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -169,7 +169,6 @@ jobs:
169169

170170
runs-on: ${{ matrix.os.id }}
171171
env:
172-
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
173172
ORACLE_CLIENT_DIR: /opt/oracle/instantclient
174173
PIP_FIND_LINKS: /tmp/oracledb-wheels
175174
PIP_PREFER_BINARY: "1"

0 commit comments

Comments
 (0)