Closed mishig25 closed 1 year ago
Use echo >> GITHUB_OUTPUT rather than echo >> GITHUB_ENV because the lines below were previously security vulnerability with echo >> GITHUB_ENV (see hackerrank one)
echo >> GITHUB_OUTPUT
echo >> GITHUB_ENV
https://github.com/huggingface/doc-builder/blob/c33e00834df8e85b18cdefccd56e26acb53a5be0/.github/workflows/upload_pr_documentation.yml#L75-L81
Unlikes GITHUB_ENV, GITHUB_OUTPUT gets sanitized
GITHUB_ENV
GITHUB_OUTPUT
@coyotte508 wdyt https://github.com/huggingface/doc-builder/pull/461/commits/621d1842d666887e995356fc30fccf897f170b49 ?
tested and working at https://github.com/huggingface/diffusers/pull/6018#issuecomment-1836126967
Use
echo >> GITHUB_OUTPUT
rather thanecho >> GITHUB_ENV
because the lines below were previously security vulnerability withecho >> GITHUB_ENV
(see hackerrank one)https://github.com/huggingface/doc-builder/blob/c33e00834df8e85b18cdefccd56e26acb53a5be0/.github/workflows/upload_pr_documentation.yml#L75-L81
Unlikes
GITHUB_ENV
,GITHUB_OUTPUT
gets sanitized