Skip to content

Commit 698b180

Browse files
Pin dependencies
1 parent ae2e6d4 commit 698b180

13 files changed

+32
-32
lines changed

.github/maven_code_review/action.yml

+5-5
Original file line numberDiff line numberDiff line change
@@ -38,27 +38,27 @@ inputs:
3838
runs:
3939
using: "composite"
4040
steps:
41-
- uses: actions/checkout@v2
41+
- uses: actions/checkout@ee0669bd1cc54295c223e0bb666b733df41de1c5 # v2
4242

4343
- name: Set up JDK
44-
uses: actions/setup-java@v1
44+
uses: actions/setup-java@b6e674f4b717d7b0ae3baee0fbe79f498905dfde # v1
4545
with:
4646
java-version: ${{ inputs.jdk_version }}
4747

4848
- name: Set up Maven
49-
uses: stCarolas/[email protected]
49+
uses: stCarolas/setup-maven@07fbbe97d97ef44336b7382563d66743297e442f # v4.5
5050
with:
5151
maven-version: ${{ inputs.maven_version }}
5252

5353
- name: Cache Maven packages
54-
uses: actions/cache@v1
54+
uses: actions/cache@f5ce41475b483ad7581884324a6eca9f48f8dcc7 # v1
5555
with:
5656
path: ~/.m2
5757
key: ${{ runner.os }}-m2-${{ hashFiles('**/pom.xml') }}
5858
restore-keys: ${{ runner.os }}-m2
5959

6060
- name: Cache SonarCloud packages
61-
uses: actions/cache@v1
61+
uses: actions/cache@f5ce41475b483ad7581884324a6eca9f48f8dcc7 # v1
6262
with:
6363
path: ~/.sonar-project.properties/cache
6464
key: ${{ runner.os }}-sonar-project.properties

.github/workflows/anchore.yml

+3-3
Original file line numberDiff line numberDiff line change
@@ -35,20 +35,20 @@ jobs:
3535
runs-on: ubuntu-latest
3636
steps:
3737
- name: Checkout the code
38-
uses: actions/checkout@v3
38+
uses: actions/checkout@f43a0e5ff2bd294095638e18286ca9a3d1956744 # v3
3939

4040
- name: Build the Docker image
4141
run: docker build . --file ${{ env.DOCKERFILE }} --tag localbuild/testimage:latest
4242

4343
- name: Run the Anchore scan action itself with GitHub Advanced Security code scanning integration enabled
44-
uses: anchore/scan-action@v3
44+
uses: anchore/scan-action@3343887d815d7b07465f6fdcd395bd66508d486a # v3
4545
with:
4646
image: "localbuild/testimage:latest"
4747
acs-report-enable: true
4848
fail-build: true
4949
severity-cutoff: "high"
5050
- name: Upload Anchore Scan Report
51-
uses: github/codeql-action/upload-sarif@v2
51+
uses: github/codeql-action/upload-sarif@366883a76d75dcee5428da5c3ae7abf9386e35ac # v2
5252
if: always()
5353
with:
5454
sarif_file: results.sarif

.github/workflows/check_pr.yml

+6-6
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ jobs:
2424
steps:
2525
- name: Assign Me
2626
# You may pin to the exact commit or the version.
27-
uses: kentaro-m/[email protected]
27+
uses: kentaro-m/auto-assign-action@746a3a558fdd0e061f612ec9f8ff1b8a19c1a115 # v1.2.1
2828
with:
2929
configuration-path: '.github/auto_assign.yml'
3030

@@ -37,7 +37,7 @@ jobs:
3737
steps:
3838
- name: Verify PR Labels
3939
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') }}
40-
uses: actions/[email protected]
40+
uses: actions/github-script@d556feaca394842dc55e4734bf3bb9f685482fa0 # v6.3.3
4141
with:
4242
github-token: ${{ secrets.GITHUB_TOKEN }}
4343
script: |
@@ -70,7 +70,7 @@ jobs:
7070
runs-on: ubuntu-latest
7171
steps:
7272
- name: Checkout
73-
uses: actions/checkout@v3
73+
uses: actions/checkout@f43a0e5ff2bd294095638e18286ca9a3d1956744 # v3
7474

7575
- name: Formatting
7676
id: format
@@ -79,7 +79,7 @@ jobs:
7979
with:
8080
args: "--set-exit-if-changed"
8181

82-
- uses: actions/[email protected]
82+
- uses: actions/github-script@d556feaca394842dc55e4734bf3bb9f685482fa0 # v6.3.3
8383
if: steps.format.outcome != 'success'
8484
with:
8585
github-token: ${{ secrets.GITHUB_TOKEN }}
@@ -113,12 +113,12 @@ jobs:
113113
runs-on: ubuntu-latest
114114
name: Check Size
115115
steps:
116-
- uses: actions/checkout@v3
116+
- uses: actions/checkout@f43a0e5ff2bd294095638e18286ca9a3d1956744 # v3
117117
with:
118118
fetch-depth: 0
119119

