Skip to content

Commit 2dc7f69

Browse files
authored
Merge pull request #65 from BoatraceOpenAPI/refactor/move-permissions
ci: move permissions from job to workflow level
2 parents 9524c34 + fda0b39 commit 2dc7f69

File tree

2 files changed

+6
-5
lines changed

2 files changed

+6
-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: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,13 +9,13 @@ on:
99
- cron: '0 0 * * *'
1010
workflow_dispatch:
1111

12+
permissions:
13+
contents: read
14+
1215
jobs:
1316
test:
1417
name: PHPUnit ${{ matrix.phpunit-version }} on PHP ${{ matrix.php-version }} (Ubuntu 24.04)
1518
runs-on: ubuntu-24.04
16-
permissions:
17-
contents: read
18-
id-token: write
1919
strategy:
2020
matrix:
2121
php-version:

0 commit comments

Comments
 (0)