From b838545cbf70cd029918bef9dcc1e0a34a8ea976 Mon Sep 17 00:00:00 2001 From: "renovate-pagopa[bot]" <164534245+renovate-pagopa[bot]@users.noreply.github.com> Date: Tue, 15 Oct 2024 05:59:42 +0000 Subject: [PATCH 1/3] Pin dependencies --- .github/workflows/anchore.yml | 6 +++--- .github/workflows/assignee.yml | 2 +- .github/workflows/check_metadata_pr.yml | 4 ++-- .github/workflows/deploy.yml | 2 +- .github/workflows/integration_test.yml | 2 +- .github/workflows/release_deploy.yml | 26 ++++++++++++------------- .github/workflows/sonar_analysis.yml | 2 +- 7 files changed, 22 insertions(+), 22 deletions(-) diff --git a/.github/workflows/anchore.yml b/.github/workflows/anchore.yml index 802f626..fc409cf 100644 --- a/.github/workflows/anchore.yml +++ b/.github/workflows/anchore.yml @@ -35,20 +35,20 @@ jobs: runs-on: ubuntu-latest steps: - name: Checkout the code - uses: actions/checkout@v3 + uses: actions/checkout@f43a0e5ff2bd294095638e18286ca9a3d1956744 # v3 - name: Build the Docker image run: docker build . --file ${{ env.DOCKERFILE }} --tag localbuild/testimage:latest - name: Run the Anchore scan action itself with GitHub Advanced Security code scanning integration enabled - uses: anchore/scan-action@v3 + uses: anchore/scan-action@3343887d815d7b07465f6fdcd395bd66508d486a # v3 with: image: "localbuild/testimage:latest" acs-report-enable: true fail-build: true severity-cutoff: "high" - name: Upload Anchore Scan Report - uses: github/codeql-action/upload-sarif@v2 + uses: github/codeql-action/upload-sarif@083cd45dc7d463f048a5d0975943f0e19e9c9378 # v2 if: always() with: sarif_file: results.sarif diff --git a/.github/workflows/assignee.yml b/.github/workflows/assignee.yml index 0611917..cf22668 100644 --- a/.github/workflows/assignee.yml +++ b/.github/workflows/assignee.yml @@ -21,6 +21,6 @@ jobs: steps: - name: Assign Me # You may pin to the exact commit or the version. - uses: kentaro-m/auto-assign-action@v1.2.1 + uses: kentaro-m/auto-assign-action@746a3a558fdd0e061f612ec9f8ff1b8a19c1a115 # v1.2.1 with: configuration-path: '.github/auto_assign.yml' diff --git a/.github/workflows/check_metadata_pr.yml b/.github/workflows/check_metadata_pr.yml index c687c53..5130b4a 100644 --- a/.github/workflows/check_metadata_pr.yml +++ b/.github/workflows/check_metadata_pr.yml @@ -21,7 +21,7 @@ jobs: steps: - name: Verify PR Labels - uses: jesusvasquez333/verify-pr-label-action@v1.4.0 + uses: jesusvasquez333/verify-pr-label-action@657d111bbbe13e22bbd55870f1813c699bde1401 # v1.4.0 with: github-token: '${{ secrets.GITHUB_TOKEN }}' valid-labels: 'bug, enhancement, breaking-change, ignore-for-release' @@ -29,7 +29,7 @@ jobs: - name: Label Check if: ${{ !contains(github.event.pull_request.labels.*.name, 'breaking-change') && !contains(github.event.pull_request.labels.*.name, 'enhancement') && !contains(github.event.pull_request.labels.*.name, 'bug') && !contains(github.event.pull_request.labels.*.name, 'ignore-for-release') }} - uses: actions/github-script@v3 + uses: actions/github-script@ffc2c79a5b2490bd33e0a41c1de74b877714d736 # v3 with: script: | core.setFailed('Missing required labels') diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index 4f4091b..7fe85df 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -48,7 +48,7 @@ jobs: if: ${{ contains(github.event.pull_request.labels.*.name, 'ignore-for-release') }} - name: Azure Pipelines Action - Jversion - uses: jacopocarlini/azure-pipelines@v1.3 + uses: jacopocarlini/azure-pipelines@b9721743a54e862597395b4a70727cfdc03028fb # v1.3 with: azure-devops-project-url: https://dev.azure.com/pagopaspa/pagoPA-projects azure-pipeline-name: 'pagopa-function-template.deploy' diff --git a/.github/workflows/integration_test.yml b/.github/workflows/integration_test.yml index f9bf2b0..fafb006 100644 --- a/.github/workflows/integration_test.yml +++ b/.github/workflows/integration_test.yml @@ -55,7 +55,7 @@ jobs: steps: - name: Report Status if: always() - uses: ravsamhq/notify-slack-action@v2 + uses: ravsamhq/notify-slack-action@be814b201e233b2dc673608aa46e5447c8ab13f2 # v2 with: status: ${{ needs.integration_test.result }} token: ${{ secrets.GITHUB_TOKEN }} diff --git a/.github/workflows/release_deploy.yml b/.github/workflows/release_deploy.yml index 08b580e..0904fc3 100644 --- a/.github/workflows/release_deploy.yml +++ b/.github/workflows/release_deploy.yml @@ -97,7 +97,7 @@ jobs: steps: - name: Make Release id: release - uses: pagopa/github-actions-template/maven-release@v1.5.4 + uses: pagopa/github-actions-template/maven-release@d91a1fd0b913c9830589be5d86cdb71c90813fae # v1.5.4 with: semver: ${{ needs.setup.outputs.semver }} github_token: ${{ secrets.BOT_TOKEN_GITHUB }} @@ -111,7 +111,7 @@ jobs: if: ${{ inputs.semver != 'skip' }} environment: ${{ inputs.environment }} steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@f43a0e5ff2bd294095638e18286ca9a3d1956744 # v3 with: ref: ${{ needs.release.outputs.version }} @@ -119,7 +119,7 @@ jobs: run: sh upd_wsdl_location.sh ${{ vars.NODO_HOST }} - name: Login to GitHub Container Registry - uses: docker/login-action@v2 + uses: docker/login-action@465a07811f14bebb1938fbed4728c6a1ff8901fc # v2 with: registry: ghcr.io username: ${{ github.actor }} @@ -127,7 +127,7 @@ jobs: - name: Docker meta id: meta - uses: docker/metadata-action@v4.3.0 + uses: docker/metadata-action@507c2f2dc502c992ad446e3d7a5dfbe311567a96 # v4.3.0 with: images: ghcr.io/${{ github.repository }} tags: | @@ -137,7 +137,7 @@ jobs: type=sha - name: Build and push - uses: docker/build-push-action@v3 + uses: docker/build-push-action@1104d471370f9806843c095c1db02b5a90c5f8b6 # v3 with: context: . push: true @@ -153,17 +153,17 @@ jobs: if: ${{ always() && !contains(needs.*.result, 'failure') && !contains(needs.*.result, 'cancelled') }} steps: - name: 'Checkout GitHub Action' - uses: actions/checkout@v3 + uses: actions/checkout@f43a0e5ff2bd294095638e18286ca9a3d1956744 # v3 - name: 'Login via Azure CLI' - uses: azure/login@v1 + uses: azure/login@cb79c773a3cfa27f31f25eb3f677781210c9ce3d # v1 with: client-id: ${{ secrets.CLIENT_ID }} tenant-id: ${{ secrets.TENANT_ID }} subscription-id: ${{ secrets.SUBSCRIPTION_ID }} - name: 'Azure CLI script: start staging slot' - uses: azure/CLI@v1 + uses: azure/CLI@4db43908b9df2e7ac93c8275a8f9a448c59338dd # v1 if: ${{ contains(github.event.inputs.environment, 'prod') }} env: ENV_SHORT: ${{ (contains(github.event.inputs.environment,'prod') && 'p') }} @@ -172,7 +172,7 @@ jobs: az functionapp start --name pagopa-${{ env.ENV_SHORT }}-weu-fn-gpd-batch --resource-group pagopa-${{ env.ENV_SHORT }}-weu-gps-gpd-rg --slot staging - name: 'Run Azure Functions Container Action DEV|UAT: deploy on production slot' - uses: Azure/functions-container-action@v1.2.1 + uses: Azure/functions-container-action@0aec6197033a72d3ca813f1aebd9391f639c2a8f # v1.2.1 if: ${{ contains(github.event.inputs.environment, 'dev') || contains(github.event.inputs.environment, 'uat') }} env: ENV_SHORT: ${{ (contains(github.event.inputs.environment,'dev') && 'd') || (contains(github.event.inputs.environment, 'uat') && 'u') }} @@ -183,7 +183,7 @@ jobs: slot-name: production - name: 'Run Azure Functions Container Action PROD: deploy on staging slot' - uses: Azure/functions-container-action@v1.2.1 + uses: Azure/functions-container-action@0aec6197033a72d3ca813f1aebd9391f639c2a8f # v1.2.1 if: ${{ contains(github.event.inputs.environment, 'prod') }} env: ENV_SHORT: ${{ (contains(github.event.inputs.environment,'prod') && 'p') }} @@ -194,7 +194,7 @@ jobs: slot-name: staging - name: 'PROD Deploy Approval' - uses: trstringer/manual-approval@v1 + uses: trstringer/manual-approval@662b3ddbc7685f897992051e87e1b4b58c07dc03 # v1 if: ${{ contains(github.event.inputs.environment, 'prod') }} with: secret: ${{ secrets.BOT_TOKEN_GITHUB }} @@ -206,7 +206,7 @@ jobs: timeout-minutes: 360 - name: 'Run Azure Functions Container Action PROD: deploy on production slot' - uses: Azure/functions-container-action@v1.2.1 + uses: Azure/functions-container-action@0aec6197033a72d3ca813f1aebd9391f639c2a8f # v1.2.1 if: ${{ contains(github.event.inputs.environment, 'prod') }} env: ENV_SHORT: ${{ (contains(github.event.inputs.environment,'prod') && 'p') }} @@ -217,7 +217,7 @@ jobs: slot-name: production - name: 'Azure CLI script: stop staging slot' - uses: azure/CLI@v1 + uses: azure/CLI@4db43908b9df2e7ac93c8275a8f9a448c59338dd # v1 if: ${{ contains(github.event.inputs.environment, 'prod') }} env: ENV_SHORT: ${{ (contains(github.event.inputs.environment,'prod') && 'p') }} diff --git a/.github/workflows/sonar_analysis.yml b/.github/workflows/sonar_analysis.yml index 8003cbf..6cc85f6 100644 --- a/.github/workflows/sonar_analysis.yml +++ b/.github/workflows/sonar_analysis.yml @@ -19,7 +19,7 @@ jobs: # Steps represent a sequence of tasks that will be executed as part of the job steps: - name: Azure Pipelines Action - Jversion - uses: jacopocarlini/azure-pipelines@v1.3 + uses: jacopocarlini/azure-pipelines@b9721743a54e862597395b4a70727cfdc03028fb # v1.3 with: azure-devops-project-url: https://dev.azure.com/pagopaspa/pagoPA-projects azure-pipeline-name: 'pagopa-function-templat.code-review' From 0462ac00f0654bec425e5213ed88f68f7232d5fb Mon Sep 17 00:00:00 2001 From: pagopa-github-bot Date: Wed, 16 Oct 2024 13:58:13 +0000 Subject: [PATCH 2/3] Bump to version 0.1.13 [skip ci] --- helm/Chart.yaml | 4 ++-- helm/values-dev.yaml | 2 +- helm/values-prod.yaml | 2 +- helm/values-uat.yaml | 2 +- pom.xml | 2 +- 5 files changed, 6 insertions(+), 6 deletions(-) diff --git a/helm/Chart.yaml b/helm/Chart.yaml index e0f9892..0acfb11 100644 --- a/helm/Chart.yaml +++ b/helm/Chart.yaml @@ -2,8 +2,8 @@ apiVersion: v2 name: pagopa-functions-template description: Microservice description type: application -version: 0.24.0 -appVersion: 0.1.12 +version: 0.25.0 +appVersion: 0.1.13 dependencies: - name: microservice-chart version: 1.21.0 diff --git a/helm/values-dev.yaml b/helm/values-dev.yaml index 7ef5692..8ef151d 100644 --- a/helm/values-dev.yaml +++ b/helm/values-dev.yaml @@ -4,7 +4,7 @@ microservice-chart: fullnameOverride: "" image: repository: pagopadcommonacr.azurecr.io/pagopa # TODO - tag: "0.1.12" + tag: "0.1.13" pullPolicy: Always # https://github.com/Azure/azure-functions-host/blob/dev/src/WebJobs.Script.WebHost/Controllers/HostController.cs livenessProbe: diff --git a/helm/values-prod.yaml b/helm/values-prod.yaml index 5aeca54..1339afb 100644 --- a/helm/values-prod.yaml +++ b/helm/values-prod.yaml @@ -4,7 +4,7 @@ microservice-chart: fullnameOverride: "" image: repository: pagopapcommonacr.azurecr.io/pagopa # TODO - tag: "0.1.12" + tag: "0.1.13" pullPolicy: Always # https://github.com/Azure/azure-functions-host/blob/dev/src/WebJobs.Script.WebHost/Controllers/HostController.cs livenessProbe: diff --git a/helm/values-uat.yaml b/helm/values-uat.yaml index 183d4e5..180ffc0 100644 --- a/helm/values-uat.yaml +++ b/helm/values-uat.yaml @@ -4,7 +4,7 @@ microservice-chart: fullnameOverride: "" image: repository: pagopaucommonacr.azurecr.io/pagopa # TODO - tag: "0.1.12" + tag: "0.1.13" pullPolicy: Always # https://github.com/Azure/azure-functions-host/blob/dev/src/WebJobs.Script.WebHost/Controllers/HostController.cs livenessProbe: diff --git a/pom.xml b/pom.xml index fc1b194..3890b9f 100644 --- a/pom.xml +++ b/pom.xml @@ -5,7 +5,7 @@ it.gov.pagopa.reporting reporting-batch - 0.1.12 + 0.1.13 jar Azure Reporting-Batch Fn From 21aacfc3583bbe8528c48624591bebfa8e9eaa30 Mon Sep 17 00:00:00 2001 From: pagopa-github-bot Date: Wed, 16 Oct 2024 14:05:46 +0000 Subject: [PATCH 3/3] Bump to version 0.1.14 [skip ci] --- helm/Chart.yaml | 4 ++-- helm/values-dev.yaml | 2 +- helm/values-prod.yaml | 2 +- helm/values-uat.yaml | 2 +- pom.xml | 2 +- 5 files changed, 6 insertions(+), 6 deletions(-) diff --git a/helm/Chart.yaml b/helm/Chart.yaml index 0acfb11..011b1a7 100644 --- a/helm/Chart.yaml +++ b/helm/Chart.yaml @@ -2,8 +2,8 @@ apiVersion: v2 name: pagopa-functions-template description: Microservice description type: application -version: 0.25.0 -appVersion: 0.1.13 +version: 0.26.0 +appVersion: 0.1.14 dependencies: - name: microservice-chart version: 1.21.0 diff --git a/helm/values-dev.yaml b/helm/values-dev.yaml index 8ef151d..7136ef3 100644 --- a/helm/values-dev.yaml +++ b/helm/values-dev.yaml @@ -4,7 +4,7 @@ microservice-chart: fullnameOverride: "" image: repository: pagopadcommonacr.azurecr.io/pagopa # TODO - tag: "0.1.13" + tag: "0.1.14" pullPolicy: Always # https://github.com/Azure/azure-functions-host/blob/dev/src/WebJobs.Script.WebHost/Controllers/HostController.cs livenessProbe: diff --git a/helm/values-prod.yaml b/helm/values-prod.yaml index 1339afb..4d0ffab 100644 --- a/helm/values-prod.yaml +++ b/helm/values-prod.yaml @@ -4,7 +4,7 @@ microservice-chart: fullnameOverride: "" image: repository: pagopapcommonacr.azurecr.io/pagopa # TODO - tag: "0.1.13" + tag: "0.1.14" pullPolicy: Always # https://github.com/Azure/azure-functions-host/blob/dev/src/WebJobs.Script.WebHost/Controllers/HostController.cs livenessProbe: diff --git a/helm/values-uat.yaml b/helm/values-uat.yaml index 180ffc0..5042fb5 100644 --- a/helm/values-uat.yaml +++ b/helm/values-uat.yaml @@ -4,7 +4,7 @@ microservice-chart: fullnameOverride: "" image: repository: pagopaucommonacr.azurecr.io/pagopa # TODO - tag: "0.1.13" + tag: "0.1.14" pullPolicy: Always # https://github.com/Azure/azure-functions-host/blob/dev/src/WebJobs.Script.WebHost/Controllers/HostController.cs livenessProbe: diff --git a/pom.xml b/pom.xml index 3890b9f..da27dc1 100644 --- a/pom.xml +++ b/pom.xml @@ -5,7 +5,7 @@ it.gov.pagopa.reporting reporting-batch - 0.1.13 + 0.1.14 jar Azure Reporting-Batch Fn