Skip to content

Commit 9f3f7cb

Browse files
authored
Migrate to self-hosted runners (#145)
As part of security hardening, only runners on an allowlist can perform authenticated operations. The "release-pr" and "tag" workflows require authenticated access to the repository for creating PRs and pushing tags, respectively. Migrate those to run on self-hosted runners.
1 parent 487d6b6 commit 9f3f7cb

3 files changed

Lines changed: 12 additions & 2 deletions

File tree

.github/workflows/release-pr.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,9 @@ on:
1010

1111
jobs:
1212
release-pr:
13-
runs-on: ubuntu-latest
13+
runs-on:
14+
group: databricks-protected-runner-group
15+
labels: linux-ubuntu-latest
1416

1517
steps:
1618
- uses: actions/checkout@v4

.github/workflows/tag.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,9 @@ on:
1111

1212
jobs:
1313
tag:
14-
runs-on: ubuntu-latest
14+
runs-on:
15+
group: databricks-protected-runner-group
16+
labels: linux-ubuntu-latest
1517

1618
steps:
1719
- uses: actions/checkout@v4

.github/workflows/test.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,12 @@ on:
99

1010
workflow_dispatch:
1111

12+
# Note: all jobs in this workflow run on GitHub-hosted runners.
13+
# None of them need authenticated (token) access to the repository.
14+
#
15+
# If this were to change and they do need authenticated access, make sure to use the
16+
# self-hosted runners listed on the "Settings" -> "Actions" -> "Runners" page.
17+
#
1218
jobs:
1319
action_with_defaults:
1420
runs-on: ${{ matrix.os }}

0 commit comments

Comments
 (0)