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

GitHub Actions run on Forks #60

Closed
Rabenherz112 opened this issue Aug 18, 2023 · 2 comments · Fixed by #62
Closed

GitHub Actions run on Forks #60

Rabenherz112 opened this issue Aug 18, 2023 · 2 comments · Fixed by #62
Assignees
Milestone

Comments

@Rabenherz112
Copy link
Collaborator

For quite some time now, I've been receiving notifications about failed pipelines. These notifications are being triggered because the jobs are currently running on forks as well.

2023-08-18-12-01_271

While it's possible for me to simply disable all actions on the forked repository by navigating to Settings > Actions > Actions permissions and choosing "Disable Actions for this repository," I believe this solution is not ideal, as it would require every user who contribute to this project to perform this manual step individually.

Fortunately, GitHub provides a solution template to address this issue. The problem could be easily resolved by implementing an if condition, as demonstrated in the example provided in GitHub's documentation on workflow syntax for GitHub Actions:
GitHub Actions Workflow Syntax Example

It might be worth considering this approach before making this repo the new main awesome-selfhosted repo.

@nodiscc nodiscc self-assigned this Aug 18, 2023
@nodiscc nodiscc added this to the 1.0.0 milestone Aug 18, 2023
@nodiscc
Copy link
Member

nodiscc commented Aug 18, 2023

Thank you for reporting this. I will apply the fix you suggested.

@nodiscc
Copy link
Member

nodiscc commented Aug 19, 2023

Done in #62

the jobs are currently running on forks as well.

Strange, I do not get the same behavior when I fork the repo to my personal account. For me all workflows seem to be disabled by default, clicking on the Actions tab asks me to enable them manually:

image

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