Skip to content

Commit a43a186

Browse files
committed
Add a note saying that PR/MR URLs are not a good idea
1 parent cfdf817 commit a43a186

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

docs/usage/defining-patches.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,12 @@ You can describe patches to the plugin in one of two ways: the compact format or
1111
In any of the following examples, you can specify a path relative to the root of your project instead of a web address.
1212
{{< /callout >}}
1313

14+
{{< warning title="Avoid using patches autogenerated by PR/MR URLs" >}}
15+
The contents of these patches can change by pushing more commits to a pull request or merge request. A malicious user
16+
could abuse this behavior to cause you to deploy code that you didn't mean to deploy. If you must use a PR/MR as the
17+
basis for a patch, download the patch, include it in your project, and apply the patch using the local path instead.
18+
{{< /warning >}}
19+
1420
### Compact format
1521

1622
```json

0 commit comments

Comments
 (0)