Skip to content

Commit f7fed9f

Browse files
authored
adjust self-hosted runner regex (#29)
1 parent 51c7839 commit f7fed9f

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

opa/rego/poutine/utils.rego

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ job_uses_self_hosted_runner(job) if {
4646
run_on := job.runs_on[_]
4747
not contains(run_on, "$") # skip expressions
4848
not regex.match(
49-
"(?i)^((ubuntu-((18|20|22)\\.04|latest)|macos-(11|12|13|latest)(-xl)?|windows-(20[0-9]{2}|latest)|(buildjet|warp|)-[a-z0-9-]+))$",
49+
"(?i)^((ubuntu-(([0-9]{2})\\.04|latest)|macos-([0-9]{2}|latest)(-x?large)?|windows-(20[0-9]{2}|latest)|(buildjet|warp)-[a-z0-9-]+))$",
5050
run_on,
5151
)
5252
}

scanner/testdata/.github/workflows/secrets.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
on: push
1+
on: pull_request
22

33
jobs:
44
matrix:
@@ -14,7 +14,7 @@ jobs:
1414
token: ${{ secrets[format('SECRET_%s', matrix.env)] }}
1515

1616
json:
17-
runs-on: ubuntu-latest
17+
runs-on: macos-14-xlarge
1818
env:
1919
SECRETS: ${{ toJSON(secrets) }}
2020
steps:

0 commit comments

Comments
 (0)