Skip to content

Commit 71c200d

Browse files
author
GeiserX
committed
ci: use GitHub-hosted ubuntu-latest runners
Public repos get free, unlimited standard GitHub-hosted runners. Move self-hosted Linux CI jobs to ubuntu-latest: frees the home-lab servers, runs PR code in throwaway isolated VMs (removing the fork-PR attack surface), and costs nothing on public repos. The previous self-hosted fork-guard is removed as it is no longer needed.
1 parent 4b65613 commit 71c200d

3 files changed

Lines changed: 4 additions & 12 deletions

File tree

.github/workflows/main.yml

Lines changed: 2 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -6,11 +6,7 @@ on:
66
branches: [main]
77
jobs:
88
lint:
9-
runs-on: [self-hosted, Linux, X64]
10-
# Do not run untrusted fork PR code on the self-hosted runner.
11-
if: >-
12-
github.event_name != 'pull_request' ||
13-
github.event.pull_request.head.repo.full_name == github.repository
9+
runs-on: ubuntu-latest
1410
steps:
1511
- uses: actions/checkout@v6
1612
- uses: GeiserX/awesome-lint-extra@v1.1.0
@@ -19,11 +15,7 @@ jobs:
1915
badge_types: '["stars", "last-commit", "language", "license"]'
2016
check_alphabetical: 'true'
2117
links:
22-
runs-on: [self-hosted, Linux, X64]
23-
# Do not run untrusted fork PR code on the self-hosted runner.
24-
if: >-
25-
github.event_name != 'pull_request' ||
26-
github.event.pull_request.head.repo.full_name == github.repository
18+
runs-on: ubuntu-latest
2719
continue-on-error: true
2820
steps:
2921
- uses: actions/checkout@v6

.github/workflows/stale.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ permissions:
88

99
jobs:
1010
stale:
11-
runs-on: [self-hosted, Linux, X64]
11+
runs-on: ubuntu-latest
1212
steps:
1313
- uses: actions/stale@v10
1414
with:

.github/workflows/sync-maintainers.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ permissions:
1111

1212
jobs:
1313
sync:
14-
runs-on: [self-hosted, Linux, X64]
14+
runs-on: ubuntu-latest
1515
steps:
1616
- uses: actions/checkout@v6
1717

0 commit comments

Comments
 (0)