mirror of
https://github.com/hashicorp/vault.git
synced 2026-06-27 18:10:26 -04:00
Upgrade `cloudflare/circl` to v1.6.3 to resolve CVE-2026-1229. We had several transient dependencies that depend on various versions of `circl` that also needed to be updated in order to resolve the latest version everywhere. - github.com/ProtonMail/go-crypto v1.2.0 => v1.3.0 - github.com/google/go-github v17 => v83/v83.0.0 - github.com/google/go-github/v81 => v83/v83.0.0 Signed-off-by: Ryan Cragun <me@ryan.ec> Co-authored-by: Ryan Cragun <me@ryan.ec>
34 lines
697 B
Go
34 lines
697 B
Go
// Copyright IBM Corp. 2016, 2025
|
|
// SPDX-License-Identifier: BUSL-1.1
|
|
|
|
package github
|
|
|
|
import (
|
|
"context"
|
|
"log/slog"
|
|
|
|
libgithub "github.com/google/go-github/v83/github"
|
|
slogctx "github.com/veqryn/slog-context"
|
|
)
|
|
|
|
// closeIssue closes an issue.
|
|
func closeIssue(
|
|
ctx context.Context,
|
|
github *libgithub.Client,
|
|
owner string,
|
|
repo string,
|
|
issueNumber int,
|
|
) error {
|
|
ctx = slogctx.Append(ctx,
|
|
slog.String("owner", owner),
|
|
slog.String("repo", repo),
|
|
slog.Int("issue-number", issueNumber),
|
|
)
|
|
slog.Default().DebugContext(ctx, "closing issue")
|
|
|
|
_, _, err := github.Issues.Edit(ctx, owner, repo, issueNumber, &libgithub.IssueRequest{
|
|
State: libgithub.Ptr("closed"),
|
|
})
|
|
|
|
return err
|
|
}
|