-
Notifications
You must be signed in to change notification settings - Fork 114
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add git-cherry-pick pipeline (#1278)
* Add git-cherry-pick pipeline --------- Signed-off-by: Krish Jain <krish.jain@chainguard.dev>
- Loading branch information
1 parent
86ef7c0
commit df975c9
Showing
4 changed files
with
212 additions
and
31 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
# Built-in git pipeline | ||
|
||
Melange includes a built-in pipeline to checkout git repos. | ||
|
||
To get started quickly, checkout the `git-checkout` pipeline. | ||
|
||
|
||
How to use it? | ||
|
||
``` | ||
- uses: git-checkout | ||
with: | ||
repository: <UPDATE-ME> | ||
tag: ${{package.version}} | ||
expected-commit: <UPDATE-ME> | ||
``` | ||
|
||
You have these inputs (defined in https://github.com/chainguard-dev/melange/blob/main/pkg/build/pipelines/git-checkout.yaml): | ||
|
||
How to use the cherry-picking feature? | ||
|
||
|
||
To fix https://nvd.nist.gov/vuln/detail/CVE-2024-4032 for example you can do something nice: | ||
|
||
``` | ||
pipeline: | ||
- uses: git-checkout | ||
with: | ||
expected-commit: 976ea78599d71f22e9c0fefc2dc37c1d9fc835a4 | ||
repository: https://github.com/python/cpython.git | ||
tag: v3.10.14 | ||
cherry-picks: | | ||
3.10/c62c9e518b784fe44432a3f4fc265fb95b651906: CVE-2024-4032 | ||
``` | ||
|
||
Note the format of cherry-picking: ``[branch/]commit: comment here`` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.