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 github action actor check for binary-build #1551

Merged
merged 1 commit into from
Nov 28, 2023

Conversation

MMMMMMorty
Copy link
Member

Overview

Added a check before running the binary-build job to ensure that the owner of the repository is kubescape.

Fixes: #1482

Additional Information

I tested #1490, it seems it doesn't work properly. Since for the repository_owner, it is the same for internal or external PR, which is kubescape, so it cannot skip the job. More than that, the check is added to pr-scanner instead of binary-build.

Here, I check the actor of the action instead of repository_owner, for me (external PR), it will be MMMMMMorty, instead of kubescape.

I tested this on my other PR https://github.com/kubescape/kubescape/actions/runs/7019483545, it skips the binary-build.

Signed-off-by: mmmmmmorty <mmmmmmorty@outlook.com>
@matthyx matthyx merged commit a2aa52f into kubescape:master Nov 28, 2023
2 checks passed
@matthyx
Copy link
Contributor

matthyx commented Nov 28, 2023

thanks @MMMMMMorty

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Actions 00-pr-scanner failed for external pr because I cannot set username and password for quay
2 participants