-
-
Notifications
You must be signed in to change notification settings - Fork 5.7k
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
Support downloading raw task logs #24451
Conversation
What about the permission? Anyone who can access this page can download them? |
IMO, yes. Since one can access this page, they should be able to see the log content on the page. So why can't they download the log file? |
Do these logs have secrets? |
The secrets in logs will be converted into |
be9b329
to
d64e0fd
Compare
routers/web/repo/actions/view.go
Outdated
defer reader.Close() | ||
|
||
ctx.ServeContent(reader, &context_module.ServeHeaderOptions{ | ||
Filename: job.Name + ".txt", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
.log? Maybe the name should include the number.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I would do a pattern like $workflow-$job-$id.log
.
Fixed in 228bc9b: ![]() ![]() |
Done with my fixes, leaving the rest to you @vitalif. |
Co-authored-by: Jason Song <[email protected]>
Oh, thanks for merging, I was thinking about fixing UI :) |
Still fixes outstanding? If so, needs a new PR :) |
Ok, no problem :) |
@silverwind |
I don't understand. Do we need to re-apply it in a separate PR? |
@silverwind The reason why we lost your patch is that after you push your code, it seems that @vitalif didn't notice that and made a force push to the branch: |
Indeed, the force-push eliminated my changes. Now this is rather hard to recover as all server-side data was destroyed. Maybe I still have it in my local reflog, need to check. Maybe we should consider disabling force push for PR branches, if GitHub has such an option. I personally always force-push with Edit: Luckily I linked the commit above, 90% sure it was only that single one. |
Ressurect lost changes from #24451. - Always show icons for each entry in the menu - Make all checkboxes toggle only their feature, e.g. "seconds" and "timestamps" can now be toggled on together. - Reorder the items <img width="845" alt="Screenshot 2023-08-01 at 19 19 27" src="https://github.com/go-gitea/gitea/assets/115237/8a76e9bf-7966-42a6-87c9-e88cdddaec82"> --------- Co-authored-by: Giteabot <[email protected]>
Hi! This pull request adds support for downloading raw task logs for Gitea Actions, similar to Github Actions It looks like the following: 
Ressurect lost changes from go-gitea#24451. - Always show icons for each entry in the menu - Make all checkboxes toggle only their feature, e.g. "seconds" and "timestamps" can now be toggled on together. - Reorder the items <img width="845" alt="Screenshot 2023-08-01 at 19 19 27" src="https://github.com/go-gitea/gitea/assets/115237/8a76e9bf-7966-42a6-87c9-e88cdddaec82"> --------- Co-authored-by: Giteabot <[email protected]>
Hi!

This pull request adds support for downloading raw task logs for Gitea Actions, similar to Github Actions
It looks like the following: