mirror of https://github.com/databricks/cli.git
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:
parent
31552852ff
commit
c262b30ef4
|
@ -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:
|
||||||
|
|
|
@ -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
|
||||||
|
|
||||||
|
|
|
@ -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
|
||||||
|
|
|
@ -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:
|
||||||
|
|
|
@ -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.
|
||||||
|
|
|
@ -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
|
||||||
|
|
|
@ -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
|
||||||
|
|
Loading…
Reference in New Issue