@@ -37,12 +37,12 @@ jobs:
3737 targets : ${{ steps.mask1.outputs.targets || steps.mask2.outputs.targets || steps.mask3.outputs.targets }}
3838 steps :
3939 - name : Checkout repository
40- uses : actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2 .2
40+ uses : actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0 .2
4141 with :
4242 fetch-depth : 0
4343
4444 - name : Setup Go
45- uses : actions/setup-go@7a3fe6cf4cb3a834922a1244abfce67bcef6a0c5 # v6.2 .0
45+ uses : actions/setup-go@4b73464bb391d4059bd26b0524d20df3927bd417 # v6.3 .0
4646 with :
4747 go-version-file : tools/go.mod
4848
@@ -119,7 +119,7 @@ jobs:
119119
120120 steps :
121121 - name : Checkout repository and submodules
122- uses : actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2 .2
122+ uses : actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0 .2
123123
124124 - name : Setup build environment
125125 uses : ./.github/actions/setup-build-environment
@@ -174,7 +174,7 @@ jobs:
174174
175175 steps :
176176 - name : Checkout repository and submodules
177- uses : actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2 .2
177+ uses : actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0 .2
178178
179179 - name : Setup build environment
180180 uses : ./.github/actions/setup-build-environment
@@ -205,7 +205,7 @@ jobs:
205205
206206 steps :
207207 - name : Checkout repository and submodules
208- uses : actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2 .2
208+ uses : actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0 .2
209209
210210 - name : Setup build environment
211211 uses : ./.github/actions/setup-build-environment
@@ -236,7 +236,7 @@ jobs:
236236
237237 steps :
238238 - name : Checkout repository and submodules
239- uses : actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2 .2
239+ uses : actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0 .2
240240
241241 - name : Setup build environment
242242 uses : ./.github/actions/setup-build-environment
@@ -281,10 +281,10 @@ jobs:
281281
282282 steps :
283283 - name : Checkout
284- uses : actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2 .2
284+ uses : actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0 .2
285285
286286 - name : Setup Go
287- uses : actions/setup-go@7a3fe6cf4cb3a834922a1244abfce67bcef6a0c5 # v6.2 .0
287+ uses : actions/setup-go@4b73464bb391d4059bd26b0524d20df3927bd417 # v6.3 .0
288288 with :
289289 go-version-file : go.mod
290290 # Use different schema from regular job, to avoid overwriting the same key
@@ -343,10 +343,10 @@ jobs:
343343
344344 steps :
345345 - name : Checkout
346- uses : actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2 .2
346+ uses : actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0 .2
347347
348348 - name : Install uv
349- uses : astral-sh/setup-uv@eac588ad8def6316056a12d4907a9d4d84ff7a3b # v7.3 .0
349+ uses : astral-sh/setup-uv@37802adc94f370d6bfd71619e3f0bf239e1f3b78 # v7.6 .0
350350 with :
351351 version : " 0.6.5"
352352
@@ -362,14 +362,14 @@ jobs:
362362 fi
363363
364364 # Trigger integration tests in a separate repository.
365- # Requires secrets from "test-trigger-is" environment (not available for fork PRs).
365+ # Requires secrets from "test-trigger-is" environment (not available for fork PRs or dependabot ).
366366 # Auto-approves for merge groups to avoid running twice and queue timeouts.
367367 integration-trigger :
368368 needs :
369369 - testmask
370370
371371 if : >-
372- (github.event_name == 'pull_request' && !github.event.pull_request.head.repo.fork) ||
372+ (github.event_name == 'pull_request' && !github.event.pull_request.head.repo.fork && github.actor != 'dependabot[bot]' ) ||
373373 (github.event_name == 'merge_group') ||
374374 (github.event_name == 'push')
375375
@@ -387,7 +387,7 @@ jobs:
387387 - name : Generate GitHub App Token
388388 if : ${{ github.event_name == 'pull_request' || github.event_name == 'push' }}
389389 id : generate-token
390- uses : actions/create-github-app-token@df432ceedc7162793a195dd1713ff69aefc7379e # v2 .0.6
390+ uses : actions/create-github-app-token@f8d387b68d61c58ab83c6c016672934102569859 # v3 .0.0
391391 with :
392392 app-id : ${{ secrets.DECO_WORKFLOW_TRIGGER_APP_ID }}
393393 private-key : ${{ secrets.DECO_WORKFLOW_TRIGGER_PRIVATE_KEY }}
@@ -399,7 +399,7 @@ jobs:
399399 (github.event_name == 'merge_group') ||
400400 (github.event_name == 'pull_request' && !contains(fromJSON(needs.testmask.outputs.targets), 'test'))
401401 id : generate-check-token
402- uses : actions/create-github-app-token@df432ceedc7162793a195dd1713ff69aefc7379e # v2 .0.6
402+ uses : actions/create-github-app-token@f8d387b68d61c58ab83c6c016672934102569859 # v3 .0.0
403403 with :
404404 app-id : ${{ secrets.DECO_TEST_APPROVAL_APP_ID }}
405405 private-key : ${{ secrets.DECO_TEST_APPROVAL_PRIVATE_KEY }}
@@ -422,7 +422,7 @@ jobs:
422422 # Use Checks API (not Statuses API) to match the required "Integration Tests" check.
423423 - name : Skip integration tests (pull request)
424424 if : ${{ github.event_name == 'pull_request' && !contains(fromJSON(needs.testmask.outputs.targets), 'test') && !contains(fromJSON(needs.testmask.outputs.targets), 'test-exp-ssh') }}
425- uses : actions/github-script@v8
425+ uses : actions/github-script@ed597411d8f924073f98dfc5c65a23a2325f34cd # v8.0.0
426426 with :
427427 github-token : ${{ steps.generate-check-token.outputs.token }}
428428 script : |
@@ -443,7 +443,7 @@ jobs:
443443 # Use Checks API (not Statuses API) to match the required "Integration Tests" check.
444444 - name : Auto-approve for merge group
445445 if : ${{ github.event_name == 'merge_group' }}
446- uses : actions/github-script@v8
446+ uses : actions/github-script@ed597411d8f924073f98dfc5c65a23a2325f34cd # v8.0.0
447447 with :
448448 github-token : ${{ steps.generate-check-token.outputs.token }}
449449 script : |
@@ -468,3 +468,37 @@ jobs:
468468 gh workflow run cli-isolated-nightly.yml -R ${{ secrets.ORG_NAME }}/${{ secrets.REPO_NAME }} \
469469 --ref main \
470470 -f commit_sha=${{ github.event.after }}
471+
472+ # Skip integration tests for dependabot PRs.
473+ # Dependabot has no access to the "test-trigger-is" environment secrets,
474+ # so we use the built-in GITHUB_TOKEN to mark the required "Integration
475+ # Tests" check as passed.
476+ integration-trigger-dependabot :
477+ if : >-
478+ github.event_name == 'pull_request' &&
479+ github.actor == 'dependabot[bot]'
480+
481+ runs-on :
482+ group : databricks-deco-testing-runner-group
483+ labels : ubuntu-latest-deco
484+
485+ permissions :
486+ checks : write
487+
488+ steps :
489+ - name : Skip integration tests
490+ uses : actions/github-script@ed597411d8f924073f98dfc5c65a23a2325f34cd # v8.0.0
491+ with :
492+ script : |-
493+ await github.rest.checks.create({
494+ owner: context.repo.owner,
495+ repo: context.repo.repo,
496+ name: 'Integration Tests',
497+ head_sha: '${{ github.event.pull_request.head.sha }}',
498+ status: 'completed',
499+ conclusion: 'success',
500+ output: {
501+ title: 'Integration Tests',
502+ summary: '⏭️ Skipped (dependabot PR)'
503+ }
504+ });
0 commit comments