From 202271596b71fd0a638adf37cd4c5b8e002990fd Mon Sep 17 00:00:00 2001 From: "renovate-pagopa[bot]" <164534245+renovate-pagopa[bot]@users.noreply.github.com> Date: Tue, 1 Oct 2024 05:43:53 +0000 Subject: [PATCH] Pin dependencies --- .github/workflows/anchore.yml | 6 +++--- .github/workflows/check_pr.yml | 10 +++++----- .github/workflows/code_review.yml | 4 ++-- .github/workflows/create_dashboard.yaml | 4 ++-- .github/workflows/integration_test.yml | 4 ++-- .github/workflows/release_deploy.yml | 6 +++--- .github/workflows/update_code.yml | 6 +++--- Dockerfile | 4 ++-- performance-test/docker-compose.yaml | 4 ++-- 9 files changed, 24 insertions(+), 24 deletions(-) diff --git a/.github/workflows/anchore.yml b/.github/workflows/anchore.yml index 6dc1fc8..2d0d4c1 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@85b07cf1e13dd512be7c27c37a33c5864c252fcc # v2 if: always() with: sarif_file: results.sarif \ No newline at end of file diff --git a/.github/workflows/check_pr.yml b/.github/workflows/check_pr.yml index 654db85..8109be4 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' @@ -33,7 +33,7 @@ jobs: runs-on: ubuntu-latest steps: - name: Checkout - uses: actions/checkout@v3 + uses: actions/checkout@f43a0e5ff2bd294095638e18286ca9a3d1956744 # v3 - name: Formatting id: format @@ -43,7 +43,7 @@ jobs: path: . fail-on-changes: false - - 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 }} @@ -77,12 +77,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 20cb3fc..1d4dc8b 100644 --- a/.github/workflows/code_review.yml +++ b/.github/workflows/code_review.yml @@ -35,7 +35,7 @@ jobs: # Steps represent a sequence of tasks that will be executed as part of the job steps: - name: Code Review - uses: pagopa/github-actions-template/maven-code-review@v1.4.2 + uses: pagopa/github-actions-template/maven-code-review@0018ad6b766a082c35ec88cd9f18de6b54fd59d1 # v1.4.2 with: github_token: ${{ secrets.GITHUB_TOKEN }} sonar_token: ${{ secrets.SONAR_TOKEN }} @@ -89,7 +89,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/create_dashboard.yaml b/.github/workflows/create_dashboard.yaml index 5c2e4de..15f3701 100644 --- a/.github/workflows/create_dashboard.yaml +++ b/.github/workflows/create_dashboard.yaml @@ -38,7 +38,7 @@ jobs: persist-credentials: false # from https://github.com/pagopa/opex-dashboard-azure-action/ - - uses: pagopa/opex-dashboard-azure-action@v1.1.2 + - uses: pagopa/opex-dashboard-azure-action@ece3bc2b133be74cabb50aec14cdb9b8051b886f # v1.1.2 with: environment: ${{ matrix.environment }} api-name: ${{ matrix.product }} @@ -55,7 +55,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/integration_test.yml b/.github/workflows/integration_test.yml index 13d01a5..a2b1a00 100644 --- a/.github/workflows/integration_test.yml +++ b/.github/workflows/integration_test.yml @@ -70,7 +70,7 @@ jobs: steps: - name: Report Status if: ${{ inputs.notify }} - uses: ravsamhq/notify-slack-action@v2 + uses: ravsamhq/notify-slack-action@be814b201e233b2dc673608aa46e5447c8ab13f2 # v2 with: status: ${{ needs.integration_test.result }} token: ${{ secrets.GITHUB_TOKEN }} @@ -87,7 +87,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 577eef3..171df91 100644 --- a/.github/workflows/release_deploy.yml +++ b/.github/workflows/release_deploy.yml @@ -94,7 +94,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 }} @@ -109,7 +109,7 @@ jobs: steps: - name: Build and Push id: semver - uses: pagopa/github-actions-template/ghcr-build-push@v1.5.4 + uses: pagopa/github-actions-template/ghcr-build-push@d91a1fd0b913c9830589be5d86cdb71c90813fae # v1.5.4 with: branch: ${{ github.ref_name}} github_token: ${{ secrets.GITHUB_TOKEN }} @@ -136,7 +136,7 @@ jobs: steps: - name: Report Status if: ${{ needs.setup.outputs.environment == 'prod' || needs.setup.outputs.environment == 'all' }} - 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/.github/workflows/update_code.yml b/.github/workflows/update_code.yml index ed41d83..8b42a43 100644 --- a/.github/workflows/update_code.yml +++ b/.github/workflows/update_code.yml @@ -17,7 +17,7 @@ jobs: if: ${{ contains(github.event.comment.body, 'update_code') }} steps: - name: Checkout - uses: actions/checkout@v3 + uses: actions/checkout@f43a0e5ff2bd294095638e18286ca9a3d1956744 # v3 with: token: ${{ secrets.BOT_TOKEN_GITHUB }} @@ -26,7 +26,7 @@ jobs: env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} - name: Set up JDK 11 - uses: actions/setup-java@v1 + uses: actions/setup-java@b6e674f4b717d7b0ae3baee0fbe79f498905dfde # v1 with: java-version: 11 @@ -58,7 +58,7 @@ jobs: if: ${{ always() && contains(needs.*.result, 'failure') }} steps: - name: Notify if Failure - uses: actions/github-script@v6.3.3 + uses: actions/github-script@d556feaca394842dc55e4734bf3bb9f685482fa0 # v6.3.3 with: github-token: ${{ secrets.GITHUB_TOKEN }} script: | diff --git a/Dockerfile b/Dockerfile index 6f01ae3..7863f2c 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,10 +1,10 @@ -FROM maven:3.8.4-jdk-11-slim as buildtime +FROM maven:3.8.4-jdk-11-slim@sha256:04f8e5ba4a6a74fb7f97940bc75ac7340520728d2fb051ecc5c9ecbb9ba28b48 as buildtime WORKDIR /build COPY . . RUN mvn clean package -Dmaven.test.skip=true -FROM adoptopenjdk/openjdk11:alpine-jre as builder +FROM adoptopenjdk/openjdk11:alpine-jre@sha256:1f1b0fd0d2d7af2cbffb08286a8216ff058bbf5af49d271e53a5485b29513dba as builder COPY --from=buildtime /build/target/*.jar application.jar RUN java -Djarmode=layertools -jar application.jar extract diff --git a/performance-test/docker-compose.yaml b/performance-test/docker-compose.yaml index 5aa31ec..ea2d7b7 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:d39047ea6c5981ac0abacec2ea32389f22a7aa68bc8902c08b356cc5dd74aac9 container_name: k6 volumes: - '${PWD}/src:/scripts' @@ -15,7 +15,7 @@ services: - nginx nginx: - image: nginx + image: nginx@sha256:b5d3f3e104699f0768e5ca8626914c16e52647943c65274d8a9e63072bd015bb container_name: nginx volumes: - '${PWD}/nginx/nginx.conf:/etc/nginx/nginx.conf'