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,12 @@ 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
28+ persist-credentials : false
2729 - name : Setup python
28- uses : actions/setup-python@v4
30+ uses : actions/setup-python@7f4fc3e22c37d6ff65e88745f38bd3157c663f7c # ratchet:actions/setup-python@ v4
2931 with :
3032 python-version : 3.9
3133 - name : Install prerequisites
@@ -43,24 +45,31 @@ jobs:
4345 check_integration_test_labels :
4446 # This check fails if integration tests are queued, in progress, or failed.
4547 runs-on : ubuntu-22.04
48+ permissions :
49+ contents : read
50+ pull-requests : read
4651 steps :
47- - uses : docker://agilepathway/pull-request-label-checker:latest
52+ - uses : docker://index.docker.io/agilepathway/pull-request-label-checker@sha256:14f5f3dfda922496d07d53494e2d2b42885165f90677a1c03d600059b7706a61 # ratchet:docker:// agilepathway/pull-request-label-checker:latest
4853 with :
4954 none_of : " ${{ env.statusLabelInProgress }},${{ env.statusLabelFailed }},${{ env.triggerLabelFull }},${{ env.triggerLabelQuick }}"
5055 repo_token : ${{ github.token }}
5156
5257 generated_docs_check :
5358 # This check succeeds if Doxygen documentation generates without errors.
5459 runs-on : ubuntu-22.04
60+ permissions :
61+ contents : read
62+ pull-requests : write
5563 steps :
56- - uses : lukka/get-cmake@latest
64+ - uses : lukka/get-cmake@591817e96fcad43505fb4eae36172462abb3a42e # ratchet:lukka/get-cmake@ latest
5765 with :
5866 cmakeVersion : " ~3.31.0"
59- - uses : actions/checkout@v3
67+ - uses : actions/checkout@f43a0e5ff2bd294095638e18286ca9a3d1956744 # ratchet:actions/checkout@ v3
6068 with :
6169 submodules : false
70+ persist-credentials : false
6271 - name : Setup python
63- uses : actions/setup-python@v4
72+ uses : actions/setup-python@7f4fc3e22c37d6ff65e88745f38bd3157c663f7c # ratchet:actions/setup-python@ v4
6473 with :
6574 python-version : 3.9
6675 - name : Install prerequisites
@@ -95,9 +104,10 @@ jobs:
95104 # Check for Google copyright in each file.
96105 runs-on : ubuntu-22.04
97106 steps :
98- - uses : actions/checkout@v3
107+ - uses : actions/checkout@f43a0e5ff2bd294095638e18286ca9a3d1956744 # ratchet:actions/checkout@ v3
99108 with :
100109 submodules : false
110+ persist-credentials : false
101111 - name : Run check_copyright.sh
102112 run : |
103113 set -e
@@ -107,12 +117,13 @@ jobs:
107117 # Check that the readme was updated, unless the PR has a specific label set (env.skipReleaseNotesLabel).
108118 runs-on : ubuntu-22.04
109119 steps :
110- - uses : actions/checkout@v3
120+ - uses : actions/checkout@f43a0e5ff2bd294095638e18286ca9a3d1956744 # ratchet:actions/checkout@ v3
111121 # Skip this if the PR has the skipReleaseNotes label or if it's a merge to other than main.
112122 if : ${{!contains(github.event.pull_request.labels.*.name, env.skipReleaseNotesLabel) && (github.event.pull_request.base.ref == 'main')}}
113123 with :
114124 fetch-depth : 0
115125 submodules : false
126+ persist-credentials : false
116127 - name : Check whether release notes have been updated
117128 # Skip this if the PR has the skipReleaseNotes label or if it's a merge to other than main.
118129 if : ${{!contains(github.event.pull_request.labels.*.name, env.skipReleaseNotesLabel) && (github.event.pull_request.base.ref == 'main')}}
0 commit comments