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

add huggingface mutator #308

Merged
merged 8 commits into from
May 13, 2023
Merged

add huggingface mutator #308

merged 8 commits into from
May 13, 2023

Conversation

batmac
Copy link
Owner

@batmac batmac commented Apr 15, 2023

No description provided.

// and finally the content of the file ~/.cache/huggingface/token
token, source := os.Getenv("HUGGING_FACE_HUB_TOKEN"), "HUGGING_FACE_HUB_TOKEN"
if token == "" {
token, source = os.Getenv("HF_API_KEY"), "HF_API_KEY"

Check failure

Code scanning / gosec

Potential hardcoded credentials

Potential hardcoded credentials
// then the content of the file $HF_HOME/token
// then the content of the file ~/.huggingface/token
// and finally the content of the file ~/.cache/huggingface/token
token, source := os.Getenv("HUGGING_FACE_HUB_TOKEN"), "HUGGING_FACE_HUB_TOKEN"

Check failure

Code scanning / gosec

Potential hardcoded credentials

Potential hardcoded credentials
@codecov
Copy link

codecov bot commented Apr 15, 2023

Codecov Report

Merging #308 (900eb36) into main (26be2bc) will decrease coverage by 0.11%.
The diff coverage is 56.04%.

@@            Coverage Diff             @@
##             main     #308      +/-   ##
==========================================
- Coverage   60.24%   60.13%   -0.11%     
==========================================
  Files          96       97       +1     
  Lines        3539     3630      +91     
==========================================
+ Hits         2132     2183      +51     
- Misses       1173     1205      +32     
- Partials      234      242       +8     
Impacted Files Coverage Δ
pkg/mutators/single/huggingface.go 56.04% <56.04%> (ø)

@batmac batmac merged commit 6f56e4a into main May 13, 2023
@batmac batmac deleted the huggingface branch May 13, 2023 19:37
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.

1 participant