Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Change PR body #40

Merged
merged 2 commits into from
Jun 20, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion pkg/action/action.go
Original file line number Diff line number Diff line change
Expand Up @@ -257,14 +257,15 @@ func (fa *FrizbeeAction) createPR(ctx context.Context) error {
defaultBranch := repository.GetDefaultBranch()

fa.bodyBuilder = &strings.Builder{}
fa.bodyBuilder.WriteString("## Frizbee: Pin images and actions to commit hash\n\n")
fa.bodyBuilder.WriteString("The following PR pins images and actions to their commit hash.\n\n")
fa.bodyBuilder.WriteString("Pinning images and actions to their commit hash ensures that the same " +
"version of the image or action is used every time the workflow runs. This is important for " +
"reproducibility and security.\n\n")
//nolint:lll
fa.bodyBuilder.WriteString("Pinning is a [security practice recommended by GitHub](https://docs.github.com/en/actions/security-guides/security-hardening-for-github-actions#using-third-party-actions).\n\n")
//nolint:lll
fa.bodyBuilder.WriteString("> 🌟 If you like this action, why not try out [Minder](https://github.com/stacklok/minder), the secure supply chain platform. It has vastly more protections and is also free (as in :beer:) to opensource projects.")
fa.bodyBuilder.WriteString("🥏 Posted on behalf of [frizbee-action](https://github.com/stacklok/frizbee-action) 🥏, by [Stacklok](https://stacklok.com).\n\n")

// Create a new PR
pr, _, err := fa.Client.PullRequests.Create(ctx, fa.RepoOwner, fa.RepoName, &github.NewPullRequest{
Expand Down