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

chore(ci): remove pull_request_target for external contributions #2051

Merged
merged 1 commit into from
Feb 13, 2025

Conversation

soonum
Copy link
Contributor

@soonum soonum commented Feb 11, 2025

We use large GitHub hosted runners to run CI pipeline for external contributions.
This avoids possible secret exposition due to usage of pull_request_target event.
It also removes a layer a complexity to ensure such secrets are not exposed.

The flow would be improved since tfhe-rs maintainers won't have to relaunch failed jobs individually, thanks to the "approve and run" button in GitHub user interface.


This change is Reviewable

@soonum soonum self-assigned this Feb 11, 2025
@cla-bot cla-bot bot added the cla-signed label Feb 11, 2025
@soonum soonum force-pushed the dt/ci/remove_pr_target branch 6 times, most recently from de9b7af to d48c114 Compare February 12, 2025 14:35
@soonum soonum changed the title [TEST] Run GPU PCC on GitHub instance chore(ci): remove pull_request_target for external contributions Feb 12, 2025
@soonum soonum requested a review from IceTDrinker February 12, 2025 15:16
@soonum soonum added the ci label Feb 12, 2025
@soonum soonum marked this pull request as ready for review February 12, 2025 15:16
Copy link
Member

@IceTDrinker IceTDrinker left a comment

Choose a reason for hiding this comment

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

Reviewed 5 of 31 files at r1, all commit messages.
Reviewable status: 5 of 31 files reviewed, 1 unresolved discussion (waiting on @soonum)


.github/actions/gpu_setup/action.yml line 48 at r1 (raw file):

        echo "CUDA_PATH=$CUDA_PATH" >> "${GITHUB_ENV}"
        echo "PATH=$PATH:$CUDA_PATH/bin" >> "${GITHUB_PATH}"
        echo "LD_LIBRARY_PATH=$CUDA_PATH/lib64:$LD_LIBRARY_PATH" >> "${GITHUB_ENV}"        

you have whitespaces here and below at the end of the line

We use large GitHub hosted runners to run CI pipeline for external
contributions. This avoids possible secret exposition due to usage
of pull_request_target event. It also removes a layer a complexity
to ensure such secrets are not exposed.
The flow would be improved since tfhe-rs maintainers won't have to
relaunch failed jobs individually, thanks to the "approve and run"
button in GitHub user interface.
@soonum soonum force-pushed the dt/ci/remove_pr_target branch from d48c114 to 6bc87fe Compare February 12, 2025 15:59
@soonum soonum requested a review from IceTDrinker February 12, 2025 16:08
Copy link
Member

@IceTDrinker IceTDrinker left a comment

Choose a reason for hiding this comment

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

Thanks a lot !

Reviewed 26 of 31 files at r1, 1 of 1 files at r2, all commit messages.
Reviewable status: :shipit: complete! all files reviewed, all discussions resolved (waiting on @IceTDrinker)

@soonum soonum merged commit eeb6c8a into main Feb 13, 2025
103 of 108 checks passed
@soonum soonum deleted the dt/ci/remove_pr_target branch February 13, 2025 07:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants