1
0
Fork 0
mirror of https://code.forgejo.org/actions/cascading-pr synced 2025-03-14 22:36:58 +01:00

include all tests in the integration function

This commit is contained in:
Earl Warren 2023-11-01 17:06:59 +01:00
parent 84c7b12c83
commit de6776aa88
No known key found for this signature in database
GPG key ID: 0579CB2928A78A00
2 changed files with 23 additions and 2 deletions

View file

@ -85,6 +85,23 @@ jobs:
update: ./upgrade-lxc-helpers
```
# Pull requests from forked repositories
When `cascading-pr` runs as a consequence of pull request from a
forked repository, the workflow must be triggered by a `pull_request_target`
event otherwise it will not have access to secrets.
# Prevent privilege escalation
When `cascading-pr` runs as a consequence of a pull request from a
repository forked from `orgin-repo`, it should create a pull request
from a forked repository of `destination-repo` by specifying the
`destination-fork-repo`.
If the `destination-fork-repo` repository does not exist, it will be
created as a fork of the `destination-repo` repository, using
`destination-token`.
# Hacking
The test environment consists of the following (all users password is admin1234)

View file

@ -356,10 +356,14 @@ function run() {
}
function integration() {
run create_in_destination_fork_and_close
run no_change_no_cascade_pr
run create_in_destination_fork_and_close
run create_and_close
run create_from_origin_fork_and_close
run create_and_close create_and_merge
run create_and_merge
run create_in_destination_fork_and_close
run create_in_existing_destination_fork_and_close
run create_in_organization_destination_fork_and_close
run create_and_merge_close
}