diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index bf1780b880b5..f3f513c5931b 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -32,6 +32,7 @@ jobs: - uses: golangci/golangci-lint-action@v3 with: version: v1.44.2 + skip-cache: true args: --timeout=5m # diff --git a/releases/v1.6.2.toml b/releases/v1.6.2.toml new file mode 100644 index 000000000000..1c9d6182c5e7 --- /dev/null +++ b/releases/v1.6.2.toml @@ -0,0 +1,21 @@ +# commit to be tagged for new release +commit = "HEAD" + +project_name = "containerd" +github_repo = "containerd/containerd" +match_deps = "^github.com/(containerd/[a-zA-Z0-9-]+)$" + +# previous release +previous = "v1.6.1" + +pre_release = false + +preface = """\ +The second patch release for containerd 1.6 includes a fix for +[CVE-2022-24769](https://github.com/containerd/containerd/security/advisories/GHSA-c9cp-9c75-9v8c). + +### Notable Updates + +* **Fix the inheritable capability defaults** ([GHSA-c9cp-9c75-9v8c](https://github.com/containerd/containerd/security/advisories/GHSA-c9cp-9c75-9v8c)) + +See the changelog for complete list of changes""" diff --git a/runtime/v2/shim/shim.go b/runtime/v2/shim/shim.go index 59e522cede4e..9d3a904237eb 100644 --- a/runtime/v2/shim/shim.go +++ b/runtime/v2/shim/shim.go @@ -169,7 +169,7 @@ func setLogger(ctx context.Context, id string) (context.Context, error) { l.Logger.SetLevel(logrus.DebugLevel) } f, err := openLog(ctx, id) - if err != nil { + if err != nil { //nolint:staticcheck // Ignore SA4023 as some platforms always return error return ctx, err } l.Logger.SetOutput(f) @@ -255,12 +255,12 @@ func run(ctx context.Context, manager Manager, initFunc Init, name string, confi setRuntime() signals, err := setupSignals(config) - if err != nil { + if err != nil { //nolint:staticcheck // Ignore SA4023 as some platforms always return error return err } if !config.NoSubreaper { - if err := subreaper(); err != nil { + if err := subreaper(); err != nil { //nolint:staticcheck // Ignore SA4023 as some platforms always return error return err } } @@ -418,7 +418,7 @@ func run(ctx context.Context, manager Manager, initFunc Init, name string, confi } server, err := newServer() - if err != nil { + if err != nil { //nolint:staticcheck // Ignore SA4023 as some platforms always return error return fmt.Errorf("failed creating server: %w", err) } @@ -428,7 +428,7 @@ func run(ctx context.Context, manager Manager, initFunc Init, name string, confi } } - if err := serve(ctx, server, signals, sd.Shutdown); err != nil { + if err := serve(ctx, server, signals, sd.Shutdown); err != nil { //nolint:staticcheck // Ignore SA4023 as some platforms always return error if err != shutdown.ErrShutdown { return err } @@ -460,7 +460,7 @@ func serve(ctx context.Context, server *ttrpc.Server, signals chan os.Signal, sh } l, err := serveListener(socketFlag) - if err != nil { + if err != nil { //nolint:staticcheck // Ignore SA4023 as some platforms always return error return err } go func() { diff --git a/version/version.go b/version/version.go index a92784ef8191..07e9f9ccc2c2 100644 --- a/version/version.go +++ b/version/version.go @@ -23,7 +23,7 @@ var ( Package = "github.com/containerd/containerd" // Version holds the complete version number. Filled in at linking time. - Version = "1.6.1+unknown" + Version = "1.6.2+unknown" // Revision is filled with the VCS (e.g. git) revision being used to build // the program at linking time.