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): fix pull_request_target event handling #1928

Merged
merged 2 commits into from
Jan 8, 2025

Conversation

soonum
Copy link
Contributor

@soonum soonum commented Jan 7, 2025

No description provided.

soonum added 2 commits January 7, 2025 17:45
Previously pull_request and pull_request_target events were both
emitted thus leading one cancelling the other because of
concurrency group name format.
Since external contribution needs to be allowed we only need
pull_request_target event.
This induces a failure if the job has to run AND if the triggering actor isn't a member of the zama-ai organization. That would help tfhe-rs maintainers to re-run only workflows that are supposed to run.

The reference is selected based on the event emitted.

We also now use token with restricted permission to check out the repository.
@soonum soonum requested a review from IceTDrinker January 7, 2025 16:50
@soonum soonum self-assigned this Jan 7, 2025
@cla-bot cla-bot bot added the cla-signed label Jan 7, 2025
@soonum soonum merged commit e99676f into release/0.11.x Jan 8, 2025
460 of 478 checks passed
@soonum soonum deleted the dt/ci/fix_event_handling branch January 8, 2025 08:30
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