Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

FIX [CI] Fix test docker CI #1535

Merged
merged 5 commits into from
Mar 18, 2024
Merged

FIX [CI] Fix test docker CI #1535

merged 5 commits into from
Mar 18, 2024

Conversation

younesbelkada
Copy link
Contributor

@younesbelkada younesbelkada commented Mar 5, 2024

This fixes the issue we had with the test-docker-build workflow, as stated by the dependabot here we should make use of env variables to avoid issues

cc @glegendre01 @sayakpaul @pacman100 @BenjaminBossan

uses: actions/checkout@v3
- name: Get changed files
id: changed-files
uses: tj-actions/changed-files@1c8e6069583811afb28f97afeaf8e7da80c6be5c #v42
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

points out to the latest commit

Comment on lines 27 to 33
env:
ALL_CHANGED_FILES: ${{ steps.changed-files.outputs.all_changed_files }}
run: |
for file in "$ALL_CHANGED_FILES"; do
echo "$file was changed"
done
echo "matrix=${{ steps.changed-files.outputs.all_changed_files}}" >> $GITHUB_OUTPUT
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this is the main change

@HuggingFaceDocBuilderDev

The docs for this PR live here. All of your documentation changes will be reflected on that endpoint. The docs are available until 30 days after the last update.

Copy link
Member

@sayakpaul sayakpaul left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Works for me! Could you maybe push a change to a Dockerfile (add a safe dependency, maybe) to see if it's effective?

@younesbelkada
Copy link
Contributor Author

@BenjaminBossan
Copy link
Member

I'll leave it up to an expert to judge if this is a sufficient mitigation for the linked vuln.

@glegendre01
Copy link
Contributor

LGTM

@younesbelkada younesbelkada merged commit 8dd45b7 into main Mar 18, 2024
14 checks passed
@younesbelkada younesbelkada deleted the younesbelkada-fix-workflow branch March 18, 2024 15:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants