From f82576aff5d7fd7cef1f3c71f2a8f62b9a3b8a5e Mon Sep 17 00:00:00 2001 From: mcred Date: Tue, 4 Jun 2024 06:11:27 +0000 Subject: [PATCH 01/26] Automatic update to packages.json --- internal/app/packages.json | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/internal/app/packages.json b/internal/app/packages.json index abc5b96..fe499df 100644 --- a/internal/app/packages.json +++ b/internal/app/packages.json @@ -482,6 +482,13 @@ "algorithm": "SHA1", "checksum": "267298601816385f54620b08d131979b3fdb8aae", "liquibaseCore": "4.24.0" + }, + { + "tag": "1.4.0", + "path": "https://repo1.maven.org/maven2/org/liquibase/ext/liquibase-commercial-mongodb/1.4.0/liquibase-commercial-mongodb-1.4.0.jar", + "algorithm": "SHA1", + "checksum": "50924b8a4a28998cf95f7ee13412e4203f1089e1", + "liquibaseCore": "4.28.0" } ] }, From c50d346b724c7c8a508bb26e2e94e63d851fdffa Mon Sep 17 00:00:00 2001 From: mcred Date: Mon, 10 Jun 2024 14:24:26 +0000 Subject: [PATCH 02/26] Automatic update to packages.json --- internal/app/packages.json | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/internal/app/packages.json b/internal/app/packages.json index fe499df..78410b1 100644 --- a/internal/app/packages.json +++ b/internal/app/packages.json @@ -523,6 +523,13 @@ "algorithm": "SHA1", "checksum": "7a371751ff0c6c53ed5641a8814abc66c6e3213a", "liquibaseCore": "4.24.0" + }, + { + "tag": "0.1.4", + "path": "https://repo1.maven.org/maven2/org/liquibase/ext/liquibase-git-resource/0.1.4/liquibase-git-resource-0.1.4.jar", + "algorithm": "SHA1", + "checksum": "1c7d32aab8144c30693af08abe787200b9273a16", + "liquibaseCore": "4.24.0" } ] }, From 3f8f92cc1a78a846f386fdb4d3c837646209172a Mon Sep 17 00:00:00 2001 From: mcred Date: Tue, 18 Jun 2024 06:11:23 +0000 Subject: [PATCH 03/26] Automatic update to packages.json --- internal/app/packages.json | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/internal/app/packages.json b/internal/app/packages.json index 78410b1..c645b5d 100644 --- a/internal/app/packages.json +++ b/internal/app/packages.json @@ -37,6 +37,13 @@ "algorithm": "SHA1", "checksum": "dc3c418a258e0228522046b48c5c77d7119685f6", "liquibaseCore": "4.26.0" + }, + { + "tag": "1.2.0", + "path": "https://repo1.maven.org/maven2/org/liquibase/ext/liquibase-databricks/1.2.0/liquibase-databricks-1.2.0.jar", + "algorithm": "SHA1", + "checksum": "c8244dec9ca0e374dc5de87688b8af857065da6d", + "liquibaseCore": "4.28.0" } ] }, From 6146f3e13011482250e20e608b3be617cf263044 Mon Sep 17 00:00:00 2001 From: mcred Date: Fri, 21 Jun 2024 06:11:32 +0000 Subject: [PATCH 04/26] Automatic update to packages.json --- internal/app/packages.json | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/internal/app/packages.json b/internal/app/packages.json index c645b5d..d44c130 100644 --- a/internal/app/packages.json +++ b/internal/app/packages.json @@ -2911,6 +2911,13 @@ "algorithm": "SHA1", "checksum": "8555c90692ba8072f082c1fcaebd391ef518e15c", "liquibaseCore": "" + }, + { + "tag": "12.6.3", + "path": "https://repo1.maven.org/maven2/com/microsoft/sqlserver/mssql-jdbc/12.6.3.jre11/mssql-jdbc-12.6.3.jre11.jar", + "algorithm": "SHA1", + "checksum": "88e2be5bc1ac4debaef4cd768a65c76808f3e532", + "liquibaseCore": "" } ] }, From 9e51beec70ebf3c0676571a9268923ce31ee6104 Mon Sep 17 00:00:00 2001 From: Derek Smart Date: Fri, 21 Jun 2024 09:35:42 -0400 Subject: [PATCH 05/26] bump go version for cve-2024-24790 --- go.mod | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/go.mod b/go.mod index e88490d..e4889b2 100644 --- a/go.mod +++ b/go.mod @@ -1,6 +1,6 @@ module package-manager -go 1.22.0 +go 1.22.4 require ( github.com/google/go-github/v39 v39.2.0 From cf0fc87765a7195b33c35c2b5d095bf7131b2720 Mon Sep 17 00:00:00 2001 From: Alejandro Alvarez Date: Thu, 4 Jul 2024 10:31:35 +0200 Subject: [PATCH 06/26] =?UTF-8?q?=E2=9C=A8=20(attach-artifact-release.yml)?= =?UTF-8?q?:=20Add=20workflow=20to=20attach=20artifact=20to=20release=20wi?= =?UTF-8?q?th=20necessary=20steps=20for=20building=20and=20setting=20up=20?= =?UTF-8?q?environment=20=E2=9C=A8=20(codeql.yml):=20Add=20CodeQL=20workfl?= =?UTF-8?q?ow=20for=20analyzing=20code=20quality=20with=20specific=20confi?= =?UTF-8?q?guration=20for=20Go=20language=20=E2=9C=A8=20(create-release.ym?= =?UTF-8?q?l):=20Add=20workflow=20to=20create=20a=20release=20with=20secre?= =?UTF-8?q?ts=20inheritance=20=F0=9F=94=A7=20(pull-request.yml):=20Remove?= =?UTF-8?q?=20outdated=20workflow=20for=20PR=20quality=20gate=20?= =?UTF-8?q?=F0=9F=94=A7=20(release-drafter.yml):=20Remove=20outdated=20wor?= =?UTF-8?q?kflow=20for=20release=20drafter=20=E2=9C=A8=20(test.yml):=20Add?= =?UTF-8?q?=20workflow=20for=20PR=20quality=20gate=20with=20steps=20for=20?= =?UTF-8?q?testing,=20code=20analysis,=20and=20artifact=20management?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/attach-artifact-release.yml | 39 ++++++++++++ .../{codeql-analysis.yml => codeql.yml} | 2 +- .github/workflows/create-release.yml | 11 ++++ .github/workflows/pull-request.yml | 38 ------------ .github/workflows/release-drafter.yml | 14 ----- .github/workflows/test.yml | 59 +++++++++++++++++++ 6 files changed, 110 insertions(+), 53 deletions(-) create mode 100644 .github/workflows/attach-artifact-release.yml rename .github/workflows/{codeql-analysis.yml => codeql.yml} (81%) create mode 100644 .github/workflows/create-release.yml delete mode 100644 .github/workflows/pull-request.yml delete mode 100644 .github/workflows/release-drafter.yml create mode 100644 .github/workflows/test.yml diff --git a/.github/workflows/attach-artifact-release.yml b/.github/workflows/attach-artifact-release.yml new file mode 100644 index 0000000..9e960ae --- /dev/null +++ b/.github/workflows/attach-artifact-release.yml @@ -0,0 +1,39 @@ +name: Attach Artifact to Release + +on: + workflow_dispatch: + inputs: + version: + description: 'LPM version to release' + required: true + +jobs: + attach-to-release: + name: Attach Artifact to Release + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + + - name: Install upx + run: | + sudo apt-get update + sudo apt-get install upx + + - name: Setup Go + uses: actions/setup-go@v3 + with: + go-version: '^1.22' + + - name: Setup GO environment + run: | + go mod download + + - name: Build + run: make build + + - name: Get latest draft release ID + id: get-release + run: | + LATEST_DRAFT_RELEASE=$(curl -X GET -H "Authorization: token ${{ secrets.BOT_TOKEN }}" "https://api.github.com/repos/${{ github.repository }}/releases?per_page=1" | jq -r 'if .[].draft == true then .[].id else empty end') + echo "Latest Draft Release ID: $LATEST_DRAFT_RELEASE" + echo "RELEASE_ID=$LATEST_DRAFT_RELEASE" >> $GITHUB_ENV diff --git a/.github/workflows/codeql-analysis.yml b/.github/workflows/codeql.yml similarity index 81% rename from .github/workflows/codeql-analysis.yml rename to .github/workflows/codeql.yml index c213228..a0dc7af 100644 --- a/.github/workflows/codeql-analysis.yml +++ b/.github/workflows/codeql.yml @@ -12,7 +12,7 @@ on: jobs: codeql: - uses: liquibase/build-logic/.github/workflows/codeql.yml@v0.7.7 + uses: liquibase/build-logic/.github/workflows/codeql.yml@main secrets: inherit with: languages: '["go"]' \ No newline at end of file diff --git a/.github/workflows/create-release.yml b/.github/workflows/create-release.yml new file mode 100644 index 0000000..cc124bd --- /dev/null +++ b/.github/workflows/create-release.yml @@ -0,0 +1,11 @@ +name: Create Release + +on: + push: + branches: + - main + +jobs: + create-release: + uses: liquibase/build-logic/.github/workflows/create-release.yml@main + secrets: inherit diff --git a/.github/workflows/pull-request.yml b/.github/workflows/pull-request.yml deleted file mode 100644 index 20ff887..0000000 --- a/.github/workflows/pull-request.yml +++ /dev/null @@ -1,38 +0,0 @@ -name: PR Quality Gate - -on: - push: - branches: - - master - pull_request: - types: [opened, synchronize, reopened] - -jobs: - test: - runs-on: ubuntu-latest - steps: - - uses: actions/checkout@v4 - with: - fetch-depth: 0 #Shallow Clones should be disabled for a better relevancy of analysis - - - uses: actions/setup-go@v5 - with: - go-version: '^1.22' - - - name: Setup GO environment - run: | - go mod download - - - name: Lint and run unit tests - run: | - make test - go tool cover -func coverage.out - - - name: SonarCloud Scan - uses: SonarSource/sonarcloud-github-action@master - env: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} # Needed to get PR information, if any - SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }} - - - name: Build - run: make build diff --git a/.github/workflows/release-drafter.yml b/.github/workflows/release-drafter.yml deleted file mode 100644 index f58bab0..0000000 --- a/.github/workflows/release-drafter.yml +++ /dev/null @@ -1,14 +0,0 @@ -name: Release Drafter - -on: - push: - branches: - - master - - -jobs: - update_release_draft: - runs-on: ubuntu-latest - steps: - - uses: release-drafter/release-drafter@v6 - env: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} \ No newline at end of file diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml new file mode 100644 index 0000000..3af1008 --- /dev/null +++ b/.github/workflows/test.yml @@ -0,0 +1,59 @@ +name: PR Quality Gate + +on: + push: + branches: + - master + pull_request: + types: [opened, synchronize, reopened] + +jobs: + test: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + with: + fetch-depth: 0 #Shallow Clones should be disabled for a better relevancy of analysis + + - uses: actions/setup-go@v5 + with: + go-version: '^1.22' + + - name: Setup GO environment + run: | + go mod download + + - name: Lint and run unit tests + run: | + make test + go tool cover -func coverage.out + + - name: SonarCloud Scan + uses: SonarSource/sonarcloud-github-action@master + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} # Needed to get PR information, if any + SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }} + + - name: Build + run: make build + + - name: List artifacts in release + if: env.RELEASE_ID != '' && env.RELEASE_ID != null + id: list-artifacts + run: | + RELEASE_ID="${{ env.RELEASE_ID }}" + ARTIFACTS=$(curl -X GET -H "Authorization: token ${{ secrets.BOT_TOKEN }}" "https://api.github.com/repos/${{ github.repository }}/releases/$RELEASE_ID/assets" | jq -r '.[].id') + echo "Artifacts to delete: $ARTIFACTS" + ARTIFACTS_CLEANED=$(echo "$ARTIFACTS" | tr -s '[:space:]' ',' | sed 's/,$//') + echo "ARTIFACTS_TO_DELETE=$ARTIFACTS_CLEANED" >> $GITHUB_ENV + + - name: Delete artifacts + if: env.ARTIFACTS_TO_DELETE != null + run: | + RELEASE_ID="${{ env.RELEASE_ID }}" + ARTIFACTS_TO_DELETE="${{ env.ARTIFACTS_TO_DELETE }}" + IFS=',' read -ra values <<< "$ARTIFACTS_TO_DELETE" + for value in "${values[@]}"; do + curl -X DELETE -H "Authorization: token ${{ secrets.BOT_TOKEN }}" "https://api.github.com/repos/${{ github.repository }}/releases/assets/$value" + echo "Deleted artifact ID: $value" + done From 88874781db5898655e5d971c54b9d2dc5e66b698 Mon Sep 17 00:00:00 2001 From: Alejandro Alvarez Date: Thu, 4 Jul 2024 10:34:15 +0200 Subject: [PATCH 07/26] =?UTF-8?q?=F0=9F=93=9D=20(test.yml):=20update=20wor?= =?UTF-8?q?kflow=20name=20from=20"PR=20Quality=20Gate"=20to=20"Build=20and?= =?UTF-8?q?=20Test"=20for=20clarity=20and=20consistency?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/test.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 3af1008..ab409db 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -1,4 +1,4 @@ -name: PR Quality Gate +name: Build and Test on: push: From 470b187efc3d0d388f7106f8cdc486e4ed9124a2 Mon Sep 17 00:00:00 2001 From: Alejandro Alvarez Date: Thu, 4 Jul 2024 10:35:23 +0200 Subject: [PATCH 08/26] =?UTF-8?q?=F0=9F=93=9D=20(create-release.yml):=20up?= =?UTF-8?q?date=20branch=20name=20from=20'main'=20to=20'master'=20to=20ali?= =?UTF-8?q?gn=20with=20default=20branch=20naming=20convention?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/create-release.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/create-release.yml b/.github/workflows/create-release.yml index cc124bd..8dac608 100644 --- a/.github/workflows/create-release.yml +++ b/.github/workflows/create-release.yml @@ -3,7 +3,7 @@ name: Create Release on: push: branches: - - main + - master jobs: create-release: From d0fc2e5f322fcbd9951445f0ddf34499e9c8b862 Mon Sep 17 00:00:00 2001 From: Alejandro Alvarez Date: Thu, 4 Jul 2024 10:37:19 +0200 Subject: [PATCH 09/26] =?UTF-8?q?=E2=9C=A8=20(create-release.yml):=20updat?= =?UTF-8?q?e=20workflow=20to=20use=20release-drafter=20action=20for=20crea?= =?UTF-8?q?ting=20release=20drafts.=20This=20action=20will=20help=20automa?= =?UTF-8?q?te=20the=20release=20process=20and=20improve=20release=20manage?= =?UTF-8?q?ment.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/create-release.yml | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/.github/workflows/create-release.yml b/.github/workflows/create-release.yml index 8dac608..f1f6264 100644 --- a/.github/workflows/create-release.yml +++ b/.github/workflows/create-release.yml @@ -7,5 +7,11 @@ on: jobs: create-release: - uses: liquibase/build-logic/.github/workflows/create-release.yml@main - secrets: inherit + name: Create Release + runs-on: ubuntu-latest + steps: + - name: Create Release Draft + id: create-release + uses: release-drafter/release-drafter@v5 + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} From fb58ead846e5229e553b7b70b4e012ec9243d498 Mon Sep 17 00:00:00 2001 From: Alejandro Alvarez Date: Thu, 4 Jul 2024 10:45:33 +0200 Subject: [PATCH 10/26] =?UTF-8?q?=F0=9F=94=A7=20(attach-artifact-release.y?= =?UTF-8?q?ml):=20Update=20workflow=20to=20use=20uppercase=20VERSION=20var?= =?UTF-8?q?iable=20for=20consistency=20and=20clarity=20=F0=9F=94=A7=20(att?= =?UTF-8?q?ach-artifact-release.yml):=20Add=20step=20to=20update=20VERSION?= =?UTF-8?q?=20file=20with=20the=20value=20of=20the=20VERSION=20variable=20?= =?UTF-8?q?=F0=9F=94=A7=20(attach-artifact-release.yml):=20Add=20steps=20t?= =?UTF-8?q?o=20list=20and=20delete=20artifacts=20in=20a=20release=20based?= =?UTF-8?q?=20on=20the=20provided=20RELEASE=5FID=20and=20ARTIFACTS=5FTO=5F?= =?UTF-8?q?DELETE=20variables=20=F0=9F=94=A7=20(test.yml):=20Rename=20work?= =?UTF-8?q?flow=20from=20"Build=20and=20Test"=20to=20"PR=20Quality=20Gate"?= =?UTF-8?q?=20for=20better=20clarity=20and=20purpose?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/attach-artifact-release.yml | 27 +++++++++++++++++++ .github/workflows/test.yml | 23 +--------------- 2 files changed, 28 insertions(+), 22 deletions(-) diff --git a/.github/workflows/attach-artifact-release.yml b/.github/workflows/attach-artifact-release.yml index 9e960ae..b554a41 100644 --- a/.github/workflows/attach-artifact-release.yml +++ b/.github/workflows/attach-artifact-release.yml @@ -7,6 +7,9 @@ on: description: 'LPM version to release' required: true +env: + VERSION: ${{ inputs.version }} + jobs: attach-to-release: name: Attach Artifact to Release @@ -28,6 +31,9 @@ jobs: run: | go mod download + - name: Update VERSION file + run: echo $VERSION > VERSION + - name: Build run: make build @@ -37,3 +43,24 @@ jobs: LATEST_DRAFT_RELEASE=$(curl -X GET -H "Authorization: token ${{ secrets.BOT_TOKEN }}" "https://api.github.com/repos/${{ github.repository }}/releases?per_page=1" | jq -r 'if .[].draft == true then .[].id else empty end') echo "Latest Draft Release ID: $LATEST_DRAFT_RELEASE" echo "RELEASE_ID=$LATEST_DRAFT_RELEASE" >> $GITHUB_ENV + + - name: List artifacts in release + if: env.RELEASE_ID != '' && env.RELEASE_ID != null + id: list-artifacts + run: | + RELEASE_ID="${{ env.RELEASE_ID }}" + ARTIFACTS=$(curl -X GET -H "Authorization: token ${{ secrets.BOT_TOKEN }}" "https://api.github.com/repos/${{ github.repository }}/releases/$RELEASE_ID/assets" | jq -r '.[].id') + echo "Artifacts to delete: $ARTIFACTS" + ARTIFACTS_CLEANED=$(echo "$ARTIFACTS" | tr -s '[:space:]' ',' | sed 's/,$//') + echo "ARTIFACTS_TO_DELETE=$ARTIFACTS_CLEANED" >> $GITHUB_ENV + + - name: Delete artifacts + if: env.ARTIFACTS_TO_DELETE != null + run: | + RELEASE_ID="${{ env.RELEASE_ID }}" + ARTIFACTS_TO_DELETE="${{ env.ARTIFACTS_TO_DELETE }}" + IFS=',' read -ra values <<< "$ARTIFACTS_TO_DELETE" + for value in "${values[@]}"; do + curl -X DELETE -H "Authorization: token ${{ secrets.BOT_TOKEN }}" "https://api.github.com/repos/${{ github.repository }}/releases/assets/$value" + echo "Deleted artifact ID: $value" + done diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index ab409db..20ff887 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -1,4 +1,4 @@ -name: Build and Test +name: PR Quality Gate on: push: @@ -36,24 +36,3 @@ jobs: - name: Build run: make build - - - name: List artifacts in release - if: env.RELEASE_ID != '' && env.RELEASE_ID != null - id: list-artifacts - run: | - RELEASE_ID="${{ env.RELEASE_ID }}" - ARTIFACTS=$(curl -X GET -H "Authorization: token ${{ secrets.BOT_TOKEN }}" "https://api.github.com/repos/${{ github.repository }}/releases/$RELEASE_ID/assets" | jq -r '.[].id') - echo "Artifacts to delete: $ARTIFACTS" - ARTIFACTS_CLEANED=$(echo "$ARTIFACTS" | tr -s '[:space:]' ',' | sed 's/,$//') - echo "ARTIFACTS_TO_DELETE=$ARTIFACTS_CLEANED" >> $GITHUB_ENV - - - name: Delete artifacts - if: env.ARTIFACTS_TO_DELETE != null - run: | - RELEASE_ID="${{ env.RELEASE_ID }}" - ARTIFACTS_TO_DELETE="${{ env.ARTIFACTS_TO_DELETE }}" - IFS=',' read -ra values <<< "$ARTIFACTS_TO_DELETE" - for value in "${values[@]}"; do - curl -X DELETE -H "Authorization: token ${{ secrets.BOT_TOKEN }}" "https://api.github.com/repos/${{ github.repository }}/releases/assets/$value" - echo "Deleted artifact ID: $value" - done From fb31d156bf216693e180d34831044a7f73804e26 Mon Sep 17 00:00:00 2001 From: Alejandro Alvarez Date: Thu, 4 Jul 2024 10:48:23 +0200 Subject: [PATCH 11/26] =?UTF-8?q?=F0=9F=94=A7=20(attach-artifact-release.y?= =?UTF-8?q?ml):=20remove=20installation=20of=20upx=20as=20it=20is=20no=20l?= =?UTF-8?q?onger=20needed=20for=20the=20workflow=20=E2=9C=A8=20(attach-art?= =?UTF-8?q?ifact-release.yml):=20replace=20the=20'Build'=20step=20with=20'?= =?UTF-8?q?Release=20Artifact'=20step=20to=20accurately=20reflect=20the=20?= =?UTF-8?q?purpose=20of=20the=20step=20in=20the=20workflow.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/attach-artifact-release.yml | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) diff --git a/.github/workflows/attach-artifact-release.yml b/.github/workflows/attach-artifact-release.yml index b554a41..2b95d79 100644 --- a/.github/workflows/attach-artifact-release.yml +++ b/.github/workflows/attach-artifact-release.yml @@ -17,11 +17,6 @@ jobs: steps: - uses: actions/checkout@v4 - - name: Install upx - run: | - sudo apt-get update - sudo apt-get install upx - - name: Setup Go uses: actions/setup-go@v3 with: @@ -34,8 +29,8 @@ jobs: - name: Update VERSION file run: echo $VERSION > VERSION - - name: Build - run: make build + - name: Release Artifact + run: make release - name: Get latest draft release ID id: get-release From 9fa322254f410ca0a25fb11f529fdd8864ec8487 Mon Sep 17 00:00:00 2001 From: Alejandro Alvarez Date: Thu, 4 Jul 2024 11:08:22 +0200 Subject: [PATCH 12/26] =?UTF-8?q?=F0=9F=94=A7=20(attach-artifact-release.y?= =?UTF-8?q?ml):=20update=20workflow=20to=20attach=20darwin=5Famd64=20artif?= =?UTF-8?q?act=20to=20release=20using=20the=20latest=20draft=20release=20u?= =?UTF-8?q?pload=20URL.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/attach-artifact-release.yml | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) diff --git a/.github/workflows/attach-artifact-release.yml b/.github/workflows/attach-artifact-release.yml index 2b95d79..df9a528 100644 --- a/.github/workflows/attach-artifact-release.yml +++ b/.github/workflows/attach-artifact-release.yml @@ -36,8 +36,10 @@ jobs: id: get-release run: | LATEST_DRAFT_RELEASE=$(curl -X GET -H "Authorization: token ${{ secrets.BOT_TOKEN }}" "https://api.github.com/repos/${{ github.repository }}/releases?per_page=1" | jq -r 'if .[].draft == true then .[].id else empty end') + LATEST_DRAFT_RELEASE_URL=$(curl -X GET -H "Authorization: token ${{ secrets.BOT_TOKEN }}" "https://api.github.com/repos/${{ github.repository }}/releases?per_page=1" | jq -r 'if .[].draft == true then .[].upload_url else empty end') echo "Latest Draft Release ID: $LATEST_DRAFT_RELEASE" - echo "RELEASE_ID=$LATEST_DRAFT_RELEASE" >> $GITHUB_ENV + echo "Latest Draft Release upload_url: $LATEST_DRAFT_RELEASE_URL" + echo "RELEASE_UPLOAD_URL=$LATEST_DRAFT_RELEASE_URL" >> $GITHUB_ENV - name: List artifacts in release if: env.RELEASE_ID != '' && env.RELEASE_ID != null @@ -59,3 +61,13 @@ jobs: curl -X DELETE -H "Authorization: token ${{ secrets.BOT_TOKEN }}" "https://api.github.com/repos/${{ github.repository }}/releases/assets/$value" echo "Deleted artifact ID: $value" done + + - name: Attach darwin_amd64 artifact to release + uses: actions/upload-release-asset@v1.0.1 + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + with: + upload_url: ${{ env.RELEASE_UPLOAD_URL }} + asset_path: ./bin/darwin_amd64/lpm-${{ env.version }}-darwin.zip + asset_name: lpm-${{ env.version }}-darwin.zip + asset_content_type: application/zip From 2f7a372646fe9d560abf818489ea526f28df2375 Mon Sep 17 00:00:00 2001 From: Alejandro Alvarez Date: Thu, 4 Jul 2024 11:14:26 +0200 Subject: [PATCH 13/26] =?UTF-8?q?=F0=9F=94=A7=20(.github/workflows/attach-?= =?UTF-8?q?artifact-release.yml):=20add=20ls=20commands=20to=20list=20file?= =?UTF-8?q?s=20in=20the=20workflow=20to=20aid=20in=20debugging=20and=20tro?= =?UTF-8?q?ubleshooting?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/attach-artifact-release.yml | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/.github/workflows/attach-artifact-release.yml b/.github/workflows/attach-artifact-release.yml index df9a528..b8c8975 100644 --- a/.github/workflows/attach-artifact-release.yml +++ b/.github/workflows/attach-artifact-release.yml @@ -30,7 +30,10 @@ jobs: run: echo $VERSION > VERSION - name: Release Artifact - run: make release + run: | + make release + ls -ltr + ls -ltr bin - name: Get latest draft release ID id: get-release From c30bca0c7ef1236d7510aab0c5c1ae98de857d01 Mon Sep 17 00:00:00 2001 From: Alejandro Alvarez Date: Thu, 4 Jul 2024 11:18:32 +0200 Subject: [PATCH 14/26] =?UTF-8?q?=F0=9F=93=9D=20(attach-artifact-release.y?= =?UTF-8?q?ml):=20update=20script=20to=20also=20display=20the=20content=20?= =?UTF-8?q?of=20the=20VERSION=20file=20for=20debugging=20purposes=20?= =?UTF-8?q?=F0=9F=93=9D=20(attach-artifact-release.yml):=20update=20script?= =?UTF-8?q?=20to=20list=20files=20in=20the=20bin/darwin=5Famd64=20director?= =?UTF-8?q?y=20instead=20of=20the=20general=20bin=20directory=20for=20more?= =?UTF-8?q?=20specific=20output?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/attach-artifact-release.yml | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/.github/workflows/attach-artifact-release.yml b/.github/workflows/attach-artifact-release.yml index b8c8975..19f98d7 100644 --- a/.github/workflows/attach-artifact-release.yml +++ b/.github/workflows/attach-artifact-release.yml @@ -27,13 +27,14 @@ jobs: go mod download - name: Update VERSION file - run: echo $VERSION > VERSION + run: | + echo $VERSION > VERSION + cat VERSION - name: Release Artifact run: | make release - ls -ltr - ls -ltr bin + ls -ltr bin/darwin_amd64 - name: Get latest draft release ID id: get-release From 935db650642c372fb7c21c413acdceeddcd155cc Mon Sep 17 00:00:00 2001 From: Alejandro Alvarez Date: Thu, 4 Jul 2024 11:40:19 +0200 Subject: [PATCH 15/26] =?UTF-8?q?=F0=9F=94=A7=20(.github/workflows/attach-?= =?UTF-8?q?artifact-release.yml):=20update=20output=20variable=20name=20to?= =?UTF-8?q?=20match=20the=20correct=20syntax=20for=20GitHub=20Actions=20?= =?UTF-8?q?=E2=9C=A8=20(.github/workflows/attach-artifact-release.yml):=20?= =?UTF-8?q?add=20support=20for=20attaching=20multiple=20artifacts=20to=20a?= =?UTF-8?q?=20release=20based=20on=20different=20architectures=20using=20a?= =?UTF-8?q?=20matrix=20strategy?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/attach-artifact-release.yml | 29 +++++++++++++++---- 1 file changed, 23 insertions(+), 6 deletions(-) diff --git a/.github/workflows/attach-artifact-release.yml b/.github/workflows/attach-artifact-release.yml index 19f98d7..337b30e 100644 --- a/.github/workflows/attach-artifact-release.yml +++ b/.github/workflows/attach-artifact-release.yml @@ -11,9 +11,11 @@ env: VERSION: ${{ inputs.version }} jobs: - attach-to-release: + prepare-release: name: Attach Artifact to Release runs-on: ubuntu-latest + outputs: + upload_url: ${{ steps.get-release.outputs.upload_url }} steps: - uses: actions/checkout@v4 @@ -43,7 +45,8 @@ jobs: LATEST_DRAFT_RELEASE_URL=$(curl -X GET -H "Authorization: token ${{ secrets.BOT_TOKEN }}" "https://api.github.com/repos/${{ github.repository }}/releases?per_page=1" | jq -r 'if .[].draft == true then .[].upload_url else empty end') echo "Latest Draft Release ID: $LATEST_DRAFT_RELEASE" echo "Latest Draft Release upload_url: $LATEST_DRAFT_RELEASE_URL" - echo "RELEASE_UPLOAD_URL=$LATEST_DRAFT_RELEASE_URL" >> $GITHUB_ENV + echo "RELEASE_ID=$LATEST_DRAFT_RELEASE" >> $GITHUB_ENV + echo "upload_url=$LATEST_DRAFT_RELEASE_URL" >> $GITHUB_OUTPUT - name: List artifacts in release if: env.RELEASE_ID != '' && env.RELEASE_ID != null @@ -66,12 +69,26 @@ jobs: echo "Deleted artifact ID: $value" done - - name: Attach darwin_amd64 artifact to release + attach-to-release: + runs-on: ubuntu-latest + needs: prepare-release + strategy: + matrix: + arch: [ + {folder: darwin_amd64, zip_name: darwin}, + {folder: darwin_arm64, zip_name: darwin-arm64}, + {folder: linux_amd64, zip_name: linux}, + {folder: linux_arm64, zip_name: linux-arm64}, + {folder: s390x, zip_name: s390x}, + {folder: windows, zip_name: windows}, + ] + steps: + - name: Attach artifact to release uses: actions/upload-release-asset@v1.0.1 env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} with: - upload_url: ${{ env.RELEASE_UPLOAD_URL }} - asset_path: ./bin/darwin_amd64/lpm-${{ env.version }}-darwin.zip - asset_name: lpm-${{ env.version }}-darwin.zip + upload_url: ${{ needs.prepare-release.outputs.upload_url }} + asset_path: bin/${{ matrix.arch.folder }}/lpm-${{ env.VERSION }}-${{ matrix.arch.zip_name }}.zip + asset_name: lpm-${{ env.VERSION }}-${{ matrix.arch.zip_name }}.zip asset_content_type: application/zip From d2403e1c810cdb81bd25cdfd85e07d5e5ea9e7dc Mon Sep 17 00:00:00 2001 From: Alejandro Alvarez Date: Thu, 4 Jul 2024 11:42:35 +0200 Subject: [PATCH 16/26] =?UTF-8?q?=F0=9F=93=9D=20(attach-artifact-release.y?= =?UTF-8?q?ml):=20refactor=20workflow=20to=20improve=20readability=20and?= =?UTF-8?q?=20organization=20=F0=9F=94=A7=20(attach-artifact-release.yml):?= =?UTF-8?q?=20change=20job=20name=20from=20"Attach=20Artifact=20to=20Relea?= =?UTF-8?q?se"=20to=20"Prepare=20Release"=20for=20clarity=20=F0=9F=94=A7?= =?UTF-8?q?=20(attach-artifact-release.yml):=20remove=20unnecessary=20blan?= =?UTF-8?q?k=20lines=20and=20reorganize=20steps=20for=20better=20flow=20an?= =?UTF-8?q?d=20readability?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/attach-artifact-release.yml | 45 ++++++++++--------- 1 file changed, 25 insertions(+), 20 deletions(-) diff --git a/.github/workflows/attach-artifact-release.yml b/.github/workflows/attach-artifact-release.yml index 337b30e..d1e7958 100644 --- a/.github/workflows/attach-artifact-release.yml +++ b/.github/workflows/attach-artifact-release.yml @@ -12,32 +12,14 @@ env: jobs: prepare-release: - name: Attach Artifact to Release + name: Prepare Release runs-on: ubuntu-latest outputs: upload_url: ${{ steps.get-release.outputs.upload_url }} + steps: - uses: actions/checkout@v4 - - name: Setup Go - uses: actions/setup-go@v3 - with: - go-version: '^1.22' - - - name: Setup GO environment - run: | - go mod download - - - name: Update VERSION file - run: | - echo $VERSION > VERSION - cat VERSION - - - name: Release Artifact - run: | - make release - ls -ltr bin/darwin_amd64 - - name: Get latest draft release ID id: get-release run: | @@ -82,7 +64,30 @@ jobs: {folder: s390x, zip_name: s390x}, {folder: windows, zip_name: windows}, ] + steps: + + - uses: actions/checkout@v4 + + - name: Setup Go + uses: actions/setup-go@v3 + with: + go-version: '^1.22' + + - name: Setup GO environment + run: | + go mod download + + - name: Update VERSION file + run: | + echo $VERSION > VERSION + cat VERSION + + - name: Release Artifact + run: | + make release + ls -ltr bin/darwin_amd64 + - name: Attach artifact to release uses: actions/upload-release-asset@v1.0.1 env: From 348a9a25663ec5beb4828a57a5eede8f44185264 Mon Sep 17 00:00:00 2001 From: Alejandro Alvarez Date: Thu, 4 Jul 2024 11:47:21 +0200 Subject: [PATCH 17/26] =?UTF-8?q?=F0=9F=9A=80=20(attach-artifact-release.y?= =?UTF-8?q?ml):=20add=20step=20to=20edit=20release=20name=20with=20the=20n?= =?UTF-8?q?ew=20version=20number=20to=20improve=20release=20management=20a?= =?UTF-8?q?nd=20clarity?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/attach-artifact-release.yml | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/.github/workflows/attach-artifact-release.yml b/.github/workflows/attach-artifact-release.yml index d1e7958..69fdc69 100644 --- a/.github/workflows/attach-artifact-release.yml +++ b/.github/workflows/attach-artifact-release.yml @@ -51,6 +51,14 @@ jobs: echo "Deleted artifact ID: $value" done + - name: Edit Release + uses: irongut/EditRelease@v1.2.0 + with: + token: ${{ secrets.GITHUB_TOKEN }} + id: ${{ env.RELEASE_ID }} + name: v${{ env.VERSION }} + replacename: true + attach-to-release: runs-on: ubuntu-latest needs: prepare-release @@ -64,7 +72,7 @@ jobs: {folder: s390x, zip_name: s390x}, {folder: windows, zip_name: windows}, ] - + steps: - uses: actions/checkout@v4 From d71e2bad56163fb40560fd145808dfec3c1786c0 Mon Sep 17 00:00:00 2001 From: Alejandro Alvarez Date: Thu, 4 Jul 2024 11:56:22 +0200 Subject: [PATCH 18/26] =?UTF-8?q?=F0=9F=93=9D=20(attach-artifact-release.y?= =?UTF-8?q?ml):=20calculate=20and=20upload=20SHA256=20hash=20for=20release?= =?UTF-8?q?=20artifacts=20to=20improve=20security=20and=20integrity=20of?= =?UTF-8?q?=20uploaded=20files.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/attach-artifact-release.yml | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) diff --git a/.github/workflows/attach-artifact-release.yml b/.github/workflows/attach-artifact-release.yml index 69fdc69..62cd750 100644 --- a/.github/workflows/attach-artifact-release.yml +++ b/.github/workflows/attach-artifact-release.yml @@ -94,7 +94,6 @@ jobs: - name: Release Artifact run: | make release - ls -ltr bin/darwin_amd64 - name: Attach artifact to release uses: actions/upload-release-asset@v1.0.1 @@ -105,3 +104,16 @@ jobs: asset_path: bin/${{ matrix.arch.folder }}/lpm-${{ env.VERSION }}-${{ matrix.arch.zip_name }}.zip asset_name: lpm-${{ env.VERSION }}-${{ matrix.arch.zip_name }}.zip asset_content_type: application/zip + + - name: Calculate SHA256 hash + id: calculate-sha256 + run: | + sha256sum bin/${{ matrix.arch.folder }}/lpm-${{ env.VERSION }}-${{ matrix.arch.zip_name }}.zip | awk '{ print $1 }' > sha256.txt + SHA256=$(cat sha256.txt) + echo "SHA256=$SHA256" >> $GITHUB_ENV + echo "SHA256 hash: $SHA256" + + - name: Upload SHA256 hash to job summary + run: | + echo "### SHA256 Hashes for Release Artifacts" >> $GITHUB_STEP_SUMMARY + echo "- lpm-${{ env.VERSION }}-${{ matrix.arch.zip_name }}.zip: $SHA256" >> $GITHUB_STEP_SUMMARY From 318d69e0d7dd3a9345e5ca5b66190e7a6f0e9fa4 Mon Sep 17 00:00:00 2001 From: Alejandro Alvarez Date: Thu, 4 Jul 2024 12:06:03 +0200 Subject: [PATCH 19/26] =?UTF-8?q?=F0=9F=93=9D=20(attach-artifact-release.y?= =?UTF-8?q?ml):=20simplify=20the=20Update=20VERSION=20file=20step=20by=20r?= =?UTF-8?q?emoving=20unnecessary=20'cat=20VERSION'=20command=20?= =?UTF-8?q?=F0=9F=93=9D=20(attach-artifact-release.yml):=20simplify=20the?= =?UTF-8?q?=20Release=20Artifact=20step=20by=20removing=20unnecessary=20'm?= =?UTF-8?q?ake=20release'=20command=20=F0=9F=93=9D=20(attach-artifact-rele?= =?UTF-8?q?ase.yml):=20add=20conditional=20checks=20to=20Calculate=20SHA25?= =?UTF-8?q?6=20hash=20and=20Upload=20SHA256=20hash=20steps=20for=20linux?= =?UTF-8?q?=20and=20linux-arm64=20architectures?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/attach-artifact-release.yml | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/.github/workflows/attach-artifact-release.yml b/.github/workflows/attach-artifact-release.yml index 62cd750..a2b6c94 100644 --- a/.github/workflows/attach-artifact-release.yml +++ b/.github/workflows/attach-artifact-release.yml @@ -87,13 +87,10 @@ jobs: go mod download - name: Update VERSION file - run: | - echo $VERSION > VERSION - cat VERSION + run: echo $VERSION > VERSION - name: Release Artifact - run: | - make release + run: make release - name: Attach artifact to release uses: actions/upload-release-asset@v1.0.1 @@ -106,6 +103,7 @@ jobs: asset_content_type: application/zip - name: Calculate SHA256 hash + if: ${{ matrix.arch.zip_name }} == 'linux' || ${{ matrix.arch.zip_name }} == 'linux-arm64' id: calculate-sha256 run: | sha256sum bin/${{ matrix.arch.folder }}/lpm-${{ env.VERSION }}-${{ matrix.arch.zip_name }}.zip | awk '{ print $1 }' > sha256.txt @@ -114,6 +112,7 @@ jobs: echo "SHA256 hash: $SHA256" - name: Upload SHA256 hash to job summary + if: ${{ matrix.arch.zip_name }} == 'linux' || ${{ matrix.arch.zip_name }} == 'linux-arm64' run: | - echo "### SHA256 Hashes for Release Artifacts" >> $GITHUB_STEP_SUMMARY + echo "### :white_check_mark: SHA256 for ${{ matrix.arch.zip_name }}" >> $GITHUB_STEP_SUMMARY echo "- lpm-${{ env.VERSION }}-${{ matrix.arch.zip_name }}.zip: $SHA256" >> $GITHUB_STEP_SUMMARY From e7cc0d772d4a52d4bc16a17896f6e3066dd9c418 Mon Sep 17 00:00:00 2001 From: Alejandro Alvarez Date: Thu, 4 Jul 2024 12:09:37 +0200 Subject: [PATCH 20/26] =?UTF-8?q?=F0=9F=94=A7=20(attach-artifact-release.y?= =?UTF-8?q?ml):=20simplify=20conditional=20statement=20for=20calculating?= =?UTF-8?q?=20and=20uploading=20SHA256=20hash=20by=20removing=20unnecessar?= =?UTF-8?q?y=20matrix=20variable=20interpolation?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/attach-artifact-release.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/attach-artifact-release.yml b/.github/workflows/attach-artifact-release.yml index a2b6c94..8933032 100644 --- a/.github/workflows/attach-artifact-release.yml +++ b/.github/workflows/attach-artifact-release.yml @@ -103,7 +103,7 @@ jobs: asset_content_type: application/zip - name: Calculate SHA256 hash - if: ${{ matrix.arch.zip_name }} == 'linux' || ${{ matrix.arch.zip_name }} == 'linux-arm64' + if: matrix.arch.zip_name == 'linux' || matrix.arch.zip_name == 'linux-arm64' id: calculate-sha256 run: | sha256sum bin/${{ matrix.arch.folder }}/lpm-${{ env.VERSION }}-${{ matrix.arch.zip_name }}.zip | awk '{ print $1 }' > sha256.txt @@ -112,7 +112,7 @@ jobs: echo "SHA256 hash: $SHA256" - name: Upload SHA256 hash to job summary - if: ${{ matrix.arch.zip_name }} == 'linux' || ${{ matrix.arch.zip_name }} == 'linux-arm64' + if: matrix.arch.zip_name == 'linux' || matrix.arch.zip_name == 'linux-arm64' run: | echo "### :white_check_mark: SHA256 for ${{ matrix.arch.zip_name }}" >> $GITHUB_STEP_SUMMARY echo "- lpm-${{ env.VERSION }}-${{ matrix.arch.zip_name }}.zip: $SHA256" >> $GITHUB_STEP_SUMMARY From 776d6b0f8003ed16765c4988ee05863bb4095539 Mon Sep 17 00:00:00 2001 From: mcred Date: Tue, 9 Jul 2024 06:11:31 +0000 Subject: [PATCH 21/26] Automatic update to packages.json --- internal/app/packages.json | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/internal/app/packages.json b/internal/app/packages.json index d44c130..bdd5305 100644 --- a/internal/app/packages.json +++ b/internal/app/packages.json @@ -5889,6 +5889,13 @@ "algorithm": "SHA1", "checksum": "d4beb5366863a50784316f0cd3ea92e3e687a0f0", "liquibaseCore": "" + }, + { + "tag": "3.17.0", + "path": "https://repo1.maven.org/maven2/net/snowflake/snowflake-jdbc/3.17.0/snowflake-jdbc-3.17.0.jar", + "algorithm": "SHA1", + "checksum": "31fc2bfe01ed20c86140f65f12a7bc6d803473d3", + "liquibaseCore": "" } ] }, From 62c6e25903ebd79e864d62437608bc748dc576a2 Mon Sep 17 00:00:00 2001 From: Alejandro Alvarez Date: Thu, 11 Jul 2024 17:27:03 +0200 Subject: [PATCH 22/26] =?UTF-8?q?=E2=AC=86=EF=B8=8F=20(go.mod):=20upgrade?= =?UTF-8?q?=20Go=20version=20from=201.22.4=20to=201.22.5=20to=20stay=20up-?= =?UTF-8?q?to-date=20with=20the=20latest=20version=20and=20take=20advantag?= =?UTF-8?q?e=20of=20any=20new=20features=20or=20improvements.=20(#394)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- go.mod | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/go.mod b/go.mod index e4889b2..fbb7724 100644 --- a/go.mod +++ b/go.mod @@ -1,6 +1,6 @@ module package-manager -go 1.22.4 +go 1.22.5 require ( github.com/google/go-github/v39 v39.2.0 From b4d19ad2823356940643b54fecdf454d8eb69c39 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Thu, 11 Jul 2024 10:31:25 -0500 Subject: [PATCH 23/26] Bump actions/upload-release-asset from 1.0.1 to 1.0.2 (#392) Bumps [actions/upload-release-asset](https://github.com/actions/upload-release-asset) from 1.0.1 to 1.0.2. - [Release notes](https://github.com/actions/upload-release-asset/releases) - [Commits](https://github.com/actions/upload-release-asset/compare/v1.0.1...v1.0.2) --- updated-dependencies: - dependency-name: actions/upload-release-asset dependency-type: direct:production update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: Alejandro Alvarez --- .github/workflows/attach-artifact-release.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/attach-artifact-release.yml b/.github/workflows/attach-artifact-release.yml index 8933032..8a3056e 100644 --- a/.github/workflows/attach-artifact-release.yml +++ b/.github/workflows/attach-artifact-release.yml @@ -93,7 +93,7 @@ jobs: run: make release - name: Attach artifact to release - uses: actions/upload-release-asset@v1.0.1 + uses: actions/upload-release-asset@v1.0.2 env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} with: From 55b7d6bed89f8d71adcc1101518aba2df6e4bd8a Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Thu, 11 Jul 2024 10:31:47 -0500 Subject: [PATCH 24/26] Bump release-drafter/release-drafter from 5 to 6 (#391) Bumps [release-drafter/release-drafter](https://github.com/release-drafter/release-drafter) from 5 to 6. - [Release notes](https://github.com/release-drafter/release-drafter/releases) - [Commits](https://github.com/release-drafter/release-drafter/compare/v5...v6) --- updated-dependencies: - dependency-name: release-drafter/release-drafter dependency-type: direct:production update-type: version-update:semver-major ... Signed-off-by: dependabot[bot] Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: Alejandro Alvarez --- .github/workflows/create-release.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/create-release.yml b/.github/workflows/create-release.yml index f1f6264..92e4b9a 100644 --- a/.github/workflows/create-release.yml +++ b/.github/workflows/create-release.yml @@ -12,6 +12,6 @@ jobs: steps: - name: Create Release Draft id: create-release - uses: release-drafter/release-drafter@v5 + uses: release-drafter/release-drafter@v6 env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} From f18f3980b21e262f41b42fbf6860713f09fafac1 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Thu, 11 Jul 2024 10:32:09 -0500 Subject: [PATCH 25/26] Bump actions/setup-go from 3 to 5 (#390) Bumps [actions/setup-go](https://github.com/actions/setup-go) from 3 to 5. - [Release notes](https://github.com/actions/setup-go/releases) - [Commits](https://github.com/actions/setup-go/compare/v3...v5) --- updated-dependencies: - dependency-name: actions/setup-go dependency-type: direct:production update-type: version-update:semver-major ... Signed-off-by: dependabot[bot] Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: Alejandro Alvarez --- .github/workflows/attach-artifact-release.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/attach-artifact-release.yml b/.github/workflows/attach-artifact-release.yml index 8a3056e..6abe2e6 100644 --- a/.github/workflows/attach-artifact-release.yml +++ b/.github/workflows/attach-artifact-release.yml @@ -78,7 +78,7 @@ jobs: - uses: actions/checkout@v4 - name: Setup Go - uses: actions/setup-go@v3 + uses: actions/setup-go@v5 with: go-version: '^1.22' From c08a71e1199b6b99f1cae768f3da0c5158c3054e Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Thu, 11 Jul 2024 10:32:44 -0500 Subject: [PATCH 26/26] Bump github.com/spf13/cobra from 1.8.0 to 1.8.1 (#383) Bumps [github.com/spf13/cobra](https://github.com/spf13/cobra) from 1.8.0 to 1.8.1. - [Release notes](https://github.com/spf13/cobra/releases) - [Commits](https://github.com/spf13/cobra/compare/v1.8.0...v1.8.1) --- updated-dependencies: - dependency-name: github.com/spf13/cobra dependency-type: direct:production update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: Alejandro Alvarez --- go.mod | 2 +- go.sum | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/go.mod b/go.mod index fbb7724..2c55400 100644 --- a/go.mod +++ b/go.mod @@ -5,7 +5,7 @@ go 1.22.5 require ( github.com/google/go-github/v39 v39.2.0 github.com/hashicorp/go-version v1.7.0 - github.com/spf13/cobra v1.8.0 + github.com/spf13/cobra v1.8.1 github.com/vifraa/gopom v1.0.0 golang.org/x/oauth2 v0.20.0 ) diff --git a/go.sum b/go.sum index a38e535..ebe85af 100644 --- a/go.sum +++ b/go.sum @@ -1,4 +1,4 @@ -github.com/cpuguy83/go-md2man/v2 v2.0.3/go.mod h1:tgQtvFlXSQOSOSIRvRPT7W67SCa46tRHOmNcaadrF8o= +github.com/cpuguy83/go-md2man/v2 v2.0.4/go.mod h1:tgQtvFlXSQOSOSIRvRPT7W67SCa46tRHOmNcaadrF8o= github.com/davecgh/go-spew v1.1.0 h1:ZDRjVQ15GmhC3fiQ8ni8+OwkZQO4DARzQgrnXU1Liz8= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/golang/protobuf v1.3.1/go.mod h1:6lQm79b+lXiMfvg/cZm0SGofjICqVBUtrP5yJMmIC1U= @@ -18,8 +18,8 @@ github.com/inconshreveable/mousetrap v1.1.0/go.mod h1:vpF70FUmC8bwa3OWnCshd2FqLf github.com/pmezard/go-difflib v1.0.0 h1:4DBwDE0NGyQoBHbLQYPwSUPoCMWR5BEzIk/f1lZbAQM= github.com/pmezard/go-difflib v1.0.0/go.mod h1:iKH77koFhYxTK1pcRnkKkqfTogsbg7gZNVY4sRDYZ/4= github.com/russross/blackfriday/v2 v2.1.0/go.mod h1:+Rmxgy9KzJVeS9/2gXHxylqXiyQDYRxCVz55jmeOWTM= -github.com/spf13/cobra v1.8.0 h1:7aJaZx1B85qltLMc546zn58BxxfZdR/W22ej9CFoEf0= -github.com/spf13/cobra v1.8.0/go.mod h1:WXLWApfZ71AjXPya3WOlMsY9yMs7YeiHhFVlvLyhcho= +github.com/spf13/cobra v1.8.1 h1:e5/vxKd/rZsfSJMUX1agtjeTDf+qv1/JdBF8gg5k9ZM= +github.com/spf13/cobra v1.8.1/go.mod h1:wHxEcudfqmLYa8iTfL+OuZPbBZkmvliBWKIezN3kD9Y= github.com/spf13/pflag v1.0.5 h1:iy+VFUOCP1a+8yFto/drg2CJ5u0yRoB7fZw3DKv/JXA= github.com/spf13/pflag v1.0.5/go.mod h1:McXfInJRrz4CZXVZOBLb0bTZqETkiAhM9Iw0y3An2Bg= github.com/stretchr/objx v0.1.0/go.mod h1:HFkY916IF+rwdDfMAkV7OtwuqBVzrE8GR6GFx+wExME=