From ee0adf2b56e6259975adf8a8ce44547310ee5769 Mon Sep 17 00:00:00 2001 From: "renovate-pagopa[bot]" <164534245+renovate-pagopa[bot]@users.noreply.github.com> Date: Fri, 7 Jun 2024 06:02:46 +0000 Subject: [PATCH] Pin dependencies --- .github/maven_code_review/action.yml | 10 +++++----- .github/workflows/anchore.yml | 6 +++--- .github/workflows/check_pr.yml | 12 ++++++------ .github/workflows/code_review.yml | 4 ++-- .github/workflows/create_dashboard.yml | 2 +- .github/workflows/integration_test.yml | 4 ++-- .github/workflows/release_deploy.yml | 8 ++++---- Dockerfile | 4 ++-- Dockerfile_integration_test | 4 ++-- performance-test/docker-compose.yaml | 4 ++-- performance-test/src/DockerfilePost | 2 +- performance-test/src/DockerfilePre | 2 +- 12 files changed, 31 insertions(+), 31 deletions(-) diff --git a/.github/maven_code_review/action.yml b/.github/maven_code_review/action.yml index f87f2fa3..bc64e682 100644 --- a/.github/maven_code_review/action.yml +++ b/.github/maven_code_review/action.yml @@ -38,27 +38,27 @@ inputs: runs: using: "composite" steps: - - uses: actions/checkout@v2 + - uses: actions/checkout@ee0669bd1cc54295c223e0bb666b733df41de1c5 # v2 - name: Set up JDK - uses: actions/setup-java@v1 + uses: actions/setup-java@b6e674f4b717d7b0ae3baee0fbe79f498905dfde # v1 with: java-version: ${{ inputs.jdk_version }} - name: Set up Maven - uses: stCarolas/setup-maven@v4.5 + uses: stCarolas/setup-maven@07fbbe97d97ef44336b7382563d66743297e442f # v4.5 with: maven-version: ${{ inputs.maven_version }} - name: Cache Maven packages - uses: actions/cache@v1 + uses: actions/cache@f5ce41475b483ad7581884324a6eca9f48f8dcc7 # v1 with: path: ~/.m2 key: ${{ runner.os }}-m2-${{ hashFiles('**/pom.xml') }} restore-keys: ${{ runner.os }}-m2 - name: Cache SonarCloud packages - uses: actions/cache@v1 + uses: actions/cache@f5ce41475b483ad7581884324a6eca9f48f8dcc7 # v1 with: path: ~/.sonar-project.properties/cache key: ${{ runner.os }}-sonar-project.properties diff --git a/.github/workflows/anchore.yml b/.github/workflows/anchore.yml index 802f6267..8fd67bbe 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@6ac9fc7e8e290bda8fac86290b68e176def71959 # v2 if: always() with: sarif_file: results.sarif diff --git a/.github/workflows/check_pr.yml b/.github/workflows/check_pr.yml index a2af2df5..99086789 100644 --- a/.github/workflows/check_pr.yml +++ b/.github/workflows/check_pr.yml @@ -24,7 +24,7 @@ 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' @@ -37,7 +37,7 @@ jobs: steps: - name: Verify PR Labels if: ${{ !contains(github.event.pull_request.labels.*.name, 'major') && !contains(github.event.pull_request.labels.*.name, 'minor') && !contains(github.event.pull_request.labels.*.name, 'patch') && !contains(github.event.pull_request.labels.*.name, 'skip') }} - uses: actions/github-script@v6.3.3 + uses: actions/github-script@d556feaca394842dc55e4734bf3bb9f685482fa0 # v6.3.3 with: github-token: ${{ secrets.GITHUB_TOKEN }} script: | @@ -70,7 +70,7 @@ jobs: runs-on: ubuntu-latest steps: - name: Checkout - uses: actions/checkout@v3 + uses: actions/checkout@f43a0e5ff2bd294095638e18286ca9a3d1956744 # v3 - name: Formatting id: format @@ -79,7 +79,7 @@ jobs: with: args: "--set-exit-if-changed" - - uses: actions/github-script@v6.3.3 + - uses: actions/github-script@d556feaca394842dc55e4734bf3bb9f685482fa0 # v6.3.3 if: steps.format.outcome != 'success' with: github-token: ${{ secrets.GITHUB_TOKEN }} @@ -113,12 +113,12 @@ jobs: runs-on: ubuntu-latest name: Check Size steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@f43a0e5ff2bd294095638e18286ca9a3d1956744 # v3 with: fetch-depth: 0 - name: Check Size - uses: actions/github-script@v6.3.3 + uses: actions/github-script@d556feaca394842dc55e4734bf3bb9f685482fa0 # v6.3.3 env: IGNORED_FILES: openapi.json, openapi-node.json with: diff --git a/.github/workflows/code_review.yml b/.github/workflows/code_review.yml index c0089b29..c9ae6872 100644 --- a/.github/workflows/code_review.yml +++ b/.github/workflows/code_review.yml @@ -34,7 +34,7 @@ jobs: # Steps represent a sequence of tasks that will be executed as part of the job steps: - - uses: actions/checkout@v2.3.4 + - uses: actions/checkout@5a4ac9002d0be2fb38bd78e4b4dbde5606d7042f # v2.3.4 - name: Code Review uses: ./.github/maven_code_review with: @@ -99,7 +99,7 @@ jobs: run: echo "$GITHUB_CONTEXT" - name: Delete Previous deployments - uses: actions/github-script@v6 + uses: actions/github-script@d7906e4ad0b1822421a7e6a35d5ca353c962f410 # v6 env: SHA_HEAD: ${{ (github.event_name == 'pull_request' && github.event.pull_request.head.sha) || github.sha}} with: diff --git a/.github/workflows/create_dashboard.yml b/.github/workflows/create_dashboard.yml index fa397375..781fa8d0 100644 --- a/.github/workflows/create_dashboard.yml +++ b/.github/workflows/create_dashboard.yml @@ -51,7 +51,7 @@ jobs: persist-credentials: false - name: Read create dashboard parameters id: read_parameters - uses: actions/github-script@v6.3.3 + uses: actions/github-script@d556feaca394842dc55e4734bf3bb9f685482fa0 # v6.3.3 env: API_NAME: ${{ github.event.client_payload.api-name || inputs.api-name }} ENVIRONMENT: ${{ github.event.client_payload.environment || inputs.environment }} diff --git a/.github/workflows/integration_test.yml b/.github/workflows/integration_test.yml index 79c16908..a331cdf7 100644 --- a/.github/workflows/integration_test.yml +++ b/.github/workflows/integration_test.yml @@ -89,7 +89,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 }} @@ -106,7 +106,7 @@ jobs: if: ${{ always() }} steps: - name: Delete Previous deployments - uses: actions/github-script@v6 + uses: actions/github-script@d7906e4ad0b1822421a7e6a35d5ca353c962f410 # v6 env: SHA_HEAD: ${{ (github.event_name == 'pull_request' && github.event.pull_request.head.sha) || github.sha}} with: diff --git a/.github/workflows/release_deploy.yml b/.github/workflows/release_deploy.yml index b039d4f5..2c4cbe2f 100644 --- a/.github/workflows/release_deploy.yml +++ b/.github/workflows/release_deploy.yml @@ -55,7 +55,7 @@ jobs: steps: - name: Get semver id: get_semver - uses: pagopa/github-actions-template/semver-setup@v1.4.2 + uses: pagopa/github-actions-template/semver-setup@0018ad6b766a082c35ec88cd9f18de6b54fd59d1 # v1.4.2 - if: ${{ github.event.inputs.environment == null || github.event.inputs.environment == 'dev' }} run: echo "ENVIRNOMENT=dev" >> $GITHUB_ENV @@ -84,7 +84,7 @@ jobs: steps: - name: Make Release id: release - uses: pagopa/github-actions-template/maven-release@v1.5.2 + uses: pagopa/github-actions-template/maven-release@d63ef91b9b1f0021276f0d63dadf42067d0b49f6 # v1.5.2 with: semver: ${{ needs.setup.outputs.semver }} github_token: ${{ secrets.BOT_TOKEN_GITHUB }} @@ -99,7 +99,7 @@ jobs: steps: - name: Build and Push id: semver - uses: pagopa/github-actions-template/ghcr-build-push@v1.4.2 + uses: pagopa/github-actions-template/ghcr-build-push@0018ad6b766a082c35ec88cd9f18de6b54fd59d1 # v1.4.2 with: github_token: ${{ secrets.GITHUB_TOKEN }} tag: ${{ needs.release.outputs.version }} @@ -128,7 +128,7 @@ jobs: steps: - name: Report Status if: always() - uses: ravsamhq/notify-slack-action@v2 + uses: ravsamhq/notify-slack-action@be814b201e233b2dc673608aa46e5447c8ab13f2 # v2 with: status: ${{ needs.deploy_aks.result }} token: ${{ secrets.GITHUB_TOKEN }} diff --git a/Dockerfile b/Dockerfile index eccd4e8f..b07fef21 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,5 +1,5 @@ ## Stage 1 : build with maven builder image with native capabilities -FROM quay.io/quarkus/ubi-quarkus-graalvmce-builder-image:22.3-java17 AS build +FROM quay.io/quarkus/ubi-quarkus-graalvmce-builder-image:22.3-java17@sha256:7ccbc8004661bc0888c96f9b5db78042a1fbf8a432094ec00b05a694a75f287c AS build COPY --chown=quarkus:quarkus mvnw /code/mvnw COPY --chown=quarkus:quarkus .mvn /code/.mvn COPY --chown=quarkus:quarkus pom.xml /code/ @@ -39,7 +39,7 @@ RUN mkdir -p /code/target/jmx && \ RUN chmod 777 /code/jmx_prometheus_javaagent-0.19.0.jar && \ cp /code/jmx_prometheus_javaagent-0.19.0.jar /code/target/jmx/jmx_prometheus_javaagent-0.19.0.jar -FROM registry.access.redhat.com/ubi8/openjdk-17:1.14 +FROM registry.access.redhat.com/ubi8/openjdk-17:1.14@sha256:79585ca02551ecff9d368905d7ce387232b9fd328256e7a715ae3c4ec7b086d3 ENV LANGUAGE='en_US:en' diff --git a/Dockerfile_integration_test b/Dockerfile_integration_test index a0c73055..cec3ce87 100644 --- a/Dockerfile_integration_test +++ b/Dockerfile_integration_test @@ -1,5 +1,5 @@ ## Stage 1 : build with maven builder image with native capabilities -FROM quay.io/quarkus/ubi-quarkus-graalvmce-builder-image:22.3-java17 AS build +FROM quay.io/quarkus/ubi-quarkus-graalvmce-builder-image:22.3-java17@sha256:7ccbc8004661bc0888c96f9b5db78042a1fbf8a432094ec00b05a694a75f287c AS build COPY --chown=quarkus:quarkus mvnw /code/mvnw COPY --chown=quarkus:quarkus .mvn /code/.mvn COPY --chown=quarkus:quarkus pom.xml /code/ @@ -29,7 +29,7 @@ RUN mkdir -p /code/target/jmx && \ RUN chmod 777 /code/jmx_prometheus_javaagent-0.19.0.jar && \ cp /code/jmx_prometheus_javaagent-0.19.0.jar /code/target/jmx/jmx_prometheus_javaagent-0.19.0.jar -FROM registry.access.redhat.com/ubi8/openjdk-17:1.14 +FROM registry.access.redhat.com/ubi8/openjdk-17:1.14@sha256:79585ca02551ecff9d368905d7ce387232b9fd328256e7a715ae3c4ec7b086d3 ENV LANGUAGE='en_US:en' diff --git a/performance-test/docker-compose.yaml b/performance-test/docker-compose.yaml index c07d21fd..726cd534 100644 --- a/performance-test/docker-compose.yaml +++ b/performance-test/docker-compose.yaml @@ -1,7 +1,7 @@ version: '3.3' services: k6: - image: grafana/k6 + image: grafana/k6@sha256:278d78f2953041b6b4b0bd315e8605ed43222245771adc405f3252f3edea0eef container_name: k6 volumes: - '${PWD}/src:/scripts' @@ -15,7 +15,7 @@ services: - nginx nginx: - image: nginx + image: nginx@sha256:0f04e4f646a3f14bf31d8bc8d885b6c951fdcf42589d06845f64d18aec6a3c4d container_name: nginx volumes: - '${PWD}/nginx/nginx.conf:/etc/nginx/nginx.conf' diff --git a/performance-test/src/DockerfilePost b/performance-test/src/DockerfilePost index 3d85f800..150ef24a 100644 --- a/performance-test/src/DockerfilePost +++ b/performance-test/src/DockerfilePost @@ -1,5 +1,5 @@ # specify the node base image with your desired version node: -FROM node:16 +FROM node:16@sha256:f77a1aef2da8d83e45ec990f45df50f1a286c5fe8bbfb8c6e4246c6389705c0b WORKDIR /src/node-app diff --git a/performance-test/src/DockerfilePre b/performance-test/src/DockerfilePre index 06c3abf8..ea315caa 100644 --- a/performance-test/src/DockerfilePre +++ b/performance-test/src/DockerfilePre @@ -1,5 +1,5 @@ # specify the node base image with your desired version node: -FROM node:16 +FROM node:16@sha256:f77a1aef2da8d83e45ec990f45df50f1a286c5fe8bbfb8c6e4246c6389705c0b WORKDIR /src/node-app