Skip to content

Commit d0ff76d

Browse files
Pin dependencies
1 parent 38ac699 commit d0ff76d

10 files changed

+22
-22
lines changed

.github/workflows/00_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@d835c34a7026e284170c41a0a66c956e03f247d0 # v2
5252
if: always()
5353
with:
5454
sarif_file: results.sarif

.github/workflows/01_add_patch_label.yml

+2-2
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ jobs:
1919
steps:
2020
- name: Check user labels
2121
id: check_user_labels
22-
uses: actions/[email protected]
22+
uses: actions/github-script@d556feaca394842dc55e4734bf3bb9f685482fa0 # v6.3.3
2323
with:
2424
github-token: ${{ secrets.GITHUB_TOKEN }}
2525
script: |
@@ -48,7 +48,7 @@ jobs:
4848

4949
- name: Add comment
5050
if: ${{ steps.check_user_labels.outputs.result == 'true' }}
51-
uses: actions/[email protected]
51+
uses: actions/github-script@d556feaca394842dc55e4734bf3bb9f685482fa0 # v6.3.3
5252
with:
5353
github-token: ${{ secrets.GITHUB_TOKEN }}
5454
script: |

.github/workflows/01_assignee.yml

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

.github/workflows/02_check_pr.yml

+4-4
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, '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: |
@@ -68,12 +68,12 @@ jobs:
6868
runs-on: ubuntu-latest
6969
name: Check Size
7070
steps:
71-
- uses: actions/checkout@v3
71+
- uses: actions/checkout@f43a0e5ff2bd294095638e18286ca9a3d1956744 # v3
7272
with:
7373
fetch-depth: 0
7474

7575
- name: Check Size
76-
uses: actions/[email protected]
76+
uses: actions/github-script@d556feaca394842dc55e4734bf3bb9f685482fa0 # v6.3.3
7777
env:
7878
IGNORED_FILES: openapi.json, api-docs.json
7979
BRANCH_NAME: ${{ github.head_ref}}

.github/workflows/03_code_review.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ jobs:
3535
# Steps represent a sequence of tasks that will be executed as part of the job
3636
steps:
3737
- name: Code Review
38-
uses: pagopa/github-actions-template/[email protected]
38+
uses: pagopa/github-actions-template/maven-code-review@5a544cfcc87edacde3391e4fb70228194f90ec63 # v1.10.4
3939
with:
4040
github_token: ${{ secrets.GITHUB_TOKEN }}
4141
sonar_token: ${{ secrets.SONAR_TOKEN }}

.github/workflows/04_release_deploy.yml

+3-3
Original file line numberDiff line numberDiff line change
@@ -110,7 +110,7 @@ jobs:
110110
steps:
111111
- name: Make Release
112112
id: release
113-
uses: pagopa/github-actions-template/[email protected]
113+
uses: pagopa/github-actions-template/maven-release@38203c7599bcac41a743237ccb17c733ff9c2eee # v1.12.0
114114
with:
115115
semver: ${{ needs.setup.outputs.semver }}
116116
github_token: ${{ secrets.BOT_TOKEN_GITHUB }}
@@ -126,7 +126,7 @@ jobs:
126126
steps:
127127
- name: Build and Push
128128
id: semver
129-
uses: pagopa/github-actions-template/[email protected]
129+
uses: pagopa/github-actions-template/ghcr-build-push@d91a1fd0b913c9830589be5d86cdb71c90813fae # v1.5.4
130130
with:
131131
github_token: ${{ secrets.GITHUB_TOKEN }}
132132
tag: ${{ needs.release.outputs.version }}
@@ -148,7 +148,7 @@ jobs:
148148
steps:
149149
- name: Report Status
150150
if: ${{ needs.setup.outputs.environment == 'prod' }}
151-
uses: ravsamhq/notify-slack-action@v2
151+
uses: ravsamhq/notify-slack-action@be814b201e233b2dc673608aa46e5447c8ab13f2 # v2
152152
with:
153153
status: ${{ needs.deploy_aks.result }}
154154
token: ${{ secrets.GITHUB_TOKEN }}

.github/workflows/05_integration_test.yml

+2-2
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ jobs:
7070
steps:
7171
- name: Report Status
7272
if: ${{ inputs.notify }}
73-
uses: ravsamhq/notify-slack-action@v2
73+
uses: ravsamhq/notify-slack-action@be814b201e233b2dc673608aa46e5447c8ab13f2 # v2
7474
with:
7575
status: ${{ needs.integration_test.result }}
7676
token: ${{ secrets.GITHUB_TOKEN }}
@@ -87,7 +87,7 @@ jobs:
8787
if: ${{ always() }}
8888
steps:
8989
- name: Delete Previous deployments
90-
uses: actions/github-script@v6
90+
uses: actions/github-script@d7906e4ad0b1822421a7e6a35d5ca353c962f410 # v6
9191
env:
9292
SHA_HEAD: ${{ (github.event_name == 'pull_request' && github.event.pull_request.head.sha) || github.sha}}
9393
with:

.github/workflows/06_create_dashboard.yaml

+2-2
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ jobs:
3838
persist-credentials: false
3939

4040
# from https://github.com/pagopa/opex-dashboard-azure-action/
41-
- uses: pagopa/[email protected]
41+
- uses: pagopa/opex-dashboard-azure-action@ece3bc2b133be74cabb50aec14cdb9b8051b886f # v1.1.2
4242
with:
4343
environment: ${{ matrix.environment }}
4444
api-name:
@@ -55,7 +55,7 @@ jobs:
5555
if: ${{ always() }}
5656
steps:
5757
- name: Delete Previous deployments
58-
uses: actions/github-script@v6
58+
uses: actions/github-script@d7906e4ad0b1822421a7e6a35d5ca353c962f410 # v6
5959
env:
6060
SHA_HEAD: ${{ (github.event_name == 'pull_request' && github.event.pull_request.head.sha) || github.sha}}
6161
with:

Dockerfile

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
11
#
22
# Build
33
#
4-
FROM maven:3.8.4-jdk-11-slim as buildtime
4+
FROM maven:3.8.4-jdk-11-slim@sha256:04f8e5ba4a6a74fb7f97940bc75ac7340520728d2fb051ecc5c9ecbb9ba28b48 as buildtime
55
WORKDIR /build
66
COPY . .
77
RUN mvn clean package
88

99

10-
FROM adoptopenjdk/openjdk11:alpine-jre as builder
10+
FROM adoptopenjdk/openjdk11:alpine-jre@sha256:3e81105664c1c9473c1a527a8d8f5da42f3791f80582b39f8db0072f8096b7ed as builder
1111
COPY --from=buildtime /build/target/*.jar application.jar
1212
RUN java -Djarmode=layertools -jar application.jar extract
1313

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:1bb1adb84f2b90e0c1b5ddd1ed185bbf98249dbc6f216968412ca4b3fe6f14b9
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:fb197595ebe76b9c0c14ab68159fd3c08bd067ec62300583543f0ebda353b5be
1919
container_name: nginx
2020
volumes:
2121
- '${PWD}/nginx/nginx.conf:/etc/nginx/nginx.conf'

0 commit comments

Comments
 (0)