Skip to content

Commit 215d3a3

Browse files
[CI] Use GITHUB_TOKEN for drivers_install.sh during containers build (#10973)
So that we are not limited to 60 queries per IP per hour.
1 parent 16b3d9e commit 215d3a3

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

devops/actions/build_container/action.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,4 +39,5 @@ runs:
3939
build-args: ${{ inputs.build-args }}
4040
context: ${{ github.workspace }}/devops
4141
file: ${{ github.workspace }}/devops/containers/${{ inputs.file }}.Dockerfile
42-
42+
secrets: |
43+
github_token=${{ github.token }}

devops/containers/ubuntu2204_intel_drivers.Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ COPY scripts/install_drivers.sh /
2020

2121
RUN mkdir /runtimes
2222
ENV INSTALL_LOCATION=/runtimes
23-
RUN /install_drivers.sh --all
23+
RUN --mount=type=secret,id=github_token GITHUB_TOKEN=$(cat /run/secrets/github_token) /install_drivers.sh --all
2424

2525
COPY scripts/drivers_entrypoint.sh /drivers_entrypoint.sh
2626

0 commit comments

Comments
 (0)