120120
- name: Check Size
121-
uses: actions/[email protected]
121+
uses: actions/github-script@d556feaca394842dc55e4734bf3bb9f685482fa0 # v6.3.3
122122
env:
123123
IGNORED_FILES: openapi.json, openapi-node.json
124124
with:

.github/workflows/code_review.yml

+2-2
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ jobs:
3434

3535
# Steps represent a sequence of tasks that will be executed as part of the job
3636
steps:
37-
- uses: actions/[email protected]
37+
- uses: actions/checkout@5a4ac9002d0be2fb38bd78e4b4dbde5606d7042f # v2.3.4
3838
- name: Code Review
3939
uses: ./.github/maven_code_review
4040
with:
@@ -99,7 +99,7 @@ jobs:
9999
run: echo "$GITHUB_CONTEXT"
100100

101101
- name: Delete Previous deployments
102-
uses: actions/github-script@v6
102+
uses: actions/github-script@d7906e4ad0b1822421a7e6a35d5ca353c962f410 # v6
103103
env:
104104
SHA_HEAD: ${{ (github.event_name == 'pull_request' && github.event.pull_request.head.sha) || github.sha}}
105105
with:

.github/workflows/create_dashboard.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ jobs:
4141
persist-credentials: false
4242

4343
# from https://github.com/pagopa/opex-dashboard-azure-action/
44-
- uses: pagopa/[email protected]
44+
- uses: pagopa/opex-dashboard-azure-action@ece3bc2b133be74cabb50aec14cdb9b8051b886f # v1.1.2
4545
with:
4646
environment: ${{ matrix.environment }}
4747
api-name: ${{ matrix.product }}/${{ matrix.version }}

.github/workflows/create_dashboard.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ jobs:
3232
persist-credentials: false
3333

3434
# from https://github.com/pagopa/opex-dashboard-azure-action/
35-
- uses: pagopa/[email protected]
35+
- uses: pagopa/opex-dashboard-azure-action@ece3bc2b133be74cabb50aec14cdb9b8051b886f # v1.1.2
3636
with:
3737
environment: ${{ matrix.environment }}
3838
api-name: ${{ matrix.product }}

.github/workflows/integration_test.yml

+2-2
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,7 @@ jobs:
8989
steps:
9090
- name: Report Status
9191
if: always()
92-
uses: ravsamhq/notify-slack-action@v2
92+
uses: ravsamhq/notify-slack-action@be814b201e233b2dc673608aa46e5447c8ab13f2 # v2
9393
with:
9494
status: ${{ needs.integration_test.result }}
9595
token: ${{ secrets.GITHUB_TOKEN }}
@@ -106,7 +106,7 @@ jobs:
106106
if: ${{ always() }}
107107
steps:
108108
- name: Delete Previous deployments
109-
uses: actions/github-script@v6
109+
uses: actions/github-script@d7906e4ad0b1822421a7e6a35d5ca353c962f410 # v6
110110
env:
111111
SHA_HEAD: ${{ (github.event_name == 'pull_request' && github.event.pull_request.head.sha) || github.sha}}
112112
with:

.github/workflows/release_deploy.yml

+4-4
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ jobs:
5555
steps:
5656
- name: Get semver
5757
id: get_semver
58-
uses: pagopa/github-actions-template/[email protected]
58+
uses: pagopa/github-actions-template/semver-setup@0018ad6b766a082c35ec88cd9f18de6b54fd59d1 # v1.4.2
5959

6060
- if: ${{ github.event.inputs.environment == null || github.event.inputs.environment == 'dev' }}
6161
run: echo "ENVIRNOMENT=dev" >> $GITHUB_ENV
@@ -84,7 +84,7 @@ jobs:
8484
steps:
8585
- name: Make Release
8686
id: release
87-
uses: pagopa/github-actions-template/[email protected]
87+
uses: pagopa/github-actions-template/maven-release@d63ef91b9b1f0021276f0d63dadf42067d0b49f6 # v1.5.2
8888
with:
8989
semver: ${{ needs.setup.outputs.semver }}
9090
github_token: ${{ secrets.BOT_TOKEN_GITHUB }}
@@ -99,7 +99,7 @@ jobs:
9999
steps:
100100
- name: Build and Push
101101
id: semver
102-
uses: pagopa/github-actions-template/[email protected]
102+
uses: pagopa/github-actions-template/ghcr-build-push@0018ad6b766a082c35ec88cd9f18de6b54fd59d1 # v1.4.2
103103
with:
104104
github_token: ${{ secrets.GITHUB_TOKEN }}
105105
tag: ${{ needs.release.outputs.version }}
@@ -128,7 +128,7 @@ jobs:
128128
steps:
129129
- name: Report Status
130130
if: always()
131-
uses: ravsamhq/notify-slack-action@v2
131+
uses: ravsamhq/notify-slack-action@be814b201e233b2dc673608aa46e5447c8ab13f2 # v2
132132
with:
133133
status: ${{ needs.deploy_aks.result }}
134134
token: ${{ secrets.GITHUB_TOKEN }}

