diff --git a/.github/workflows/codeql-analysis.yml b/.github/workflows/codeql-analysis.yml index af95c5268c2d..5b35a50fe418 100644 --- a/.github/workflows/codeql-analysis.yml +++ b/.github/workflows/codeql-analysis.yml @@ -57,7 +57,7 @@ jobs: egress-policy: audit # TODO: change to 'egress-policy: block' after couple of runs - name: Checkout repository - uses: actions/checkout@8f4b7f84864484a7bf31766abe9204da3cbe65b3 # v2.3.4 + uses: actions/checkout@83b7061638ee4956cf7545a6f7efe594e5ad0247 # v2.3.4 # Initializes the CodeQL tools for scanning. - name: Initialize CodeQL diff --git a/.github/workflows/depsreview.yml b/.github/workflows/depsreview.yml index 790cdb42eeac..0349a9f2697d 100644 --- a/.github/workflows/depsreview.yml +++ b/.github/workflows/depsreview.yml @@ -22,6 +22,6 @@ jobs: runs-on: ubuntu-latest steps: - name: 'Checkout Repository' - uses: actions/checkout@8f4b7f84864484a7bf31766abe9204da3cbe65b3 + uses: actions/checkout@83b7061638ee4956cf7545a6f7efe594e5ad0247 - name: 'Dependency Review' uses: actions/dependency-review-action@f46c48ed6d4f1227fb2d9ea62bf6bcbed315589e diff --git a/.github/workflows/docker.yml b/.github/workflows/docker.yml index de9ce555e717..16b32b388c3f 100644 --- a/.github/workflows/docker.yml +++ b/.github/workflows/docker.yml @@ -36,12 +36,12 @@ jobs: docs_only: ${{ steps.docs_only_check.outputs.docs_only }} steps: - name: Check out code - uses: actions/checkout@8f4b7f84864484a7bf31766abe9204da3cbe65b3 #v3.5.0 + uses: actions/checkout@83b7061638ee4956cf7545a6f7efe594e5ad0247 #v3.5.1 with: fetch-depth: 2 - id: files name: Get changed files - uses: tj-actions/changed-files@b109d83a62e94cf7c522bf6c15cb25c175850b16 #v35.7.12 + uses: tj-actions/changed-files@7ecfc6730dff8072d1cc5215a24cc9478f55264d #v35.8.0 with: files_ignore: '**.md' - id: docs_only_check @@ -86,7 +86,7 @@ jobs: restore-keys: | ${{ runner.os }}-go- - name: Clone the code - uses: actions/checkout@8f4b7f84864484a7bf31766abe9204da3cbe65b3 # v2.3.4 + uses: actions/checkout@83b7061638ee4956cf7545a6f7efe594e5ad0247 # v2.3.4 with: fetch-depth: 0 - name: Setup Go @@ -134,7 +134,7 @@ jobs: restore-keys: | ${{ runner.os }}-go- - name: Clone the code - uses: actions/checkout@8f4b7f84864484a7bf31766abe9204da3cbe65b3 # v2.3.4 + uses: actions/checkout@83b7061638ee4956cf7545a6f7efe594e5ad0247 # v2.3.4 with: fetch-depth: 0 - name: Setup Go @@ -182,7 +182,7 @@ jobs: restore-keys: | ${{ runner.os }}-go- - name: Clone the code - uses: actions/checkout@8f4b7f84864484a7bf31766abe9204da3cbe65b3 # v2.3.4 + uses: actions/checkout@83b7061638ee4956cf7545a6f7efe594e5ad0247 # v2.3.4 with: fetch-depth: 0 - name: Setup Go @@ -230,7 +230,7 @@ jobs: restore-keys: | ${{ runner.os }}-go- - name: Clone the code - uses: actions/checkout@8f4b7f84864484a7bf31766abe9204da3cbe65b3 # v2.3.4 + uses: actions/checkout@83b7061638ee4956cf7545a6f7efe594e5ad0247 # v2.3.4 with: fetch-depth: 0 - name: Setup Go @@ -278,7 +278,7 @@ jobs: restore-keys: | ${{ runner.os }}-go- - name: Clone the code - uses: actions/checkout@8f4b7f84864484a7bf31766abe9204da3cbe65b3 # v2.3.4 + uses: actions/checkout@83b7061638ee4956cf7545a6f7efe594e5ad0247 # v2.3.4 with: fetch-depth: 0 - name: Setup Go @@ -326,7 +326,7 @@ jobs: restore-keys: | ${{ runner.os }}-go- - name: Clone the code - uses: actions/checkout@8f4b7f84864484a7bf31766abe9204da3cbe65b3 # v2.3.4 + uses: actions/checkout@83b7061638ee4956cf7545a6f7efe594e5ad0247 # v2.3.4 with: fetch-depth: 0 - name: Setup Go @@ -374,7 +374,7 @@ jobs: restore-keys: | ${{ runner.os }}-go- - name: Clone the code - uses: actions/checkout@8f4b7f84864484a7bf31766abe9204da3cbe65b3 # v2.3.4 + uses: actions/checkout@83b7061638ee4956cf7545a6f7efe594e5ad0247 # v2.3.4 with: fetch-depth: 0 - name: Setup Go diff --git a/.github/workflows/goreleaser.yaml b/.github/workflows/goreleaser.yaml index d5e1a404d016..90090261f44c 100644 --- a/.github/workflows/goreleaser.yaml +++ b/.github/workflows/goreleaser.yaml @@ -36,7 +36,7 @@ jobs: egress-policy: audit # TODO: change to 'egress-policy: block' after couple of runs - name: Checkout - uses: actions/checkout@8f4b7f84864484a7bf31766abe9204da3cbe65b3 # v2.3.4 + uses: actions/checkout@83b7061638ee4956cf7545a6f7efe594e5ad0247 # v2.3.4 with: fetch-depth: 0 - name: Set up Go diff --git a/.github/workflows/integration.yml b/.github/workflows/integration.yml index b526a7836978..530f3f5a42a4 100644 --- a/.github/workflows/integration.yml +++ b/.github/workflows/integration.yml @@ -42,7 +42,7 @@ jobs: egress-policy: audit # TODO: change to 'egress-policy: block' after couple of runs - name: pull_request actions/checkout - uses: actions/checkout@8f4b7f84864484a7bf31766abe9204da3cbe65b3 # v2.3.4 + uses: actions/checkout@83b7061638ee4956cf7545a6f7efe594e5ad0247 # v2.3.4 with: ref: ${{ github.event.pull_request.head.sha }} diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 585a7195f059..91d160a7decb 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -54,7 +54,7 @@ jobs: restore-keys: | ${{ runner.os }}-go- - name: Clone the code - uses: actions/checkout@8f4b7f84864484a7bf31766abe9204da3cbe65b3 # v2.3.4 + uses: actions/checkout@83b7061638ee4956cf7545a6f7efe594e5ad0247 # v2.3.4 with: fetch-depth: 0 - name: Setup Go @@ -99,7 +99,7 @@ jobs: restore-keys: | ${{ runner.os }}-go- - name: Clone the code - uses: actions/checkout@8f4b7f84864484a7bf31766abe9204da3cbe65b3 # v2.3.4 + uses: actions/checkout@83b7061638ee4956cf7545a6f7efe594e5ad0247 # v2.3.4 with: fetch-depth: 0 - name: Setup Go @@ -147,7 +147,7 @@ jobs: restore-keys: | ${{ runner.os }}-go- - name: Clone the code - uses: actions/checkout@8f4b7f84864484a7bf31766abe9204da3cbe65b3 # v2.3.4 + uses: actions/checkout@83b7061638ee4956cf7545a6f7efe594e5ad0247 # v2.3.4 with: fetch-depth: 0 - name: Setup Go @@ -182,7 +182,7 @@ jobs: version: ${{ env.PROTOC_VERSION }} repo-token: ${{ secrets.GITHUB_TOKEN }} - name: Clone the code - uses: actions/checkout@8f4b7f84864484a7bf31766abe9204da3cbe65b3 # v2.3.4 + uses: actions/checkout@83b7061638ee4956cf7545a6f7efe594e5ad0247 # v2.3.4 with: fetch-depth: 0 - name: Setup Go @@ -230,7 +230,7 @@ jobs: restore-keys: | ${{ runner.os }}-go- - name: Clone the code - uses: actions/checkout@8f4b7f84864484a7bf31766abe9204da3cbe65b3 # v2.3.4 + uses: actions/checkout@83b7061638ee4956cf7545a6f7efe594e5ad0247 # v2.3.4 with: fetch-depth: 0 - name: Setup Go @@ -278,7 +278,7 @@ jobs: restore-keys: | ${{ runner.os }}-go- - name: Clone the code - uses: actions/checkout@8f4b7f84864484a7bf31766abe9204da3cbe65b3 # v2.3.4 + uses: actions/checkout@83b7061638ee4956cf7545a6f7efe594e5ad0247 # v2.3.4 with: fetch-depth: 0 - name: Setup Go @@ -326,7 +326,7 @@ jobs: restore-keys: | ${{ runner.os }}-go- - name: Clone the code - uses: actions/checkout@8f4b7f84864484a7bf31766abe9204da3cbe65b3 # v2.3.4 + uses: actions/checkout@83b7061638ee4956cf7545a6f7efe594e5ad0247 # v2.3.4 with: fetch-depth: 0 - name: Setup Go @@ -374,7 +374,7 @@ jobs: restore-keys: | ${{ runner.os }}-go- - name: Clone the code - uses: actions/checkout@8f4b7f84864484a7bf31766abe9204da3cbe65b3 # v2.3.4 + uses: actions/checkout@83b7061638ee4956cf7545a6f7efe594e5ad0247 # v2.3.4 with: fetch-depth: 0 - name: Setup Go @@ -422,7 +422,7 @@ jobs: restore-keys: | ${{ runner.os }}-go- - name: Clone the code - uses: actions/checkout@8f4b7f84864484a7bf31766abe9204da3cbe65b3 # v2.3.4 + uses: actions/checkout@83b7061638ee4956cf7545a6f7efe594e5ad0247 # v2.3.4 with: fetch-depth: 0 - name: Setup Go @@ -470,7 +470,7 @@ jobs: restore-keys: | ${{ runner.os }}-go- - name: Clone the code - uses: actions/checkout@8f4b7f84864484a7bf31766abe9204da3cbe65b3 # v2.3.4 + uses: actions/checkout@83b7061638ee4956cf7545a6f7efe594e5ad0247 # v2.3.4 with: fetch-depth: 0 - name: Setup Go @@ -518,7 +518,7 @@ jobs: restore-keys: | ${{ runner.os }}-go- - name: Clone the code - uses: actions/checkout@8f4b7f84864484a7bf31766abe9204da3cbe65b3 # v2.3.4 + uses: actions/checkout@83b7061638ee4956cf7545a6f7efe594e5ad0247 # v2.3.4 with: fetch-depth: 0 - name: Setup Go @@ -566,7 +566,7 @@ jobs: restore-keys: | ${{ runner.os }}-go- - name: Clone the code - uses: actions/checkout@8f4b7f84864484a7bf31766abe9204da3cbe65b3 # v2.3.4 + uses: actions/checkout@83b7061638ee4956cf7545a6f7efe594e5ad0247 # v2.3.4 with: fetch-depth: 0 - name: Setup Go @@ -614,7 +614,7 @@ jobs: restore-keys: | ${{ runner.os }}-go- - name: Clone the code - uses: actions/checkout@8f4b7f84864484a7bf31766abe9204da3cbe65b3 # v2.3.4 + uses: actions/checkout@83b7061638ee4956cf7545a6f7efe594e5ad0247 # v2.3.4 with: fetch-depth: 0 - name: Setup Go @@ -662,7 +662,7 @@ jobs: restore-keys: | ${{ runner.os }}-go- - name: Clone the code - uses: actions/checkout@8f4b7f84864484a7bf31766abe9204da3cbe65b3 # v2.3.4 + uses: actions/checkout@83b7061638ee4956cf7545a6f7efe594e5ad0247 # v2.3.4 with: fetch-depth: 0 - name: Setup Go @@ -710,7 +710,7 @@ jobs: restore-keys: | ${{ runner.os }}-go- - name: Clone the code - uses: actions/checkout@8f4b7f84864484a7bf31766abe9204da3cbe65b3 # v2.3.4 + uses: actions/checkout@83b7061638ee4956cf7545a6f7efe594e5ad0247 # v2.3.4 with: fetch-depth: 0 - name: Setup Go @@ -745,7 +745,7 @@ jobs: version: ${{ env.PROTOC_VERSION }} repo-token: ${{ secrets.GITHUB_TOKEN }} - name: Clone the code - uses: actions/checkout@8f4b7f84864484a7bf31766abe9204da3cbe65b3 # v2.3.4 + uses: actions/checkout@83b7061638ee4956cf7545a6f7efe594e5ad0247 # v2.3.4 with: fetch-depth: 0 - name: Setup Go @@ -782,7 +782,7 @@ jobs: restore-keys: | ${{ runner.os }}-go- - name: Clone the code - uses: actions/checkout@8f4b7f84864484a7bf31766abe9204da3cbe65b3 # v2.3.4 + uses: actions/checkout@83b7061638ee4956cf7545a6f7efe594e5ad0247 # v2.3.4 with: fetch-depth: 0 - name: Setup Go @@ -829,7 +829,7 @@ jobs: restore-keys: | ${{ runner.os }}-go- - name: Clone the code - uses: actions/checkout@8f4b7f84864484a7bf31766abe9204da3cbe65b3 # v2.3.4 + uses: actions/checkout@83b7061638ee4956cf7545a6f7efe594e5ad0247 # v2.3.4 with: fetch-depth: 0 - name: Setup Go @@ -864,7 +864,7 @@ jobs: version: ${{ env.PROTOC_VERSION }} repo-token: ${{ secrets.GITHUB_TOKEN }} - name: Clone the code - uses: actions/checkout@8f4b7f84864484a7bf31766abe9204da3cbe65b3 # v2.3.4 + uses: actions/checkout@83b7061638ee4956cf7545a6f7efe594e5ad0247 # v2.3.4 with: fetch-depth: 0 - name: Setup Go @@ -893,7 +893,7 @@ jobs: with: egress-policy: audit # TODO: change to 'egress-policy: block' after couple of runs - - uses: actions/checkout@8f4b7f84864484a7bf31766abe9204da3cbe65b3 # v2.3.4 + - uses: actions/checkout@83b7061638ee4956cf7545a6f7efe594e5ad0247 # v2.3.4 - uses: actions/setup-go@4d34df0c2316fe8122ab82dc22947d607c0c91f9 # v2.2.0 with: go-version: ${{ env.GO_VERSION }} diff --git a/.github/workflows/publishimage.yml b/.github/workflows/publishimage.yml index aaa6573791f8..625ff5bbe7ac 100644 --- a/.github/workflows/publishimage.yml +++ b/.github/workflows/publishimage.yml @@ -40,7 +40,7 @@ jobs: egress-policy: audit # TODO: change to 'egress-policy: block' after couple of runs - name: Clone the code - uses: actions/checkout@8f4b7f84864484a7bf31766abe9204da3cbe65b3 + uses: actions/checkout@83b7061638ee4956cf7545a6f7efe594e5ad0247 with: fetch-depth: 0 - name: Setup Go diff --git a/.github/workflows/scorecard-analysis.yml b/.github/workflows/scorecard-analysis.yml index ff636d2b4907..48785f086557 100644 --- a/.github/workflows/scorecard-analysis.yml +++ b/.github/workflows/scorecard-analysis.yml @@ -22,7 +22,7 @@ jobs: steps: - name: "Checkout code" - uses: actions/checkout@8f4b7f84864484a7bf31766abe9204da3cbe65b3 + uses: actions/checkout@83b7061638ee4956cf7545a6f7efe594e5ad0247 - name: "Run analysis" uses: ossf/scorecard-action@80e868c13c90f172d68d1f4501dee99e2479f7af # v2.1.3 diff --git a/.github/workflows/slsa-goreleaser.yml b/.github/workflows/slsa-goreleaser.yml index c7a2a0512804..926c89508a85 100644 --- a/.github/workflows/slsa-goreleaser.yml +++ b/.github/workflows/slsa-goreleaser.yml @@ -15,7 +15,7 @@ jobs: ldflags: ${{ steps.ldflags.outputs.value }} steps: - id: checkout - uses: actions/checkout@8f4b7f84864484a7bf31766abe9204da3cbe65b3 # v2.3.4 + uses: actions/checkout@83b7061638ee4956cf7545a6f7efe594e5ad0247 # v2.3.4 with: fetch-depth: 0 - id: ldflags diff --git a/checker/client_test.go b/checker/client_test.go new file mode 100644 index 000000000000..cd73f3725a5e --- /dev/null +++ b/checker/client_test.go @@ -0,0 +1,126 @@ +// Copyright 2023 OpenSSF Scorecard Authors +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +package checker + +import ( + "context" + "testing" + + "github.com/ossf/scorecard/v4/log" +) + +// nolint:paralleltest +// because we are using t.Setenv. +func TestGetClients(t *testing.T) { //nolint:gocognit + type args struct { //nolint:govet + ctx context.Context + repoURI string + localURI string + logger *log.Logger + } + tests := []struct { //nolint:govet + name string + args args + shouldOSSFuzzBeNil bool + shouldRepoClientBeNil bool + shouldVulnClientBeNil bool + shouldRepoBeNil bool + shouldCIIBeNil bool + wantErr bool + experimental bool + }{ + { + name: "localURI is not empty", + args: args{ + ctx: context.Background(), + repoURI: "", + localURI: "foo", + }, + shouldOSSFuzzBeNil: false, + shouldRepoClientBeNil: false, + shouldVulnClientBeNil: false, + shouldRepoBeNil: true, + wantErr: true, + }, + { + name: "repoURI is not empty", + args: args{ + ctx: context.Background(), + repoURI: "foo", + localURI: "", + }, + shouldOSSFuzzBeNil: false, + shouldRepoClientBeNil: false, + shouldVulnClientBeNil: false, + shouldRepoBeNil: true, + wantErr: true, + }, + { + name: "repoURI is gitlab which is not supported", + args: args{ + ctx: context.Background(), + repoURI: "https://gitlab.com/ossf/scorecard", + localURI: "", + }, + shouldOSSFuzzBeNil: false, + shouldRepoClientBeNil: false, + shouldVulnClientBeNil: false, + shouldRepoBeNil: true, + wantErr: true, + }, + { + name: "repoURI is gitlab and experimental is true", + args: args{ + ctx: context.Background(), + repoURI: "https://gitlab.com/ossf/scorecard", + localURI: "", + }, + shouldOSSFuzzBeNil: false, + shouldRepoBeNil: false, + shouldRepoClientBeNil: false, + shouldVulnClientBeNil: false, + shouldCIIBeNil: false, + wantErr: false, + experimental: true, + }, + } + + for _, tt := range tests { + tt := tt + t.Run(tt.name, func(t *testing.T) { + if tt.experimental { + t.Setenv("SCORECARD_EXPERIMENTAL", "true") + } + got, repoClient, ossFuzzClient, ciiClient, vulnsClient, err := GetClients(tt.args.ctx, tt.args.repoURI, tt.args.localURI, tt.args.logger) //nolint:lll + if (err != nil) != tt.wantErr { + t.Fatalf("GetClients() error = %v, wantErr %v", err, tt.wantErr) + } + if tt.shouldRepoBeNil != (got == nil) { + t.Errorf("GetClients() got = %v", got) + } + if repoClient != nil && tt.shouldRepoClientBeNil { + t.Errorf("GetClients() repoClient = %v ", repoClient) + } + if ossFuzzClient != nil && tt.shouldOSSFuzzBeNil { + t.Errorf("GetClients() ossFuzzClient = %v ", ossFuzzClient) + } + if ciiClient != nil && tt.shouldCIIBeNil { + t.Errorf("GetClients() ciiClient = %v", ciiClient) + } + if vulnsClient != nil && tt.shouldVulnClientBeNil { + t.Errorf("GetClients() vulnsClient = %v", vulnsClient) + } + }) + } +} diff --git a/go.mod b/go.mod index 74d549612203..36621be81094 100644 --- a/go.mod +++ b/go.mod @@ -30,7 +30,7 @@ require ( github.com/shurcooL/githubv4 v0.0.0-20201206200315-234843c633fa github.com/shurcooL/graphql v0.0.0-20200928012149-18c5c3165e3a // indirect github.com/sirupsen/logrus v1.9.0 - github.com/spf13/cobra v1.6.1 + github.com/spf13/cobra v1.7.0 github.com/xeipuuv/gojsonschema v1.2.0 go.opencensus.io v0.24.0 gocloud.dev v0.29.0 @@ -44,7 +44,7 @@ require ( ) require ( - github.com/Masterminds/semver/v3 v3.2.0 + github.com/Masterminds/semver/v3 v3.2.1 github.com/caarlos0/env/v6 v6.10.0 github.com/gobwas/glob v0.2.3 github.com/google/osv-scanner v1.3.1 @@ -146,7 +146,7 @@ require ( github.com/googleapis/enterprise-certificate-proxy v0.2.3 // indirect github.com/googleapis/gax-go/v2 v2.7.1 // indirect github.com/imdario/mergo v0.3.13 // indirect - github.com/inconshreveable/mousetrap v1.0.1 // indirect + github.com/inconshreveable/mousetrap v1.1.0 // indirect github.com/jbenet/go-context v0.0.0-20150711004518-d14ea06fba99 // indirect github.com/jmespath/go-jmespath v0.4.0 // indirect github.com/kevinburke/ssh_config v1.2.0 // indirect diff --git a/go.sum b/go.sum index a05634fea5d8..0a876c235290 100644 --- a/go.sum +++ b/go.sum @@ -513,8 +513,8 @@ github.com/HdrHistogram/hdrhistogram-go v1.1.2/go.mod h1:yDgFjdqOqDEKOvasDdhWNXY github.com/JohnCGriffin/overflow v0.0.0-20211019200055-46fa312c352c h1:RGWPOewvKIROun94nF7v2cua9qP+thov/7M50KEoeSU= github.com/Knetic/govaluate v3.0.1-0.20171022003610-9aa49832a739+incompatible/go.mod h1:r7JcOSlj0wfOMncg0iLm8Leh48TZaKVeNIfJntJ2wa0= github.com/Masterminds/semver/v3 v3.1.1/go.mod h1:VPu/7SZ7ePZ3QOrcuXROw5FAcLl4a0cBrbBpGY/8hQs= -github.com/Masterminds/semver/v3 v3.2.0 h1:3MEsd0SM6jqZojhjLWWeBY+Kcjy9i6MQAeY7YgDP83g= -github.com/Masterminds/semver/v3 v3.2.0/go.mod h1:qvl/7zhW3nngYb5+80sSMF+FG2BjYrf8m9wsX0PNOMQ= +github.com/Masterminds/semver/v3 v3.2.1 h1:RN9w6+7QoMeJVGyfmbcgs28Br8cvmnucEXnY0rYXWg0= +github.com/Masterminds/semver/v3 v3.2.1/go.mod h1:qvl/7zhW3nngYb5+80sSMF+FG2BjYrf8m9wsX0PNOMQ= github.com/Microsoft/go-winio v0.4.11/go.mod h1:VhR8bwka0BXejwEJY73c50VrPtXAaKcyvVC4A4RozmA= github.com/Microsoft/go-winio v0.4.14/go.mod h1:qXqCSQ3Xa7+6tgxaGTIe4Kpcdsi+P8jBhyzoq1bpyYA= github.com/Microsoft/go-winio v0.4.15-0.20190919025122-fc70bd9a86b5/go.mod h1:tTuCMEN+UleMWgg9dVx4Hu52b1bJo+59jBh3ajtinzw= @@ -1375,8 +1375,8 @@ github.com/imdario/mergo v0.3.12/go.mod h1:jmQim1M+e3UYxmgPu/WyfjB3N3VflVyUjjjwH github.com/imdario/mergo v0.3.13 h1:lFzP57bqS/wsqKssCGmtLAb8A0wKjLGrve2q3PPVcBk= github.com/imdario/mergo v0.3.13/go.mod h1:4lJ1jqUDcsbIECGy0RUJAXNIhg+6ocWgb1ALK2O4oXg= github.com/inconshreveable/mousetrap v1.0.0/go.mod h1:PxqpIevigyE2G7u3NXJIT2ANytuPF1OarO4DADm73n8= -github.com/inconshreveable/mousetrap v1.0.1 h1:U3uMjPSQEBMNp1lFxmllqCPM6P5u/Xq7Pgzkat/bFNc= -github.com/inconshreveable/mousetrap v1.0.1/go.mod h1:vpF70FUmC8bwa3OWnCshd2FqLfsEA9PFc4w1p2J65bw= +github.com/inconshreveable/mousetrap v1.1.0 h1:wN+x4NVGpMsO7ErUn/mUI3vEoE6Jt13X2s0bqwp9tc8= +github.com/inconshreveable/mousetrap v1.1.0/go.mod h1:vpF70FUmC8bwa3OWnCshd2FqLfsEA9PFc4w1p2J65bw= github.com/influxdata/influxdb1-client v0.0.0-20200827194710-b269163b24ab/go.mod h1:qj24IKcXYK6Iy9ceXlo3Tc+vtHo9lIhSX5JddghvEPo= github.com/intel/goresctrl v0.2.0/go.mod h1:+CZdzouYFn5EsxgqAQTEzMfwKwuc0fVdMrT9FCCAVRQ= github.com/ionos-cloud/sdk-go/v6 v6.1.3/go.mod h1:Ox3W0iiEz0GHnfY9e5LmAxwklsxguuNFEUSu0gVRTME= @@ -1889,8 +1889,8 @@ github.com/spf13/cobra v0.0.3/go.mod h1:1l0Ry5zgKvJasoi3XT1TypsSe7PqH0Sj9dhYf7v3 github.com/spf13/cobra v1.0.0/go.mod h1:/6GTrnGXV9HjY+aR4k0oJ5tcvakLuG6EuKReYlHNrgE= github.com/spf13/cobra v1.1.1/go.mod h1:WnodtKOvamDL/PwE2M4iKs8aMDBZ5Q5klgD3qfVJQMI= github.com/spf13/cobra v1.1.3/go.mod h1:pGADOWyqRD/YMrPZigI/zbliZ2wVD/23d+is3pSWzOo= -github.com/spf13/cobra v1.6.1 h1:o94oiPyS4KD1mPy2fmcYYHHfCxLqYjJOhGsCHFZtEzA= -github.com/spf13/cobra v1.6.1/go.mod h1:IOw/AERYS7UzyrGinqmz6HLUo219MORXGxhbaJUqzrY= +github.com/spf13/cobra v1.7.0 h1:hyqWnYt1ZQShIddO5kBpj3vu05/++x6tJ6dg8EC572I= +github.com/spf13/cobra v1.7.0/go.mod h1:uLxZILRyS/50WlhOIKD7W6V5bgeIt+4sICxh6uRMrb0= github.com/spf13/jwalterweatherman v1.0.0/go.mod h1:cQK4TGJAtQXfYWX+Ddv3mKDzgVb68N+wFjFa4jdeBTo= github.com/spf13/jwalterweatherman v1.1.0/go.mod h1:aNWZUN0dPAAO/Ljvb5BEdw96iTZ0EXowPYD95IqWIGo= github.com/spf13/pflag v0.0.0-20170130214245-9ff6c6923cff/go.mod h1:DYY7MBk1bdzusC3SYhjObp+wFpr4gzcvqqNjLnInEg4=