Migrate workflows that need write access to use hosted runners (#2077)

## Changes

Migrate workflows to Databricks-hosted GitHub Actions runners.

The GitHub-hosted runners can no longer be used because of security
hardening.
This commit is contained in:
Pieter Noordhuis 2025-01-06 16:34:42 +01:00 committed by GitHub
parent 31552852ff
commit c262b30ef4
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
7 changed files with 30 additions and 8 deletions

View File

@ -7,12 +7,16 @@ on:
jobs: jobs:
cleanup: cleanup:
name: Stale issue job
runs-on:
group: databricks-deco-testing-runner-group
labels: ubuntu-latest-deco
permissions: permissions:
issues: write issues: write
contents: read contents: read
pull-requests: write pull-requests: write
runs-on: ubuntu-latest
name: Stale issue job
steps: steps:
- uses: actions/stale@v9 - uses: actions/stale@v9
with: with:

View File

@ -17,7 +17,10 @@ on:
jobs: jobs:
comment-on-pr: comment-on-pr:
runs-on: ubuntu-latest runs-on:
group: databricks-deco-testing-runner-group
labels: ubuntu-latest-deco
permissions: permissions:
pull-requests: write pull-requests: write

View File

@ -21,7 +21,9 @@ jobs:
# * Avoid running integration tests twice, since it was already run at the tip of the branch before squashing. # * Avoid running integration tests twice, since it was already run at the tip of the branch before squashing.
# #
trigger: trigger:
runs-on: ubuntu-latest runs-on:
group: databricks-deco-testing-runner-group
labels: ubuntu-latest-deco
steps: steps:
- name: Auto-approve squashed commit - name: Auto-approve squashed commit

View File

@ -15,7 +15,10 @@ jobs:
# This workflow triggers the integration test workflow in a different repository. # This workflow triggers the integration test workflow in a different repository.
# It requires secrets from the "test-trigger-is" environment, which are only available to authorized users. # It requires secrets from the "test-trigger-is" environment, which are only available to authorized users.
trigger: trigger:
runs-on: ubuntu-latest runs-on:
group: databricks-deco-testing-runner-group
labels: ubuntu-latest-deco
environment: "test-trigger-is" environment: "test-trigger-is"
steps: steps:

View File

@ -14,7 +14,10 @@ jobs:
# This workflow triggers the integration test workflow in a different repository. # This workflow triggers the integration test workflow in a different repository.
# It requires secrets from the "test-trigger-is" environment, which are only available to authorized users. # It requires secrets from the "test-trigger-is" environment, which are only available to authorized users.
trigger: trigger:
runs-on: ubuntu-latest runs-on:
group: databricks-deco-testing-runner-group
labels: ubuntu-latest-deco
environment: "test-trigger-is" environment: "test-trigger-is"
# Only run this job for PRs from branches on the main repository and not from forks. # Only run this job for PRs from branches on the main repository and not from forks.

View File

@ -20,7 +20,10 @@ on:
jobs: jobs:
goreleaser: goreleaser:
runs-on: ubuntu-latest runs-on:
group: databricks-deco-testing-runner-group
labels: ubuntu-latest-deco
steps: steps:
- name: Checkout repository and submodules - name: Checkout repository and submodules
uses: actions/checkout@v4 uses: actions/checkout@v4

View File

@ -9,9 +9,13 @@ on:
jobs: jobs:
goreleaser: goreleaser:
runs-on:
group: databricks-deco-testing-runner-group
labels: ubuntu-latest-deco
outputs: outputs:
artifacts: ${{ steps.releaser.outputs.artifacts }} artifacts: ${{ steps.releaser.outputs.artifacts }}
runs-on: ubuntu-latest
steps: steps:
- name: Checkout repository and submodules - name: Checkout repository and submodules
uses: actions/checkout@v4 uses: actions/checkout@v4