Dockerfile

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
## Stage 1 : build with maven builder image with native capabilities
2-
FROM quay.io/quarkus/ubi-quarkus-graalvmce-builder-image:22.3-java17 AS build
2+
FROM quay.io/quarkus/ubi-quarkus-graalvmce-builder-image:22.3-java17@sha256:2cb879b4e6cb75859fe37d0d48a743715718032eda71b387f568f1809ab8bdbf AS build
33
COPY --chown=quarkus:quarkus mvnw /code/mvnw
44
COPY --chown=quarkus:quarkus .mvn /code/.mvn
55
COPY --chown=quarkus:quarkus pom.xml /code/
@@ -39,7 +39,7 @@ RUN mkdir -p /code/target/jmx && \
3939
RUN chmod 777 /code/jmx_prometheus_javaagent-0.19.0.jar && \
4040
cp /code/jmx_prometheus_javaagent-0.19.0.jar /code/target/jmx/jmx_prometheus_javaagent-0.19.0.jar
4141

42-
FROM registry.access.redhat.com/ubi8/openjdk-17:1.14
42+
FROM registry.access.redhat.com/ubi8/openjdk-17:1.14@sha256:79585ca02551ecff9d368905d7ce387232b9fd328256e7a715ae3c4ec7b086d3
4343

4444
ENV LANGUAGE='en_US:en'
4545

Dockerfile_integration_test

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
## Stage 1 : build with maven builder image with native capabilities
2-
FROM quay.io/quarkus/ubi-quarkus-graalvmce-builder-image:22.3-java17 AS build
2+
FROM quay.io/quarkus/ubi-quarkus-graalvmce-builder-image:22.3-java17@sha256:2cb879b4e6cb75859fe37d0d48a743715718032eda71b387f568f1809ab8bdbf AS build
33
COPY --chown=quarkus:quarkus mvnw /code/mvnw
44
COPY --chown=quarkus:quarkus .mvn /code/.mvn
55
COPY --chown=quarkus:quarkus pom.xml /code/
@@ -29,7 +29,7 @@ RUN mkdir -p /code/target/jmx && \
2929
RUN chmod 777 /code/jmx_prometheus_javaagent-0.19.0.jar && \
3030
cp /code/jmx_prometheus_javaagent-0.19.0.jar /code/target/jmx/jmx_prometheus_javaagent-0.19.0.jar
3131

32-
FROM registry.access.redhat.com/ubi8/openjdk-17:1.14
32+
FROM registry.access.redhat.com/ubi8/openjdk-17:1.14@sha256:79585ca02551ecff9d368905d7ce387232b9fd328256e7a715ae3c4ec7b086d3
3333

3434
ENV LANGUAGE='en_US:en'
3535

performance-test/docker-compose.yaml

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
version: '3.3'
22
services:
33
k6:
4-
image: grafana/k6
4+
image: grafana/k6@sha256:9e37f3209c16af8c17a79cf3a5f7d4402673726de4c7e25572d189acf06405c5
55
container_name: k6
66
volumes:
77
- '${PWD}/src:/scripts'
@@ -15,7 +15,7 @@ services:
1515
- nginx
1616

1717
nginx:
18-
image: nginx
18+
image: nginx@sha256:447a8665cc1dab95b1ca778e162215839ccbb9189104c79d7ec3a81e14577add
1919
container_name: nginx
2020
volumes:
2121
- '${PWD}/nginx/nginx.conf:/etc/nginx/nginx.conf'

performance-test/src/DockerfilePost

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
# specify the node base image with your desired version node:<version>
2-
FROM node:16
2+
FROM node:16@sha256:f77a1aef2da8d83e45ec990f45df50f1a286c5fe8bbfb8c6e4246c6389705c0b
33

44
WORKDIR /src/node-app
55

performance-test/src/DockerfilePre

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
# specify the node base image with your desired version node:<version>
2-
FROM node:16
2+
FROM node:16@sha256:f77a1aef2da8d83e45ec990f45df50f1a286c5fe8bbfb8c6e4246c6389705c0b
33

44
WORKDIR /src/node-app
55

0 commit comments

Comments
 (0)