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 are shown at gitea actions when the reposity is a github mirror. #30244

Closed
yekanchi opened this issue Apr 2, 2024 · 11 comments
Closed
Labels

Comments

@yekanchi
Copy link

yekanchi commented Apr 2, 2024

Description

if you mirror a repository from Github to Giteaand you have some Github actions. they yml files and some running history of Github actions are show inside the Gitea actions tab, I think it's weird.

Gitea Version

1.22 dev

Operating System

windows

How are you running Gitea?

local

@lunny
Copy link
Member

lunny commented Apr 2, 2024

I don't think we have migrated the history actions tasks log. Maybe it triggered the actions when migrating.

@yekanchi
Copy link
Author

yekanchi commented Apr 2, 2024

I don't think we have migrated the history actions tasks log. Maybe it triggered the actions when migrating.

I checked again, yes it's triggered, it's not migrated.

@lunny lunny added issue/not-a-bug The reported issue is the intended behavior or the problem is not inside Gitea and removed type/bug labels Apr 2, 2024
@yekanchi
Copy link
Author

this is an example , a mirror repository of cache actions in local gitea casues actions to show up. whie the local repository has disabled actions.
image

image

@lunny lunny added type/bug and removed issue/not-a-bug The reported issue is the intended behavior or the problem is not inside Gitea labels May 30, 2024
@Zettat123
Copy link
Contributor

This is weird. I noticed that there are some scheduled workflows in this repository. I guess some of the scheduled workflows might be running after the migration and before disabling Actions.

And I agree that we should disable Actions for mirror repositories by default (#30350)

@somera
Copy link

somera commented Oct 15, 2024

I have same problem.

@Zettat123
Copy link
Contributor

You can use the doctor command added in #32424 to disable "Actions" unit for mirrors.

@somera
Copy link

somera commented Nov 13, 2024

You can use the doctor command added in #32424 to disable "Actions" unit for mirrors.

This can be used with the next release?

At the moment I'm using own python script which makes an REST-API Call for affected mirrors.

@lunny
Copy link
Member

lunny commented Nov 13, 2024

I think it can be backported to v1.22. I have added the backport label, a new backport PR will be created later.

@lunny lunny added this to the 1.22.4 milestone Nov 13, 2024
@somera
Copy link

somera commented Nov 26, 2024

@lunny I installed 1.22.4 and when I add new mirror I see activated actions again.

@lunny
Copy link
Member

lunny commented Nov 26, 2024

Sorry, I think this hasn't been backported to v1.22.4 @Zettat123

@lunny lunny removed this from the 1.22.4 milestone Nov 26, 2024
@somera
Copy link

somera commented Nov 26, 2024

It's ok. ;) I have my python script to patch this. ;)

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

No branches or pull requests

4 participants