@@ -3,10 +3,18 @@ name: GH Actions CI
33on :
44  push :
55    branches :
6+       #  Pattern order matters: the last matching inclusion/exclusion wins
67      - ' main' 
8+       #  We don't want to run CI on branches for dependabot, just on the PR.
9+       - ' !dependabot/**' 
710  pull_request :
811    branches :
912      - ' main' 
13+       #  Ignore dependabot PRs that are not just about build dependencies or workflows;
14+       #  we'll reject such PRs and send one ourselves.
15+       - ' !dependabot/**' 
16+       - ' dependabot/maven/build-dependencies-**' 
17+       - ' dependabot/github_actions/workflow-actions-**' 
1018
1119permissions : { }  #  none
1220
5664          RDBMS : ${{ matrix.rdbms }} 
5765        run : ci/database-start.sh 
5866      - name : Set up Java 21 
59-         uses : actions/setup-java@3a4f6e1af504cf6a31855fa899c6aa5355ba6c12   #  v4.7.0 
67+         uses : actions/setup-java@c5195efecf7bdfc987ee8bae7a71cb8b11521c00   #  v4.7.1 
6068        with :
6169          distribution : ' temurin' 
6270          java-version : ' 21' 
7381          echo "buildtool-cache-key=${ROOT_CACHE_KEY}-${CURRENT_MONTH}-${CURRENT_BRANCH}-${CURRENT_DAY}" >> $GITHUB_OUTPUT 
7482name : Cache Maven/Gradle Dependency/Dist Caches 
7583        id : cache-maven 
76-         uses : actions/cache@1bd1e32a3bdc45362d1e726936510720a7c30a57   #  v4.2.0 
84+         uses : actions/cache@5a3ec84eff668545956fd18022155c47e93e2684   #  v4.2.3 
7785        #  if it's not a pull request, we restore and save the cache
7886        if : github.event_name != 'pull_request' 
7987        with :
9098            ${{ steps.cache-key.outputs.buildtool-monthly-branch-cache-key }}- 
9199            ${{ steps.cache-key.outputs.buildtool-monthly-cache-key }}- 
92100name : Restore Maven/Gradle Dependency/Dist Caches 
93-         uses : actions/cache/restore@1bd1e32a3bdc45362d1e726936510720a7c30a57   #  v4.2.0 
101+         uses : actions/cache/restore@5a3ec84eff668545956fd18022155c47e93e2684   #  v4.2.3 
94102        #  if it a pull request, we restore the cache but we don't save it
95103        if : github.event_name == 'pull_request' 
96104        with :
@@ -118,14 +126,14 @@ jobs:
118126      #  The actual publishing must be done in a separate job (see ci-report.yml).
119127      #  We don't write to the remote cache as that would be unsafe.
120128      - name : Upload GitHub Actions artifact for the Develocity build scan 
121-         uses : actions/upload-artifact@65c4c4a1ddee5b72f698fdd19549f0f0fb45cf08   #  v4.6.0 
129+         uses : actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02   #  v4.6.2 
122130        if : " ${{ github.event_name == 'pull_request' && !cancelled() }}" 
123131        with :
124132          name : build-scan-data-${{ matrix.rdbms }} 
125133          path : ~/.gradle/build-scan-data 
126134
127135      - name : Upload test reports (if Gradle failed) 
128-         uses : actions/upload-artifact@65c4c4a1ddee5b72f698fdd19549f0f0fb45cf08   #  v4.6.0 
136+         uses : actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02   #  v4.6.2 
129137        if : failure() 
130138        with :
131139          name : test-reports-java11-${{ matrix.rdbms }} 
@@ -179,7 +187,7 @@ jobs:
179187          echo "buildtool-cache-key=${ROOT_CACHE_KEY}-${CURRENT_MONTH}-${CURRENT_BRANCH}-${CURRENT_DAY}" >> $GITHUB_OUTPUT 
180188name : Cache Maven/Gradle Dependency/Dist Caches 
181189        id : cache-maven 
182-         uses : actions/cache@1bd1e32a3bdc45362d1e726936510720a7c30a57   #  v4.2.0 
190+         uses : actions/cache@5a3ec84eff668545956fd18022155c47e93e2684   #  v4.2.3 
183191        #  if it's not a pull request, we restore and save the cache
184192        if : github.event_name != 'pull_request' 
185193        with :
@@ -196,7 +204,7 @@ jobs:
196204            ${{ steps.cache-key.outputs.buildtool-monthly-branch-cache-key }}- 
197205            ${{ steps.cache-key.outputs.buildtool-monthly-cache-key }}- 
198206name : Restore Maven/Gradle Dependency/Dist Caches 
199-         uses : actions/cache/restore@1bd1e32a3bdc45362d1e726936510720a7c30a57   #  v4.2.0 
207+         uses : actions/cache/restore@5a3ec84eff668545956fd18022155c47e93e2684   #  v4.2.3 
200208        #  if it a pull request, we restore the cache but we don't save it
201209        if : github.event_name == 'pull_request' 
202210        with :
@@ -226,13 +234,13 @@ jobs:
226234      #  We don't write to the remote cache as that would be unsafe.
227235      #  That's even on push, because we do not trust Atlas runners to hold secrets: they are shared infrastructure.
228236      - name : Upload GitHub Actions artifact for the Develocity build scan 
229-         uses : actions/upload-artifact@65c4c4a1ddee5b72f698fdd19549f0f0fb45cf08   #  v4.6.0 
237+         uses : actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02   #  v4.6.2 
230238        if : " ${{ !cancelled() }}" 
231239        with :
232240          name : build-scan-data-${{ matrix.rdbms }} 
233241          path : ~/.gradle/build-scan-data 
234242      - name : Upload test reports (if Gradle failed) 
235-         uses : actions/upload-artifact@65c4c4a1ddee5b72f698fdd19549f0f0fb45cf08   #  v4.6.0 
243+         uses : actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02   #  v4.6.2 
236244        if : failure() 
237245        with :
238246          name : test-reports-java11-${{ matrix.rdbms }} 
@@ -254,7 +262,7 @@ jobs:
254262      - name : Reclaim disk space and sanitize user home 
255263        run : .github/ci-prerequisites-atlas.sh 
256264      - name : Set up Java 21 
257-         uses : actions/setup-java@3a4f6e1af504cf6a31855fa899c6aa5355ba6c12   #  v4.7.0 
265+         uses : actions/setup-java@c5195efecf7bdfc987ee8bae7a71cb8b11521c00   #  v4.7.1 
258266        with :
259267          distribution : ' temurin' 
260268          java-version : ' 21' 
@@ -271,7 +279,7 @@ jobs:
271279          echo "buildtool-cache-key=${ROOT_CACHE_KEY}-${CURRENT_MONTH}-${CURRENT_BRANCH}-${CURRENT_DAY}" >> $GITHUB_OUTPUT 
272280name : Cache Maven/Gradle Dependency/Dist Caches 
273281        id : cache-maven 
274-         uses : actions/cache@1bd1e32a3bdc45362d1e726936510720a7c30a57   #  v4.2.0 
282+         uses : actions/cache@5a3ec84eff668545956fd18022155c47e93e2684   #  v4.2.3 
275283        #  if it's not a pull request, we restore and save the cache
276284        if : github.event_name != 'pull_request' 
277285        with :
@@ -288,7 +296,7 @@ jobs:
288296            ${{ steps.cache-key.outputs.buildtool-monthly-branch-cache-key }}- 
289297            ${{ steps.cache-key.outputs.buildtool-monthly-cache-key }}- 
290298name : Restore Maven/Gradle Dependency/Dist Caches 
291-         uses : actions/cache/restore@1bd1e32a3bdc45362d1e726936510720a7c30a57   #  v4.2.0 
299+         uses : actions/cache/restore@5a3ec84eff668545956fd18022155c47e93e2684   #  v4.2.3 
292300        #  if it a pull request, we restore the cache but we don't save it
293301        if : github.event_name == 'pull_request' 
294302        with :
@@ -314,14 +322,14 @@ jobs:
314322      #  The actual publishing must be done in a separate job (see ci-report.yml).
315323      #  We don't write to the remote cache as that would be unsafe.
316324      - name : Upload GitHub Actions artifact for the Develocity build scan 
317-         uses : actions/upload-artifact@65c4c4a1ddee5b72f698fdd19549f0f0fb45cf08   #  v4.6.0 
325+         uses : actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02   #  v4.6.2 
318326        if : " ${{ github.event_name == 'pull_request' && !cancelled() }}" 
319327        with :
320328          name : build-scan-data-sca 
321329          path : ~/.gradle/build-scan-data 
322330
323331      - name : Upload test reports (if Gradle failed) 
324-         uses : actions/upload-artifact@65c4c4a1ddee5b72f698fdd19549f0f0fb45cf08   #  v4.6.0 
332+         uses : actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02   #  v4.6.2 
325333        if : failure() 
326334        with :
327335          name : test-reports-java11-sca 
0 commit comments