Skip to content

Commit 303a02c

Browse files
fix(workflows): runner input & PR permission
1 parent 61f2979 commit 303a02c

3 files changed

Lines changed: 3 additions & 2 deletions

File tree

.github/workflows/__call-codeql.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ jobs:
2424
outputs:
2525
matrix: ${{ steps.lang.outputs.result }}
2626
continue: ${{ steps.continue.outputs.result }}
27-
runs-on: ${{ (inputs && inputs.runner && fromJson(inputs.runner)) || 'ubuntu-latest' }}
27+
runs-on: ${{ fromJson(inputs.runner || '["ubuntu-latest"]') }}
2828
steps:
2929
- name: Checkout repository
3030
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2

.github/workflows/__call-common-lint.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ jobs:
2727
permissions:
2828
contents: read
2929
pull-requests: read
30-
runs-on: ${{ (inputs && inputs.runner && fromJson(inputs.runner)) || 'ubuntu-latest' }}
30+
runs-on: ${{ fromJson(inputs.runner || '["ubuntu-latest"]') }}
3131
env:
3232
CLANG_FORMAT_VERSION: 20
3333
steps:

.github/workflows/_common-lint.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,3 +20,4 @@ jobs:
2020
if: ${{ github.repository != 'LizardByte/.github' }}
2121
permissions:
2222
contents: read
23+
pull-requests: read

0 commit comments

Comments
 (0)