diff --git a/.github/workflows/00_anchore.yml b/.github/workflows/00_anchore.yml index 802f626..5be96ac 100644 --- a/.github/workflows/00_anchore.yml +++ b/.github/workflows/00_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@430e27ef200cf61455a15dd5b56e130c8227a563 # v2 if: always() with: sarif_file: results.sarif diff --git a/.github/workflows/01_add_patch_label.yml b/.github/workflows/01_add_patch_label.yml index 00e0fc5..c0002b9 100644 --- a/.github/workflows/01_add_patch_label.yml +++ b/.github/workflows/01_add_patch_label.yml @@ -19,7 +19,7 @@ jobs: steps: - name: Check user labels id: check_user_labels - uses: actions/github-script@v6.3.3 + uses: actions/github-script@d556feaca394842dc55e4734bf3bb9f685482fa0 # v6.3.3 with: github-token: ${{ secrets.GITHUB_TOKEN }} script: | @@ -48,7 +48,7 @@ jobs: - name: Add comment if: ${{ steps.check_user_labels.outputs.result == 'true' }} - 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/.github/workflows/01_assignee.yml b/.github/workflows/01_assignee.yml index 0611917..cf22668 100644 --- a/.github/workflows/01_assignee.yml +++ b/.github/workflows/01_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/02_check_pr.yml b/.github/workflows/02_check_pr.yml index 8dc9b00..407d3e5 100644 --- a/.github/workflows/02_check_pr.yml +++ b/.github/workflows/02_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, 'patch') && !contains(github.event.pull_request.labels.*.name, 'ignore-for-release') }} - 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 continue-on-error: true @@ -78,7 +78,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 }} diff --git a/.github/workflows/02_update_code.yml b/.github/workflows/02_update_code.yml index ed41d83..8b42a43 100644 --- a/.github/workflows/02_update_code.yml +++ b/.github/workflows/02_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/.github/workflows/03_code_review.yml b/.github/workflows/03_code_review.yml index 1e45e4c..03caf8d 100644 --- a/.github/workflows/03_code_review.yml +++ b/.github/workflows/03_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.8.3 + uses: pagopa/github-actions-template/maven-code-review@de4ca1ddefb1461c176cc42259e494158b578fe3 # v1.8.3 with: github_token: ${{ secrets.GITHUB_TOKEN }} sonar_token: ${{ secrets.SONAR_TOKEN }} diff --git a/.github/workflows/05_release_deploy.yml b/.github/workflows/05_release_deploy.yml index 42776c5..6607826 100644 --- a/.github/workflows/05_release_deploy.yml +++ b/.github/workflows/05_release_deploy.yml @@ -81,7 +81,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 }} @@ -102,12 +102,12 @@ jobs: # github_token: ${{ secrets.GITHUB_TOKEN }} # tag: ${{ needs.release.outputs.version }} - name: Checkout - uses: actions/checkout@v3 + uses: actions/checkout@f43a0e5ff2bd294095638e18286ca9a3d1956744 # v3 with: ref: ${{ github.ref_name }} - name: Login to GitHub Container Registry - uses: docker/login-action@v2 + uses: docker/login-action@465a07811f14bebb1938fbed4728c6a1ff8901fc # v2 with: registry: ghcr.io username: ${{ github.actor }} @@ -115,7 +115,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: | @@ -125,7 +125,7 @@ jobs: type=sha - name: Build and push - uses: docker/build-push-action@v4 + uses: docker/build-push-action@0a97817b6ade9f46837855d676c4cca3a2471fc9 # v4 with: context: . push: true @@ -155,7 +155,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/docker/local-dbs/docker-compose.yml b/docker/local-dbs/docker-compose.yml index 8212c25..6ad0df8 100644 --- a/docker/local-dbs/docker-compose.yml +++ b/docker/local-dbs/docker-compose.yml @@ -1,7 +1,7 @@ version: '3.9' services: postgres: - image: postgres:14 + image: postgres:14@sha256:626046694f31a4a6a92511bbeca43f7e78ea8c6ae2f2ed70bbaa9b9abd5b67ab container_name: postgres_nexi ports: - 5432:5432 diff --git a/performance-test/docker-compose.yaml b/performance-test/docker-compose.yaml index e9205ff..3b62b31 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:d2eb56950b84efe34f966a2b92efb1a1a2ea53e7e93b94cdf45a27cf3cd47fc0 container_name: nginx volumes: - '${PWD}/nginx/nginx.conf:/etc/nginx/nginx.conf'