action #158236
openBacklog Limits Checker github workflow fails on pull requests from forks size:S
0%
Description
Observation¶
https://github.com/openSUSE/backlogger/actions/runs/8468254805/job/23200822772
The workflow is creating a preview of the HTML page in the origin gh-pages branch.
For that, it needs the right permissions. A PR with a branch from origin works, but it fails for forks.
Maybe there are other options to make it work.
Suggestions¶
- Research how previews could be done
- Give permissions to upstream to forks
- Store the preview elsewhere
- Lookup other ways to do this in the preview action, or other actions doing this
Updated by ybonatakis 22 days ago
- Status changed from Workable to In Progress
- Assignee set to ybonatakis
Updated by ybonatakis 22 days ago
for now i am waiting to get permissions to the https://github.com/openSUSE/backlogger as i cant access the settings
Updated by ybonatakis 18 days ago
- Status changed from Workable to In Progress
access granted. I can open settings on https://github.com/openSUSE/backlogger now.
Updated by ybonatakis 18 days ago
I added the REDMINE_API_KEY in the forked repo but this didnt work.
I found an open issue which lists some limitation for forked jobs and i commented there, and hope to get some answer/solution https://github.com/rossjrw/pr-preview-action/issues/54
Updated by openqa_review 17 days ago
- Due date set to 2024-04-24
Setting due date based on mean cycle time of SUSE QE Tools
Updated by ybonatakis 17 days ago
- Due date deleted (
2024-04-24)
From the documentation is clear that the workflow doesnt work from forked repos in the current version. There is a PR[0] to fix the issue in the v2 but it is not ready yet.
Updated by ybonatakis 17 days ago
- Status changed from In Progress to Feedback
ybonatakis wrote in #note-8:
I added the REDMINE_API_KEY in the forked repo but this didnt work.
I found an open issue which lists some limitation for forked jobs and i commented there, and hope to get some answer/solution https://github.com/rossjrw/pr-preview-action/issues/54
I got an answer too https://github.com/rossjrw/pr-preview-action/issues/54#issuecomment-2046165272 confirming the state of the project. there is a workaround tho which comes with some security caveats.
Change it to feedback for further discussion
Updated by livdywan 17 days ago
Discussed in the unblock:
- In the context of https://github.com/openSUSE/backlogger/blob/main/.github/workflows/preview.yaml#L24C11-L24C58
- Change from pull_request to pull_request_target
- Drop the API key in the preview use case (and adapt as necessary)
- Consider checking if it makes sense to limit the allowed output to HTML
Updated by ybonatakis 17 days ago
Updated by openqa_review 16 days ago
- Due date set to 2024-04-25
Setting due date based on mean cycle time of SUSE QE Tools
Updated by ybonatakis 5 days ago
- Status changed from Feedback to In Progress
reopen due to the comment in the PR[0].
the testing commit is checked out but then Run the action implemented in this repo
runs another checkout.
[0] https://github.com/openSUSE/backlogger/pull/38#issuecomment-2064171707
Updated by ybonatakis 5 days ago
- Status changed from In Progress to Feedback
https://github.com/openSUSE/backlogger/pull/42 seems to work properly
Updated by ybonatakis 3 days ago ยท Edited
addressing the comment[0] from @tinita i encountered an unrelated issue with the container. the previews actions looks good tho with the correct commit hash
[0] https://github.com/openSUSE/backlogger/pull/42#discussion_r1575344367
Updated by ybonatakis 3 days ago
i think it works https://github.com/openSUSE/backlogger/actions/runs/8815937064/job/24220533045
but i cant tell for sure how it will affect https://github.com/os-autoinst/qa-tools-backlog-assistant/blob/master/.github/workflows/backlog_checker.yml#L21
Updated by livdywan 1 day ago
- Due date changed from 2024-04-25 to 2024-05-03
ybonatakis wrote in #note-20:
i think it works https://github.com/openSUSE/backlogger/actions/runs/8815937064/job/24220533045
but i cant tell for sure how it will affect https://github.com/os-autoinst/qa-tools-backlog-assistant/blob/master/.github/workflows/backlog_checker.yml#L21
Is this the correct link? That's a PR on the upstream repo. We need the preview to work on forks.
Updated by livdywan about 20 hours ago
- Status changed from In Progress to Workable
Let's discuss this on Monday. Pulling a ticket in progress without confirming someone can work on it is not enough to get it done. If someone did work on, or further discuss this, please do add your comments here of course.