Skip to content

Commit 5170887

Browse files
committed
ci: fix permissions
1 parent f1924db commit 5170887

2 files changed

Lines changed: 5 additions & 2 deletions

File tree

.github/workflows/ci-license.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,8 @@ jobs:
1212
license-check:
1313
name: License Check
1414
runs-on: 'ubuntu-latest'
15+
permissions:
16+
pull-requests: write
1517
steps:
1618
- name: 👷 Checkout
1719
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
@@ -46,7 +48,6 @@ jobs:
4648
- uses: marocchino/sticky-pull-request-comment@52423e01640425a022ef5fd42c6fb5f633a02728 # v2.9.1
4749
if: ${{ steps.check.outputs.result > 0 }}
4850
with:
49-
GITHUB_TOKEN: ${{ secrets.WDIO_BOT_GITHUB_TOKEN }}
5051
header: license-error
5152
message: >
5253
Thank you for creating PR!🙏
@@ -72,6 +73,5 @@ jobs:
7273
- uses: marocchino/sticky-pull-request-comment@52423e01640425a022ef5fd42c6fb5f633a02728 # v2.9.1
7374
if: ${{ steps.check.outputs.result == 0 }}
7475
with:
75-
GITHUB_TOKEN: ${{ secrets.WDIO_BOT_GITHUB_TOKEN }}
7676
header: license-error
7777
delete: true

.github/workflows/ci.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,9 @@ concurrency:
1313
group: ci-${{ github.workflow }}-${{ github.ref }}
1414
cancel-in-progress: true
1515

16+
permissions:
17+
pull-requests: write
18+
1619
jobs:
1720
build:
1821
name: Build

0 commit comments

Comments
 (0)