From a9a3ef32e0cf3fef1aecf66a9e6db1dc2632bb48 Mon Sep 17 00:00:00 2001 From: kranurag7 Date: Fri, 31 May 2024 13:52:48 +0530 Subject: [PATCH 1/2] update builder image to 1.1.9 version Signed-off-by: kranurag7 --- .builder-image-version.txt | 2 +- .github/workflows/pr-lint.yml | 2 +- .github/workflows/schedule-scan-image.yml | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/.builder-image-version.txt b/.builder-image-version.txt index 18efdb9a..512a1faa 100644 --- a/.builder-image-version.txt +++ b/.builder-image-version.txt @@ -1 +1 @@ -1.1.8 +1.1.9 diff --git a/.github/workflows/pr-lint.yml b/.github/workflows/pr-lint.yml index 601cbf5b..44962827 100644 --- a/.github/workflows/pr-lint.yml +++ b/.github/workflows/pr-lint.yml @@ -21,7 +21,7 @@ jobs: if: github.event_name != 'pull_request' || !github.event.pull_request.draft runs-on: ubuntu-latest container: - image: ghcr.io/sovereigncloudstack/cso-builder:1.1.8 + image: ghcr.io/sovereigncloudstack/cso-builder:1.1.9 credentials: username: ${{ github.actor }} password: ${{ secrets.github_token }} diff --git a/.github/workflows/schedule-scan-image.yml b/.github/workflows/schedule-scan-image.yml index 7562525e..090f9032 100644 --- a/.github/workflows/schedule-scan-image.yml +++ b/.github/workflows/schedule-scan-image.yml @@ -9,7 +9,7 @@ jobs: name: Trivy runs-on: ubuntu-latest container: - image: ghcr.io/sovereigncloudstack/cso-builder:1.1.8 + image: ghcr.io/sovereigncloudstack/cso-builder:1.1.9 credentials: username: ${{ github.actor }} password: ${{ secrets.github_token }} From 034fec91d74dd6b316034ec8b73b4e334ba4f70d Mon Sep 17 00:00:00 2001 From: kranurag7 Date: Fri, 31 May 2024 17:40:43 +0530 Subject: [PATCH 2/2] avoid linter warnings Signed-off-by: kranurag7 --- pkg/github/client/github_client.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/github/client/github_client.go b/pkg/github/client/github_client.go index 9f26800e..83e4a114 100644 --- a/pkg/github/client/github_client.go +++ b/pkg/github/client/github_client.go @@ -103,7 +103,7 @@ func (c *realGhClient) GetReleaseByTag(ctx context.Context, tag string) (*github // DownloadReleaseAssets downloads a list of release assets. func (c *realGhClient) DownloadReleaseAssets(ctx context.Context, release *github.RepositoryRelease, path string, assetlist []string) error { - if err := os.MkdirAll(path, os.ModePerm); err != nil { + if err := os.MkdirAll(path, os.ModePerm); err != nil { //nolint:gosec //nolint:ignore return fmt.Errorf("failed to create destination directory: %w", err) } // Extract the release assets