File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -123,16 +123,11 @@ To use the image in GitHub Actions, you should first verify the attestation of t
123123For CI and release pipelines, you should set verify_published_from_main_image to ensure that only images published from main are used.
124124```
125125jobs:
126- verify_attestation:
127- uses: NHSDigital/eps-common-workflows/.github/workflows/verify-attestation.yml@<latest published version>
128- with:
129- runtime_docker_image: "${{ inputs.runtime_docker_image }}"
130- verify_published_from_main_image: false
131126 my_job_name:
132127 runs-on: ubuntu-22.04
133- needs: verify_attestation
128+ needs: get_config_values
134129 container:
135- image: ${{ needs.verify_attestation .outputs.pinned_image }}
130+ image: ${{ needs.get_config_values .outputs.pinned_image }}
136131 options: --user 1001:1001 --group-add 128
137132 defaults:
138133 run:
@@ -144,7 +139,6 @@ jobs:
144139 ... other steps ....
145140```
146141It is important that:
147- - the image specified uses the tag starting githubactions-
148142- there is ` options: --user 1001:1001 --group-add 128 ` below image to ensure it uses the correct user id and is added to the docker group
149143- the default shell is set to be bash
150144- the first step copies .tool-versions from /home/vscode to $HOME/.tool-versions
You can’t perform that action at this time.
0 commit comments