1515 name : Lint Python
1616 runs-on : ubuntu-latest
1717 steps :
18- - uses : actions/checkout@v4
18+ - uses : actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5 # v4.3.1
1919 - name : Check formatting
2020 run : docker run --rm -v "$(pwd)":/app/ ghcr.io/nationalarchives/tna-python-dev:latest checkformat
2121
@@ -42,18 +42,18 @@ jobs:
4242 - 5432:5432
4343 options : --health-cmd pg_isready --health-interval 1s --health-timeout 3s --health-retries 10
4444 steps :
45- - uses : actions/checkout@v4
46- - uses : actions/setup-python@v5
45+ - uses : actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5 # v4.3.1
46+ - uses : actions/setup-python@a26af69be951a213d495a4c3e4e4022e16d87065 # v5.6.0
4747 with :
4848 python-version : ${{ inputs.python-version }}
49- - uses : snok/install-poetry@v1
49+ - uses : snok/install-poetry@76e04a911780d5b312d89783f7b1cd627778900a # v1.4.1
5050 with :
5151 version : ${{ inputs.poetry-version }}
5252 virtualenvs-create : true
5353 virtualenvs-in-project : true
5454 virtualenvs-path : .venv
5555 - id : cached-poetry-dependencies
56- uses : actions/cache@v4
56+ uses : actions/cache@0057852bfaa89a56745cba8c7296529d2fc39830 # v4.3.0
5757 with :
5858 path : .venv
5959 key : ds-wagtail-venv-${{ runner.os }}-${{ inputs.poetry-version }}-${{ inputs.python-version }}-${{ hashFiles('**/poetry.lock') }}
7272 runs-on : ubuntu-latest
7373 needs : check-formatting
7474 steps :
75- - uses : actions/checkout@v4
75+ - uses : actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5 # v4.3.1
7676 - name : Set up Node
77- uses : actions/setup-node@v4
77+ uses : actions/setup-node@49933ea5288caeca8642d1e84afbd3f7d6820020 # v4.4.0
7878 with :
7979 node-version-file : .nvmrc
8080 - name : Install npm modules
8787 runs-on : ubuntu-latest
8888 needs : compile-javascript
8989 steps :
90- - uses : actions/checkout@v4
90+ - uses : actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5 # v4.3.1
9191 - name : Set up Node
92- uses : actions/setup-node@v4
92+ uses : actions/setup-node@49933ea5288caeca8642d1e84afbd3f7d6820020 # v4.4.0
9393 with :
9494 node-version-file : .nvmrc
9595 - name : Install npm modules
@@ -102,9 +102,9 @@ jobs:
102102 runs-on : ubuntu-latest
103103 needs : check-formatting
104104 steps :
105- - uses : actions/checkout@v4
105+ - uses : actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5 # v4.3.1
106106 - name : Set up Node
107- uses : actions/setup-node@v4
107+ uses : actions/setup-node@49933ea5288caeca8642d1e84afbd3f7d6820020 # v4.4.0
108108 with :
109109 node-version-file : .nvmrc
110110 - name : Install npm modules
@@ -116,8 +116,8 @@ jobs:
116116 name : Lint Dockerfile
117117 runs-on : ubuntu-latest
118118 steps :
119- - uses : actions/checkout@v4
120- - uses : hadolint/hadolint-action@v3.1.0
119+ - uses : actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5 # v4.3.1
120+ - uses : hadolint/hadolint-action@54c9adbab1582c2ef04b2016b760714a4bfde3cf # v3.1.0
121121 with :
122122 dockerfile : Dockerfile
123123 ignore : DL3045,DL3007
0 commit comments