First request to origin is made without login in first #42
Labels
No labels
Compat/Breaking
Kind/Bug
Kind/Documentation
Kind/Enhancement
Kind/Feature
Kind/Security
Kind/Testing
Priority
Critical
Priority
High
Priority
Low
Priority
Medium
Reviewed
Confirmed
Reviewed
Duplicate
Reviewed
Invalid
Reviewed
Won't Fix
Status
Abandoned
Status
Blocked
Status
Need More Info
No milestone
No assignees
2 participants
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
actions/cascading-pr#42
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
I've tried to use this action on a self‑hosted Forgejo instance with a private origin and destination repository. Unfortunately, the action always failed to get the PR data in the function pr_get_origin. After some time, I realized that this API call is made before the login function is called. While this is not an issue with a public repo, it is a problem with a private one and since a token is supplied, the behavior is also quite unexpected.
The functions are called as follows, and the behavior would be easy to change. Unfortunately, I'm not really familiar with Bash, and I'm not sure how you would write a test to prevent the same behavior in the future; otherwise I would open a PR myself.
Thank you for all the work you put into Forgejo and its tools.
Edit:
The function get_status in cascading-pr-lib.sh is also making requests without authentification. It is using the forgejo-curl.sh directly instead of the repo_curl function from cascading-pr.sh.
it's not a bug. this action was designed to be used with public repos
bug: First request to origin is made without login in firstto First request to origin is made without login in first