CVS-175243 use primary hf token openvino#3818
Open
jkoniusz wants to merge 26 commits into
Open
Conversation
Contributor
There was a problem hiding this comment.
Pull request overview
Updates CI workflows to switch Hugging Face authentication from an environment-passed token to a mounted secrets file, aiming to avoid HF API rate limit issues.
Changes:
- Added
HF_TOKEN_PATHenv var and mounted/home/runner/secrets/huggingfaceinto several container jobs. - Removed passing
HF_TOKENinto container jobs viacontainer.options. - Minor text changes in workflow step naming and CODEOWNERS comments.
Reviewed changes
Copilot reviewed 2 out of 2 changed files in this pull request and generated 4 comments.
| File | Description |
|---|---|
| .github/workflows/manylinux_2_28.yml | Adds HF token file path + secrets mount; removes container env passthrough for HF token. |
| .github/workflows/linux.yml | Same HF token file path + secrets mount change; includes a step-name typo. |
| .github/CODEOWNERS | Comment-only change (introduces an accidental trailing character). |
Comments suppressed due to low confidence (1)
.github/workflows/linux.yml:735
- Typo in step name:
Download Build Artifactsxlooks accidental and will make logs/searching inconsistent. Rename back toDownload Build Artifacts.
- name: Download Build Artifacts
Comment on lines
+38
to
+40
| # To switch to the secondary HF token, replace `token-primary` with `token-secondary`: | ||
| # HF_TOKEN_PATH: /home/runner/secrets/huggingface/token-secondary | ||
| HF_TOKEN_PATH: /home/runner/secrets/huggingface/token-primary |
Comment on lines
+38
to
+40
| # To switch to the secondary HF token, replace `token-primary` with `token-secondary`: | ||
| # HF_TOKEN_PATH: /home/runner/secrets/huggingface/token-secondary | ||
| HF_TOKEN_PATH: /home/runner/secrets/huggingface/token-primary |
Comment on lines
+38
to
+40
| # To switch to the secondary HF token, replace `token-primary` with `token-secondary`: | ||
| # HF_TOKEN_PATH: /home/runner/secrets/huggingface/token-secondary | ||
| HF_TOKEN_PATH: /home/runner/secrets/huggingface/token-primary |
Comment on lines
+38
to
+40
| # To switch to the secondary HF token, replace `token-primary` with `token-secondary`: | ||
| # HF_TOKEN_PATH: /home/runner/secrets/huggingface/token-secondary | ||
| HF_TOKEN_PATH: /home/runner/secrets/huggingface/token-primary |
Comment on lines
+732
to
+733
| echo "HF_TOKEN_PATH=${{ runner.os == 'Linux' && env.HF_TOKEN_PATH_LIN || env.HF_TOKEN_PATH_WIN }}" >> "$GITHUB_ENV" | ||
|
|
Comment on lines
+840
to
+841
| echo "HF_TOKEN_PATH=${{ runner.os == 'Linux' && env.HF_TOKEN_PATH_LIN || env.HF_TOKEN_PATH_WIN }}" >> "$GITHUB_ENV" | ||
|
|
| - name: Setup Variables | ||
| run: | | ||
| echo "HF_TOKEN_PATH=${{ runner.os == 'Linux' && env.HF_TOKEN_PATH_LIN || env.HF_TOKEN_PATH_WIN }}" >> "$GITHUB_ENV" | ||
|
|
| - name: Setup Variables | ||
| run: | | ||
| echo "HF_TOKEN_PATH=${{ runner.os == 'Linux' && env.HF_TOKEN_PATH_LIN || env.HF_TOKEN_PATH_WIN }}" >> "$GITHUB_ENV" | ||
|
|
Comment on lines
+38
to
+42
| # To switch to the primary HF token, change the filename from `token-secondary` to `token-primary`: | ||
| # HF_TOKEN_PATH_LIN: /home/runner/secrets/huggingface/token-primary | ||
| # HF_TOKEN_PATH_WIN: "C:\\mount\\secrets\\huggingface\\token-primary" | ||
| HF_TOKEN_PATH_LIN: /home/runner/secrets/huggingface/token-secondary | ||
| HF_TOKEN_PATH_WIN: "C:\\mount\\secrets\\huggingface\\token-secondary" |
| - name: Setup Variables | ||
| run: | | ||
| echo "HF_TOKEN_PATH=${{ runner.os == 'Linux' && env.HF_TOKEN_PATH_LIN || env.HF_TOKEN_PATH_WIN }}" >> "$GITHUB_ENV" | ||
|
|
Comment on lines
+711
to
+712
| echo "HF_TOKEN_PATH=${{ runner.os == 'Linux' && env.HF_TOKEN_PATH_LIN || env.HF_TOKEN_PATH_WIN }}" >> "$GITHUB_ENV" | ||
|
|
Comment on lines
+38
to
+42
| # To switch to the primary HF token, change the filename from `token-secondary` to `token-primary`: | ||
| # HF_TOKEN_PATH_LIN: /home/runner/secrets/huggingface/token-primary | ||
| # HF_TOKEN_PATH_WIN: "C:\\mount\\secrets\\huggingface\\token-primary" | ||
| HF_TOKEN_PATH_LIN: /home/runner/secrets/huggingface/token-secondary | ||
| HF_TOKEN_PATH_WIN: "C:\\mount\\secrets\\huggingface\\token-secondary" |
| - name: Setup Variables | ||
| run: | | ||
| echo "HF_TOKEN_PATH=${{ runner.os == 'Linux' && env.HF_TOKEN_PATH_LIN || env.HF_TOKEN_PATH_WIN }}" >> "$GITHUB_ENV" | ||
|
|
| steps: | ||
| - name: Setup Variables | ||
| run: | | ||
| echo "HF_TOKEN_PATH=${{ runner.os == 'Linux' && env.HF_TOKEN_PATH_LIN || env.HF_TOKEN_PATH_WIN }}" >> "$GITHUB_ENV" |
| steps: | ||
| - name: Setup Variables | ||
| run: | | ||
| echo "HF_TOKEN_PATH=${{ runner.os == 'Linux' && env.HF_TOKEN_PATH_LIN || env.HF_TOKEN_PATH_WIN }}" >> "$GITHUB_ENV" |
| steps: | ||
| - name: Setup Variables | ||
| run: | | ||
| echo "HF_TOKEN_PATH=${{ runner.os == 'Linux' && env.HF_TOKEN_PATH_LIN || env.HF_TOKEN_PATH_WIN }}" >> "$GITHUB_ENV" |
Comment on lines
+38
to
+42
| # To switch to the primary HF token, change the filename from `token-secondary` to `token-primary`: | ||
| # HF_TOKEN_PATH_LIN: /home/runner/secrets/huggingface/token-primary | ||
| # HF_TOKEN_PATH_WIN: "C:\\mount\\secrets\\huggingface\\token-primary" | ||
| HF_TOKEN_PATH_LIN: /home/runner/secrets/huggingface/token-secondary | ||
| HF_TOKEN_PATH_WIN: "C:\\mount\\secrets\\huggingface\\token-secondary" |
| - name: Setup Variables | ||
| run: | | ||
| echo "HF_TOKEN_PATH=${{ runner.os == 'Linux' && env.HF_TOKEN_PATH_LIN || env.HF_TOKEN_PATH_WIN }}" >> "$GITHUB_ENV" | ||
|
|
| steps: | ||
| - name: Setup Variables | ||
| run: | | ||
| echo "HF_TOKEN_PATH=${{ runner.os == 'Linux' && env.HF_TOKEN_PATH_LIN || env.HF_TOKEN_PATH_WIN }}" >> "$GITHUB_ENV" |
Comment on lines
+38
to
+42
| # To switch to the primary HF token, change the filename from `token-secondary` to `token-primary`: | ||
| # HF_TOKEN_PATH_LIN: /home/runner/secrets/huggingface/token-primary | ||
| # HF_TOKEN_PATH_WIN: "C:\\mount\\secrets\\huggingface\\token-primary" | ||
| HF_TOKEN_PATH_LIN: /home/runner/secrets/huggingface/token-secondary | ||
| HF_TOKEN_PATH_WIN: "C:\\mount\\secrets\\huggingface\\token-secondary" |
jkoniusz
commented
May 19, 2026
Author
jkoniusz
left a comment
There was a problem hiding this comment.
done in similar way like in openvino repo
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description
Pass HF_TOKEN using file instead of environment variables, use the primary token so that API rate limit isn't being exceeded (secondary token will be used in openvino repo(1000 requests token), the primary token will be still used in openvino genai repo(2500 requests token))
CVS-175243
Fixes #(issue)
Checklist: