Skip to content

Commit 217705c

Browse files
committed
ci: move permissions from job to workflow level
1 parent 9524c34 commit 217705c

File tree

2 files changed

+7
-5
lines changed

2 files changed

+7
-5
lines changed

.github/workflows/keepalive.yml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,12 +9,13 @@ concurrency:
99
group: keepalive
1010
cancel-in-progress: false
1111

12+
permissions:
13+
actions: write
14+
1215
jobs:
1316
keepalive:
1417
name: Keep Workflows Alive on Ubuntu 24.04
1518
runs-on: ubuntu-24.04
16-
permissions:
17-
actions: write
1819
steps:
1920
- name: Re-enable Workflows
2021
env:

.github/workflows/test.yml

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,13 +9,14 @@ on:
99
- cron: '0 0 * * *'
1010
workflow_dispatch:
1111

12+
permissions:
13+
contents: read
14+
id-token: write
15+
1216
jobs:
1317
test:
1418
name: PHPUnit ${{ matrix.phpunit-version }} on PHP ${{ matrix.php-version }} (Ubuntu 24.04)
1519
runs-on: ubuntu-24.04
16-
permissions:
17-
contents: read
18-
id-token: write
1920
strategy:
2021
matrix:
2122
php-version:

0 commit comments

Comments
 (0)