44 pull_request :
55 types : [opened, reopened, synchronize, labeled, unlabeled]
66
7- permissions : write-all
7+ permissions :
8+ contents : read
89
910env :
1011 triggerLabelFull : " tests-requested: full"
@@ -21,11 +22,11 @@ jobs:
2122 file_format_check :
2223 runs-on : ubuntu-22.04
2324 steps :
24- - uses : actions/checkout@v3
25+ - uses : actions/checkout@f43a0e5ff2bd294095638e18286ca9a3d1956744 # ratchet:actions/checkout@ v3
2526 with :
2627 submodules : false
2728 - name : Setup python
28- uses : actions/setup-python@v4
29+ uses : actions/setup-python@7f4fc3e22c37d6ff65e88745f38bd3157c663f7c # ratchet:actions/setup-python@ v4
2930 with :
3031 python-version : 3.9
3132 - name : Install prerequisites
@@ -43,24 +44,30 @@ jobs:
4344 check_integration_test_labels :
4445 # This check fails if integration tests are queued, in progress, or failed.
4546 runs-on : ubuntu-22.04
47+ permissions :
48+ contents : read
49+ pull-requests : read
4650 steps :
47- - uses : docker://agilepathway/pull-request-label-checker:latest
51+ - uses : docker://index.docker.io/agilepathway/pull-request-label-checker@sha256:14f5f3dfda922496d07d53494e2d2b42885165f90677a1c03d600059b7706a61 # ratchet:docker:// agilepathway/pull-request-label-checker:latest
4852 with :
4953 none_of : " ${{ env.statusLabelInProgress }},${{ env.statusLabelFailed }},${{ env.triggerLabelFull }},${{ env.triggerLabelQuick }}"
5054 repo_token : ${{ github.token }}
5155
5256 generated_docs_check :
5357 # This check succeeds if Doxygen documentation generates without errors.
5458 runs-on : ubuntu-22.04
59+ permissions :
60+ contents : read
61+ pull-requests : write
5562 steps :
56- - uses : lukka/get-cmake@latest
63+ - uses : lukka/get-cmake@591817e96fcad43505fb4eae36172462abb3a42e # ratchet:lukka/get-cmake@ latest
5764 with :
5865 cmakeVersion : " ~3.31.0"
59- - uses : actions/checkout@v3
66+ - uses : actions/checkout@f43a0e5ff2bd294095638e18286ca9a3d1956744 # ratchet:actions/checkout@ v3
6067 with :
6168 submodules : false
6269 - name : Setup python
63- uses : actions/setup-python@v4
70+ uses : actions/setup-python@7f4fc3e22c37d6ff65e88745f38bd3157c663f7c # ratchet:actions/setup-python@ v4
6471 with :
6572 python-version : 3.9
6673 - name : Install prerequisites
95102 # Check for Google copyright in each file.
96103 runs-on : ubuntu-22.04
97104 steps :
98- - uses : actions/checkout@v3
105+ - uses : actions/checkout@f43a0e5ff2bd294095638e18286ca9a3d1956744 # ratchet:actions/checkout@ v3
99106 with :
100107 submodules : false
101108 - name : Run check_copyright.sh
@@ -107,7 +114,7 @@ jobs:
107114 # Check that the readme was updated, unless the PR has a specific label set (env.skipReleaseNotesLabel).
108115 runs-on : ubuntu-22.04
109116 steps :
110- - uses : actions/checkout@v3
117+ - uses : actions/checkout@f43a0e5ff2bd294095638e18286ca9a3d1956744 # ratchet:actions/checkout@ v3
111118 # Skip this if the PR has the skipReleaseNotes label or if it's a merge to other than main.
112119 if : ${{!contains(github.event.pull_request.labels.*.name, env.skipReleaseNotesLabel) && (github.event.pull_request.base.ref == 'main')}}
113120 with :
0 commit comments