Skip to content

Commit cd00a4d

Browse files
authored
Merge pull request #15584 from jsoref/github-only
Limit xl runner jobs to github org
2 parents 75a95ff + 96ed659 commit cd00a4d

File tree

8 files changed

+13
-2
lines changed

8 files changed

+13
-2
lines changed

.github/workflows/compile-queries.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ on:
1010

1111
jobs:
1212
compile-queries:
13+
if: github.repository_owner == 'github'
1314
runs-on: ubuntu-latest-xl
1415

1516
steps:

.github/workflows/csharp-qltest.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,7 @@ jobs:
4646
xargs codeql execute upgrades testdb
4747
diff -q testdb/semmlecode.csharp.dbscheme downgrades/initial/semmlecode.csharp.dbscheme
4848
qltest:
49+
if: github.repository_owner == 'github'
4950
runs-on: ubuntu-latest-xl
5051
strategy:
5152
fail-fast: false

.github/workflows/go-tests-other-os.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,7 @@ jobs:
4646
make test cache="${{ steps.query-cache.outputs.cache-dir }}"
4747
4848
test-win:
49+
if: github.repository_owner == 'github'
4950
name: Test Windows
5051
runs-on: windows-latest-xl
5152
steps:

.github/workflows/go-tests.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@ env:
1919
GO_VERSION: '~1.21.0'
2020
jobs:
2121
test-linux:
22+
if: github.repository_owner == 'github'
2223
name: Test Linux (Ubuntu)
2324
runs-on: ubuntu-latest-xl
2425
steps:

.github/workflows/ql-for-ql-build.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ env:
1111

1212
jobs:
1313
analyze:
14+
if: github.repository_owner == 'github'
1415
runs-on: ubuntu-latest-xl
1516
steps:
1617
### Build the queries ###

.github/workflows/ruby-build.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -111,6 +111,7 @@ jobs:
111111
ruby/extractor/target/release/codeql-extractor-ruby.exe
112112
retention-days: 1
113113
compile-queries:
114+
if: github.repository_owner == 'github'
114115
runs-on: ubuntu-latest-xl
115116
steps:
116117
- uses: actions/checkout@v4

.github/workflows/ruby-qltest.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,7 @@ jobs:
5050
xargs codeql execute upgrades testdb
5151
diff -q testdb/ruby.dbscheme downgrades/initial/ruby.dbscheme
5252
qltest:
53+
if: github.repository_owner == 'github'
5354
runs-on: ubuntu-latest-xl
5455
strategy:
5556
fail-fast: false

.github/workflows/swift.yml

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,36 +37,40 @@ jobs:
3737
# not using a matrix as you cannot depend on a specific job in a matrix, and we want to start linux checks
3838
# without waiting for the macOS build
3939
build-and-test-macos:
40+
if: github.repository_owner == 'github'
4041
runs-on: macos-12-xl
4142
steps:
4243
- uses: actions/checkout@v4
4344
- uses: ./swift/actions/build-and-test
4445
build-and-test-linux:
46+
if: github.repository_owner == 'github'
4547
runs-on: ubuntu-latest-xl
4648
steps:
4749
- uses: actions/checkout@v4
4850
- uses: ./swift/actions/build-and-test
4951
qltests-linux:
52+
if: github.repository_owner == 'github'
5053
needs: build-and-test-linux
5154
runs-on: ubuntu-latest-xl
5255
steps:
5356
- uses: actions/checkout@v4
5457
- uses: ./swift/actions/run-ql-tests
5558
qltests-macos:
56-
if : ${{ github.event_name == 'pull_request' }}
59+
if: ${{ github.repository_owner == 'github' && github.event_name == 'pull_request' }}
5760
needs: build-and-test-macos
5861
runs-on: macos-12-xl
5962
steps:
6063
- uses: actions/checkout@v4
6164
- uses: ./swift/actions/run-ql-tests
6265
integration-tests-linux:
66+
if: github.repository_owner == 'github'
6367
needs: build-and-test-linux
6468
runs-on: ubuntu-latest-xl
6569
steps:
6670
- uses: actions/checkout@v4
6771
- uses: ./swift/actions/run-integration-tests
6872
integration-tests-macos:
69-
if : ${{ github.event_name == 'pull_request' }}
73+
if: ${{ github.repository_owner == 'github' && github.event_name == 'pull_request' }}
7074
needs: build-and-test-macos
7175
runs-on: macos-12-xl
7276
timeout-minutes: 60

0 commit comments

Comments
 (0)